Application Development and Automation 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: 
Read only

VBPA Table updation while creating sales order

Former Member
0 Likes
4,122

Hi,

Please let me the user exit name to check how VBPA table is getting updated while creating new sales order.

Thanks

Bhuvana

Hi,

Please let me the user exit name to check how VBPA table is getting updated while creating new sales order.

Thanks

Bhuvana

3 REPLIES 3
Read only

Former Member
0 Likes
1,931

The user exits gets triggered is USEREXIT_SAVE_DOCUMENT_PREPARE ,

USEREXIT_SAVE_DOCUMENT

Becasue while creating sales order the sales order number will be generated by using number ranges ( in most of the case )

so you will get the generated sales order number in the above user exit

The key point here is sap cant updated data untill the sales order number gets generated into any table... ( while creating )

so mostly in the above user exits gets triggred ...

Please let me know if you need any further information

Regards

Satish Boguda

Read only

Former Member
0 Likes
1,931

hi,

update can be done in mv45afzz.

-- when changing in --save_prepare make your change in table XVBPA. Respect the update-field XVBPA-UPDKZ.

hans

Read only

Former Member
1,931

Hi

You can use Save_document_prepare form in MV45AFZZ Include. Here are the steps.

1) Take access key from BASIS guy to modify MV45AFZZ.

2) go to form SAVE_DOCUMENT_PREPARE.

3) Read XVBPA table in your local work area. ( Remeber the Index)

4) then modify whatever field you want to modify. and set the UPDKZ flag of XVBPA table to U for that particular row you modified. Beware UPDKZ contain D for deleted rows so you should not consider those rows for modification which are having UPDKZ as value D.

Enjoy.

Viral Shah

Edited by: ViraldShah on Jan 2, 2010 5:09 PM