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: 

User Exit/BADI after database commit in VA01/VA02

Former Member
0 Kudos

Hi All,

Can you tell me an user exit/BADI in VA01/VA02 which I can utilize AFTER the database commit but still utilize the tables/structures like xvbap, xvbkd etc? Thanks.

Best Regards,

Avimanyu

6 REPLIES 6

Former Member
0 Kudos

Hi

Follow this way.

1. SAP standard program for VA01/VA02 is SAPMV45A.

2. You findout Include MV45AFZZ in SAPMV45A.

3. Search code with term 'userexit_save_document'.

4. You will find userexit_save_document and userexit_save_document_prepare.

These both exits will help your requirement.

Bala

Note: Award poits if helpful

0 Kudos

Hi Bala,

I need an user exit/BADI <b>AFTER</b> the database tables are updated when save button is pressed on VA01/VA02, both these user exits are fired before that.

Best Regards,

Avimanyu

0 Kudos

Avimanyu ,

Did you get the solution for this.

i mean, i need user exit or badi which going to be triggered after final save of the sales order either in VA01 or VA02. (cafter commit the VBAP,VBAK tables)

If i use the program MV45AFZZ (it triggeres before commit) It requires access key as it is standard sap user exit.

Can u give valuble opinion, please.

Regards

Badari

Former Member
0 Kudos

what do u want to do once the database gets committed? you can as well write a stand alone program which can run after sales order is created.

Former Member
0 Kudos

Hi Sengupta,

Usually there are no user-exits after COMMIT.

What you need to do is register a call which will be executed after COMMIT, from one of the available user-exits.

To do this, SAP provides 2 methods:

1. PERFORM xxx ON COMMIT

2. Function Module with attribute "Update Module"

Check ABAP keyword help for more information for PERFORM xxx ON COMMIT.

<a href="http://help.sap.com/saphelp_46c/helpdata/en/34/8e72cc6df74873e10000009b38f9b8/frameset.htm">http://help.sap.com/saphelp_46c/helpdata/en/34/8e72cc6df74873e10000009b38f9b8/frameset.htm</a>

Hope this helps.

Regards,

Sumant.

PS: Reward points if this is helpful.

Former Member
0 Kudos

Hi,

Exits in VA01..

exit_sapmv45a_002

exit_sapmv45a_003

exit_sapmv45a_004

exit_sapmv45a_005

BADI for SALES ORDER...

BADI_SD_SCH_GETWAGFZ

BADI_SD_V46H0001

Regards,

Tanveer.

<b>Please mark helpful answers</b>