Skip to Content
0
Dec 21, 2004 at 06:16 AM

Userexit for insert new sales order item in VA01 / VA02

913 Views

Dear all,

The user's requirement is:

In VA01/VA02, when user entered a certain material, let say material ID is 100011, request sales quantity 10, the system will automatically split it into 2 items lines, one is 100011 for qty 9 and the other one is 100011 for qty 1.

i.e.,

BEFORE:

item material qty

10 100011 10

AFTER

item material qty

10 100011 9

20 100011 1

Now, i have 2 questions:

1. How to change the item quantity in exits?? i have try MV45AFZZ -> USEREXIT_MOVE_FIELD_TO_VBAP, but seems not work....

2. How to add a new item? (just like the item 20 in the above case)

Thanks for your help and valuable time in reading it....

Thanks a lot!