100% found this document useful (1 vote)
1K views2 pages

Me28 or Me55 Add Field: Sunday, March 6, 2022 4:17 PM

This document provides instructions for adding customer fields to purchasing reports like ME28 in the correct SAP-supported way using BADIs. It explains that there is a BADI called ME_CHANGE_OUTTAB_CUS that can dynamically add parameters to these reports. The steps are to declare a field symbol matching the output structure, check that the correct structure is being passed, and then add custom code inside an IF statement to fill any additional customer fields. The fields also need to be added to the relevant output structure in SE11.

Uploaded by

fatma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views2 pages

Me28 or Me55 Add Field: Sunday, March 6, 2022 4:17 PM

This document provides instructions for adding customer fields to purchasing reports like ME28 in the correct SAP-supported way using BADIs. It explains that there is a BADI called ME_CHANGE_OUTTAB_CUS that can dynamically add parameters to these reports. The steps are to declare a field symbol matching the output structure, check that the correct structure is being passed, and then add custom code inside an IF statement to fill any additional customer fields. The fields also need to be added to the relevant output structure in SE11.

Uploaded by

fatma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Sunday, March 6, 2022 4:17 PM

ME28 or ME55 ADD FIELD


I work as both a functional and technical consultant and have been faced many times with the
requirement to add customer fields to purchasing reports like ME28, ME2L or ME2N.
Adding the last purchase price to ME28 is especially frequent, and in the past (to my shame) I’ve made
custom changes to RM06EF00. I’ve also searched for the best way to enhance these reports in SCN and
have come across many forum posts where a lot of people validated my old ways.
This is the correct (SAP Sponsored) way to do it, and it’s available from EHP4 onwards.
Many purchasing reports share the BADI ME_CHANGE_OUTTAB_CUS, which takes in dynamic
parameters according to the calling report.

There is only one method called FILL_OUTTAB, which takes as input parameter the output structure
name in IM_STRUCT_NAME, and the real data in CH_OUTTAB.
The first thing is to declare a field-symbol with the correct structure provided in IM_STRUCT_NAME, and
create an IF that validates if the structure is the expected one (remember this BADI runs for various
reports with various output structures).

ME28 Page 1
This is the specific example for ME28. All that is left is:
• Add the custom code inside the IF, which fills the customer fields in <fs_tabrel>;
• Add the customer fields to the structure in SE11 (in this case MEREP_OUTTAB_PURCHDOC_REL for
ME28). Use append structures.
Here is the simple, standard, and clean way to enhance your purchasing reports and at the same time
centralize all enhancements in the same BADI. Happy maintenance and upgrades.

From <https://blogs.sap.com/2014/03/07/enhance-purchasing-reports-with-new-fields/>

ME28 Page 2

You might also like