2023 Mar 02 2:17 PM
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
2023 Mar 02 2:26 PM
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
2023 Mar 02 4:03 PM
Sorry for missing this part, I need an FM or BAPI to do this action, not manual intervention.
2023 Mar 02 4:09 PM
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.
2024 Dec 03 7:30 PM
Hi Naveena,
I'm facing the same issue. Have you found a solution or a workaround?
Thanks in advance