2012 Jan 23 3:00 PM
hi,
My scenario is to create a custom screen for sales order header in additional tab B and during saving the custom fields has to be updated in a u2018Zu2019 table. Since access key was not provided, Iu2019m calling the screen as a pop-up screen from an enhancement spot.
For saving the sales order i use MV45AFZZ USEREXIT_SAVE_DOCUMENT. VA01 it is working perfectly but for VA02 the form USEREXIT_SAVE_DOCUMENT is not triggering. I have not enhanced any fields in VBAK or VBAP. For temporary purpose, iu2019m passing a value in a header field which is not used.
is there any solution for resolving the issue.
Regards,
Senthil
2012 Jan 23 3:32 PM
Do you try [USEREXIT_REFRESH_DOCUMENT|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm] ?
Regards,
Raymond
2012 Jan 24 12:44 PM
hi,
i have not tried with this FORM, i read the documentation where they have mentioned, subroutine is for refreshing the Header and Line Items.
thanks for your reply, i'll try.
2012 Jan 23 7:54 PM
You wrote that in transaction VA02, the subroutine USEREXIT_SAVE_DOCUMENT is not called. That's strange, since I just tried it and it is called fine.
2012 Jan 24 12:41 PM
hi,
even i have tried earlier for other issues. USEREXIT_SAVE_DOCUMENT triggers for VA02 when i have appended the custom fields in VBAK or VBAP tables. try with a Ztable, don't change any other fields related to VBAK, VBAP, VBKD... etc