08-01-2008 9:44 AM
Hi ,
Instead of going to transactin cs02 and adding matrial to Bom .
Is any FM or bapi exist for doing the same ?
08-01-2008 10:13 AM
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
08-01-2008 12:04 PM
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 .
08-01-2008 12:30 PM
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