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: 

Deleting single component of a subcontracting PO

0 Kudos
1,030

Hello Experts,

Here the requirement is to delete single component(BOM component) from a subcontracting PO. I have tried multiple FM's listed below but none of them are working.

ME_COMPONENTS_UPDATE - Deleted all the components

ME_COMPONENTS_MAINTAIN - No deletion happened

BAPI_RESERVATION_CHANGE - No deletion happened

MB_CHANGE_RESERVATION - Updated XLOEK field ='X' in the table level but component is still displaying at the transaction level.

Can someone please help me on deleting a single component from subcontracting PO through an FM or BAPI.

Thanks in Advance,

Naveena

4 REPLIES 4

Neeraj_Jain
Active Contributor
0 Kudos
886

Hello naveena.mandava,

Please go to transaction CS02 - Change BOM and delete that component and in transaction ME22N under "material data" tab refresh your BOM for your subcontracting PO. The deleted component will not be showing.

Regards,

Neeraj Jain

Best Regards,
Neeraj Jain

0 Kudos
886

Sorry for missing this part, I need an FM or BAPI to do this action, not manual intervention.

0 Kudos
886

If this is for a single sub-contracting PO then why we need to go with ABAP? However, directly we can't delete any component from sub-contracting PO as components is populating from BOM only. If you want to delete component itself in PO then it would not be advisable. If in sub-contracting PO there is no backend BOM and you entered component manually in that case you can check feasibility to remove component from ABAP side.

Best Regards,
Neeraj Jain

Giacomo4
Newcomer
0 Kudos
276

Hi Naveena,

I'm facing the same issue. Have you found a solution or a workaround?

Thanks in advance