Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Custom Fields for VA02

0 Kudos
1,164

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

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos
243

Do you try [USEREXIT_REFRESH_DOCUMENT|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm] ?

Regards,

Raymond

0 Kudos
243

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.

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos
243

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.

0 Kudos
243

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