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

User exit for VA01

Former Member
0 Likes
722

I have to populate the sales office and sales grp fields while creating a Sales order corresponding to the ship-to-party. I have find out the INCLUDE and User exit, MV45AFZZ and USEREXIT_MOVE_FIELD_TO_VBAK respectively. My friend told me to take the value from XVBPA for the logic process, but I dont know how to find out the XVBPA. What is the standard procedure for finding out the correct structure for each header data like this. If I am debugging the standard program, how do I know I will be taking the value from XVBPA. PLease give me the process flow.

1 ACCEPTED SOLUTION
Read only

eduardo_hinojosa
Active Contributor
0 Likes
657

Hi

Please, see SAP Note 178328 - Problems due to incorrect user exits in SD.

In this note, you can read:



o The X tables contain the current status of the document including
the changes that have been performed in the current transaction.
o The Y tables play a role only for the change mode of document
processing. They contain the original status of those table entries
that have been changed during the current transaction. Therefore,
the entries in the Y table reflect the previous status of the
document in the database.

I hope this helps you

Regards

Eduardo

PD: I forgot it. Set a break-point, and in debugging, see in tables the data in XVBPA.

Edited by: E_Hinojosa on Aug 9, 2011 12:45 PM

3 REPLIES 3
Read only

eduardo_hinojosa
Active Contributor
0 Likes
658

Hi

Please, see SAP Note 178328 - Problems due to incorrect user exits in SD.

In this note, you can read:



o The X tables contain the current status of the document including
the changes that have been performed in the current transaction.
o The Y tables play a role only for the change mode of document
processing. They contain the original status of those table entries
that have been changed during the current transaction. Therefore,
the entries in the Y table reflect the previous status of the
document in the database.

I hope this helps you

Regards

Eduardo

PD: I forgot it. Set a break-point, and in debugging, see in tables the data in XVBPA.

Edited by: E_Hinojosa on Aug 9, 2011 12:45 PM

Read only

AnjaneyaBhardwaj
Contributor
0 Likes
657

Hi ,

There is no definite rule which will tell that this is the structure where you will have this data .Rather we need to look at the standard code and see how the flow goes in which structure the data gets filled from where during this debugging you will see your relevent structure .An easy task is first go to the TOP include of standard program for VA01 and see the structure and tables declared there .if your field is maintained in there you have a chance that partner information is available globally . My experience tells understanding the flow of program helps you identify the exact structure and to understand the flow you need to debug and see how standrad VA01 works and creates the order so that you can modify the exact structure at appropriate place .

Happy debugging .

Thanks,

Anjaneya .

Read only

AnjaneyaBhardwaj
Contributor
0 Likes
657

Hi ,

There is no definite rule which will tell that this is the structure where you will have this data .Rather we need to look at the standard code and see how the flow goes in which structure the data gets filled from where during this debugging you will see your relevent structure .An easy task is first go to the TOP include of standard program for VA01 and see the structure and tables declared there .if your field is maintained in there you have a chance that partner information is available globally . My experience tells understanding the flow of program helps you identify the exact structure and to understand the flow you need to debug and see how standrad VA01 works and creates the order so that you can modify the exact structure at appropriate place .

Happy debugging .

Thanks,

Anjaneya .