06-10-2015 8:34 AM
Hi,
Could you please any body help me to identify the user exit for sales order item level.
I want to update another Z table when an sales order item deleted / whole sales document deleted. I found the user exit userexit_check_xvbap_for_delet in the include MV45AFZB . With this exit when user deleted the item it is triggering but unable to handle save functionality from here.
Could you please anybody help me on this?
Many thanks.
Praveen.
06-10-2015 8:36 AM
Hi Praveen,
You can check MV45AFZZ user exit, which contains the respective process routine information like SAVE, DOCUMENT CHECK etc.
Praveer.
06-10-2015 8:36 AM
Hi Praveen,
You can check MV45AFZZ user exit, which contains the respective process routine information like SAVE, DOCUMENT CHECK etc.
Praveer.
06-10-2015 8:48 AM
Hi Praveer,
Thank you for prompt suggestion.
I found the user exit userexit_save_document which is triggering before the saving. But in this exit what parameters are actual i.e. screen data and what is original data. Even though I deleted sales order item it is appearing in the xvbap table.How can I recognize which sales order item deleted ?
Thank you.
Praveen.
06-10-2015 9:14 AM
Hi,
in same user exit userexit_save_document table XVBAP field 'UPDKZ' will hold the flag as 'D' for deletion for the deleted line item.
Hope this helps.
Thanks,
sagar
06-10-2015 9:29 AM
Hi,
All the 'X' structures - They contain the current data
while all the 'Y' structures - They contain the data from database.
PS: Its well explained by Naimesh and Nagaraj in below two threads -
http://scn.sap.com/thread/1264170
and
https://scn.sap.com/thread/158796
BR
06-10-2015 9:47 AM