2012 Sep 06 9:58 AM
Hi All
I checked i used badi ME_PROCESS_PO_CUST method PROCESS_ITEM but it started changing the invoice reciept field on chaging PO.
I found anotther badi ME_PURCHDOC_POSTED method POSTED but it didn't allowed to chnage ekpo-repos field.
Please help , i want to change EKPO-REPOS field to 'X' on save .
Regards Ujjwal
2012 Sep 06 11:10 AM
Hi
keep a debugging point in class CL_EXITHANDLER and then run your t code and make the changes in required field, then check which badi is getting triggered. use the badi and write the code in it.
2012 Sep 06 11:41 AM
Thanks for reply .. but i cannot put code in which gets triggered when chaanging.. as this will uncheck free goods field from ME21 N ......... so i should be just able to make last at save time.
2012 Sep 06 11:46 AM
Im using below code in bapi and method post.
if_ex_me_process_po_cust~post
LOOP AT lt_items INTO lwa_items.
lwa_details = lwa_items-item->get_data( ).
* Get conditions for line items
lwa_details-repos = 'X'.
lwa_items-item->set_data( lwa_details ).
CLEAR: lwa_details.
ENDLOOP.
but still ekpo data on using set_data is not changing.
Can someone help on this.
2012 Sep 06 11:51 AM
HI Ujjwal,
Why to go for BADI,
It is very easy to do it through EXIT EXIT_SAPMM06E_013. You will get here one structure XEKPO in that one I hope you will get the required field, update it the way you want.
This EXIT will be called just before saving PO and I hope this will do your work.
Thanks
Rahul
2012 Sep 06 12:00 PM
I tried this too and changes the XEKPO-repos to X ...... but it didn't worked.