Hi Shareen,
Before you save the PO, Check the Program name of that screen in Status bar.
Take that Program name, and find the Package of that program.
Take that Package name and goto SE84 Transaction.
Expand Enhancements in the left panel, double click on enhancements.
Provide the Package Name and execute it will show you all the available userexits.
Take out the once which will trigger at Save event.
Write the code into that and get the item details into your internal table.
Update data to ZTable from the internal table.
Regards,
Satish
If it is sufficient to have an exit for ME21N only, then I'd suggest using BAdI ME_PROCESS_PO_CUST.
If it must be working with ME21 then the SMOD enhancement MM06E005 (and specifically the function module EXIT_SAPMM06E_013) is probably what you need. This will work with both ME21 and ME21N if I'm not mistaken.
Thanks for useful comments from everyone.This issue is solved now
Add a comment