Application Development 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: 

FM OR BAPI to add material to BOM

Former Member
0 Kudos

Hi ,

Instead of going to transactin cs02 and adding matrial to Bom .

Is any FM or bapi exist for doing the same ?

3 REPLIES 3

Former Member
0 Kudos

Hi,

You can use function module CSAP_MAT_BOM_MAINTAIN to process simple material BOMs.

This function module is intended mainly as a tool for changing BOMs. However, it can also be used to create BOMs

Thanks,

Veera K

Former Member
0 Kudos

Hi ,

Thanks , This bapi is creating new material to Bom .

But its not giving any success message or error message .

Its just setting FL_WARNING = 'X' in all case success or error .

So please tell me how to identified whether success or error happened .

0 Kudos

Hi,

If function module has exceptions defined, then you can easily know whether function call was success or error.

This CSAP_MAT_BOM_MAINTAIN has exception defined.

So after calling this FM, check sy-subrc.

If its zero then it should be success.

Regards

Meenakshi