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

MATERIAL BOM update

Former Member
0 Likes
442

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

1 REPLY 1
Read only

Former Member
0 Likes
305

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.