‎2009 Jun 23 11:17 AM
Hi all
I have a little concept question about use of FM for updating a BOM.
I write a report that do this for updating a bom (taking as input the new bom):
1) check if the bom exists (trying to reading it)
2) if yes delete it
3) create the new bom
the question is: is there some informations that MUST be used when re-creating the bom so that connections on other element based on the bom (like routing for example) are not lost when deleting bom (before recreating) or the material number is the only thing important in this scenario and everything is based on it?
debugging, I see that (obviously) when deleting and creating again the bom, the bom number changes .. does it matter?
Also you can suggest me a better way to update the bom .. I find the CSAP_MAT_BOM_MAINTAIN, but I cannot understand how to use it ... when I try to use it giving it the new list of material for bom it just append the new list to the old one ..
thanks to anyone can help me make more clear
gabriele
‎2009 Jun 23 12:39 PM
Hi,
BOM material or child material with respect to the parent / main material is depend on the main material, plant, bom usage, and validity period.
You can also check in transaction CS03.
Based on the above details, please try executing the mentioned function module, you will come to know the importance.
Regards,
Santhosh.