In SD sales order (VA01) I create line item 10 with sub item 11 such as:
10 89464988 1 M 11 99912001 1 PC 10
If I change the quantity of main item from 1 to e.g. 2 so the quantity of sub item will also be changed to 2.
Now, Iu2019m looking for a possibility to hold the quantity of sub item to 1.
In SAPMV45A I cannot find an appropriated user-exit for that.
How can I set the quantity to 1 in sub item? What exit can be used for that?
Thank your for your hints in advance.
in that case you could also try the USEREXIT_CHECK_VBEP. In XVEBP you get the number of the position, that you can read in table xvbap.
Just but an breakpoint inside the exits and try, which is the best for your case.
In general, in these old SAPMV45A-Exits you have access to all internal areas and tables that are defined in the program (XBAP, XBEP and so on). That makes it so easy to change - but also so dangerous.
Could please check with the routine FORM userexit_save_document_prepare OR FORM userexit_save_document
in the INCLUDE MV45AFZZ of the VA01 main program. Loop XVBEP table in this routine and modify the item quantity entrry. You can even find the XVBAP entries in this rotine also.
It is going to help you to resolve this problem. Please check.