Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with BAPI 'BAPI_ALM_ORDER_GET_DETAIL'

Former Member
0 Likes
1,847

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,000

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

1 REPLY 1
Read only

Former Member
0 Likes
1,001

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