|Home • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Modify Standard Purchasing Report Output of ME2N
Now appropriate BADI/Enhancement needs to be used for population of value to the
newly added field in the structure.
For this requirement we have BADI/Enhancement
which varies from R3 system release to release.
In release ECC 6.0, we have below BADI but it’s only for SAP’s internal
use. It can not be used by customer, so in this version of R3 we need to search
for some other alternatives or enhancement spot for this..
However in SAP ECC release with EHP4 FOR
SAP ERP 6.0 / NW7.01 we have the same BADI with a different name which is
available for customer usage. The same is shown below
Since I have made this example in system ECC
6.0, I will be using one enhancement spot for population of value to the
newly added field to the report.
There is no specific way where you can find the appropriate enhancement spot/point/section. I found it by debugging standard program for the
report and with little search in SDN & Google.
When we run the report ME2N, main program
SAPLMEREP will run and the include LMEREPD02 in it. We can find different
enhancement point in the include which can be analyzed.
Creating an enhancement spot and including our
custom logic in it inside the method BUILD_BASE_LIST
will solve our purpose.
Double click on above method, click on ENHANCE
button and then scroll down to the enhancement point which is present immediate
before ENDMETHOD statement of above method.
Create an Enhancement here and include your
custom logic. This place/enhancement
will trigger for each PO and its Items.
In this enhancement point, structure RE_OUTTAB_PURCHDOC
will have all the report output fields including our new additional field.
Code can be written here to manipulate values for other report fields. Write
code as above Activate the enhancement .Then run the report to see the result.
In release SAP ECC release with EHP4 FOR SAP
ERP 6.0 / NW7.01 as discussed above you can implement the BADI and inside the
implementing class you can include your custom logic. At run time Table CH_OUTTAB
will have all the final output records.
SAP ECC release with EHP4 FOR SAP ERP 6.0 /
This is a real-time requirement and the solution is stated above. However for
this requirement we did not follow any specific methodology or procedure to find
the program name, enhacement point name or structure name that needs to be
modified. Debugging and searching in different sites helped us to reach to the
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards