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 MV45AFZZ for VA01 / VA02

Former Member
0 Kudos

Hi All Expert,

I want to implement a checking in the User Exit MV45AFZZ at the FORM USEREXIT_SAVE_DOCUMENT_PREPARE

for t-code VA01 / VA02

which calculate the difference of the values of some condition type when the document is save.

for e.g.

ZS00 = 80

ZS24 = 5

ZS25 = 5

ZS28 = 10

ZSPP = 100

if ZSPP <> ZS00 + .... ZS28, display warning message...

However, when using VA02, as the ZS00 ... ZS28 changes are not affect the net value of the document,

if they have been changed, the program code have not been run.... so the checking is not functional.

Does anyone know the way to improve this checking?

Please help.

Terry

1 ACCEPTED SOLUTION

former_member642890
Participant
0 Kudos

Hi,

The userexit save_document_prepare will directly hit the tables like vbak and vbap. So, as i can see that you would like to change at the pricing conditions so it is better to user the user exit:userexit_pricing_prepare_tkomk...

All the pricing conditions will be stored in the tkomp and tkomk tables.

The changes can be happnd at this level also.

Thanks

rohith

2 REPLIES 2

former_member642890
Participant
0 Kudos

Hi,

The userexit save_document_prepare will directly hit the tables like vbak and vbap. So, as i can see that you would like to change at the pricing conditions so it is better to user the user exit:userexit_pricing_prepare_tkomk...

All the pricing conditions will be stored in the tkomp and tkomk tables.

The changes can be happnd at this level also.

Thanks

rohith

Former Member
0 Kudos

I've done it using the FORM USEREXIT_SAVE_DOCUMENT_PREPARE,

I check the XVBAK-AUART for activite the checking, but the XVBAK-AUART is BLANK for some case, so I use the VBAK-AUART instead once XVBAK-AUART is blank.