10-25-2013 7:35 PM
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
10-25-2013 7:43 PM
10-25-2013 7:46 PM
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
10-26-2013 12:19 PM
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