10-27-2009 4:42 PM
Dear Experts!
My requirement is to remove the deleted po items in the output list of ME2L when the report is run for the pending purchase orders.
Could any one suggest me what could be the best approach for the solution in this regards,
Thanks in advance,
Baig.
10-27-2009 7:48 PM
Hi,
There has no exits and BADI's are available for the transaction just you need to copy the program RM06EL00 to ZRM06EL00.
1) find the include SAPFM06L and copy to ZSAPFM06L.
2) Then inside the copy the INCLUDE FM06LF01_MEREP to ZFM06LF01_MEREP.
3) Now copy the function module ME_REP_START_VIA_TABLE_MANAGER to ZME_REP_START_VIA_TABLE_MANAGER Even the function group also u need to copy in ZMEREP.
4)In the function group find the include LMEREPI03 and implement the ur logic after the class
CALL METHOD my_current_datablade->if_reader_mm~read_table
now the logic as
Select data from EKPO table for all entries in it_merep_outtab_purchdoc (copy the MEREP_OUTTAB_PURCHDOC)comparing Purchase Order no,item no and Delivery completion indicator NE u2018Xu2019 and Deletion Indicator NE u2018Lu2019.
Regards
Kiran Sure
10-28-2009 11:59 AM
10-30-2009 4:23 PM
Rather than copying all the code and rolling your own version of the report, I would recommend just adding an implicit enhancement. You can add implicit enhancements at the beginning or end of pretty much any out-of-box Function Module, Subroutine (i.e., Form), Report, etc.
Please keep in mind, though, that you need to be on NetWeaver 2004s / 7.0 or higher in order to take advantage of the implicit enhancement framework. By using imlicit enhancements, I've been able to avoid a lot of copying of out-of-box code