2023 Oct 20 2:44 PM
Hi ABAP Experts,
I am creating PO , Requirement is update Delivery type while create the PO(Shipping Tab).
i wrote the code in BADI -> ME_PROCESS_PO_CUST~PROCESS_ITEM.
_> Get the Line item lw_item = im_item->get_data( ).
-> lw_item-LFRET ='ZZZZ'.
->call method lo_item->set_data
exporting
im_data = lw_item.
i can see the ZZZZ delivery type shipping tab of PO line item, but after save the PO delivery type ZZZZ replace with original one which is earlier one before our code triggered.
Can some one help me , is this correct method to correct the devilry type of item?
If any one facing similler kind of issue help me with solution.