06-03-2012 11:56 PM
Hi all,
I have one object to delete BOM data from standard SAP tables. User has provided me the txt file of all the material numbers to be deleted.
Whats the best way to do it? How can I handle the foreign key relationship of material?
Any suggestions will be helpful.
Thanks,
J
06-04-2012 6:40 AM
Hello J Singh,
The best way to delete the BOM using ABAP program is to use BAPI.
'CSAP_MAT_BOM_DELETE' use this BAPI to delete the BOM.
You have to paas only Material No. and BOM usage as import parameter.
You can load text file contains Material no into internal table in abap program. Then loop that internal table and delete one by one material bom.
06-04-2012 6:33 AM
In SCN search for the function module to delete the BOM. It has been discussed many times.
06-04-2012 6:40 AM
Hello J Singh,
The best way to delete the BOM using ABAP program is to use BAPI.
'CSAP_MAT_BOM_DELETE' use this BAPI to delete the BOM.
You have to paas only Material No. and BOM usage as import parameter.
You can load text file contains Material no into internal table in abap program. Then loop that internal table and delete one by one material bom.
06-07-2012 5:09 PM