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: 

Sales order change Quantity

P561888
Active Contributor
0 Kudos

Hi all,

Based on the certain condition, we should not change the quantity ( Even though if the user is changed the value while saving it should have the same old value ).

I tried in the Userexit for VBAP and VBEP, SAVE_DOCUMENT_PREPARE  but no use.

Did any one face any like this.

BR,

Bharani

3 REPLIES 3

venkat_aileni
Contributor
0 Kudos

Hi-

Could you explain us the steps you have followed?

-Venkat

former_member191569
Active Participant
0 Kudos

Hello Bharani,

you can take a look at the subroutine userexit_save_document included in the user-exit program MV45AFZZ.

Inside this subroutine you have access to XVBAP with the positions of the sales order that is about to save. You can handle it and process the field KWMENG that holds quantity of each position in the document.

Hope it helps,

David

Former Member
0 Kudos

Hi ,

Please check in subroutine CHECK_VBEP or CHECK VBAP ( one of them exists in your exit include )

In this you will find two internal tables VBAP* for old contents

VBAP for new contents.

This exit will trigger only when there will be a change at line item. Text change will not impact this exit.

So accordingly you can put your conditions .

Thanks

Sushil