07-12-2022 2:18 PM
Hi Experts,
I am new to enhanment concept , here i need to add an new field in PO screen and save the value in table.
Requirement: Need to add the AUFK-AUFNR and save same in EKPO table.
I already added the field in Po screen using (MM06E005) and didn't now to save in table level.
Can someone please provide some piece of code which help me lot.
Senthil.G
07-13-2022 9:36 AM
Hi
You can use the BADi ME_PROCESS_PO_CUST
Check interface method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
Example code
DATA : lwa_item TYPE mepoitem, lt_item TYPE TABLE OF mepoitem.
lwa_item = im_item->get_data( ).
"here you check the value of your new field in lwa_item. (assign the value if required )
"and set the data back.
im_item->set_data( EXPORTING im_data = lwa_item ).
Regards,
Venkat
07-14-2022 1:11 PM
Thanks Guys,
Issue resolved.
Closing the thread.