‎2007 Jul 20 11:17 AM
Hi All,
In transaction iw32,I am using the badi workorder_update.In thisimplementation i an using bapi BAPI_ALM_ORDER_GET_DETAIL to fetch the components in the components tab.But If i go to iw32 and delete some components from the order and then when my badi implementation calls this bapi it will give me all the components ,even those i had deleted.There is a flag in the components table DELETE_IND which should give x for item delelted .but this is giving space for all the components.Is there any way I can differentiate between the components I have deleted.
Or is there any other FM which will give me only the components after deletion.
Please reply,its urgent
Thanks & Regards
ANu
‎2007 Jul 22 8:51 AM
Anu
We currently use the user exit EXIT_SAPLCOIH_009 (the WO "save" exit) to validate changes etc. but I think our method to retrieve the components could also be used in the BADI. We use function module CO_BC_RESBD_OF_ORDER_GET which basically just returns the component table from higher in the call stack. It has options to filter out deleted components but you could also do this yourself after the data is returned using the fields VBKZ and XLOEK in the RESBD_GET table.
Note: there are other useful FMs in the same function group such as CO_BO_OPR_OF_ORDER_GET which returns the operations from memory.
I hope this info doesn't come too late for you...
Regards
Glen
‎2007 Jul 22 8:51 AM
Anu
We currently use the user exit EXIT_SAPLCOIH_009 (the WO "save" exit) to validate changes etc. but I think our method to retrieve the components could also be used in the BADI. We use function module CO_BC_RESBD_OF_ORDER_GET which basically just returns the component table from higher in the call stack. It has options to filter out deleted components but you could also do this yourself after the data is returned using the fields VBKZ and XLOEK in the RESBD_GET table.
Note: there are other useful FMs in the same function group such as CO_BO_OPR_OF_ORDER_GET which returns the operations from memory.
I hope this info doesn't come too late for you...
Regards
Glen