Hello,
I require a help for the following issue:
Case A: KIT Items
-
1. I modify a vbkd field for the main item on the screen in VA01.
2. USEREXIT_MOVE_FIELD_TO_VBKD gets triggered for this item.
3. Now in this exit I perform some calculation & modify some fields in XVBEP & XVBKD tables for all the relevent subitems of the kit using -
LOOP AT xvbap INTO wa where uepos = vbap-posnr.
Now I want to trigger ATP for the main item as well as all the sub item. How to achieve this ?
I tried using the flag -
vbap_ende_verfuegbarkeit = 'X'. But it trigger ATP only for the current item i.e. only for the Main Item & not the sub items
Case B: Header Changes
-
1. I modify a vbak field for the main item on header in the screen in VA01.
2. USEREXIT_MOVE_FIELD_TO_VBKD gets triggered for the header ( POSNR = '000000' )
3. Now in this exit I perform some calculation & modify some fields in XVBEP & XVBKD tables for all items of the order using - LOOP AT xvbap INTO wa.
Now I want to trigger ATP for the all the items looped in the sales order. How to achieve this ?
Flag vbap_ende_verfuegbarkeit = 'X' doesn't help here as it work only for the current item no. in this case it is '000000'
After lot of investigation on my side I have found (I'm not sure if it will really work) that if I can some how automatically trigger USEREXIT_MOVE_FIELD_TO_VBEP for all the required items it should trigger ATP as well.
Can somebody help ?