I have a requirement to modify the Transportation Group EKPV-TRAGR in PO Creation based o on some conditions. I am looking for a suitable BADI or User Exit.
1. Class Interface: IF_PURCHASE_ORDER_ITEM_MM ==> method SET_SHIPPING_DATA has some limitations as below
firewall
MOVE: im_ekpv-vstel TO l_data_new-vstel,
im_ekpv-lprio TO l_data_new-lprio,
im_ekpv-vsbed TO l_data_new-vsbed,
im_ekpv-route TO l_data_new-route,
im_ekpv-ablad TO l_data_new-ablad.
So, it does not support TRAGR change values. Not sure, how to get it done.
2. User Exit:- EXIT_SAPMM06E_013 ==> This has XEKVP access to change the values on saving the PO. But it did not take the new values while creating a PO by copying another PO. It still holds the old values. The new value not updated before the document is saved. I am not sure, how to implement this User exit to modify EKVP-TRAGR values of PO.
Can you please suggest me a suitable solution to this requirement?
Appreciate Your Help in Advance.
Thanks,
Kannan.