... had to use CL_PO_HEADER_HANDLE_MM and IF_PURCHASE_ORDER_MM to fetch all data from purchase order and to move them to MDPA and MDLB structures. Once it was ready the rest was peanuts and I could get rid ...
... need to get header object firstly (type ref to if_purchase_order_mm ) and then call GET_GOS_MANAGER method. Anyway, I will present you the method which I used in POST method of ME_PROCESS_PO_CUST BADI. ...
...
field-symbols: type ekko.
data: f_mepoitem type mepoitem.
data: fo_header type ref to if_purchase_order_mm.
data: f_checkheader type mepoheader.
data: f_checkheader_curr type mepoheader. ...