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: 

BAPI to Upload the data

Former Member
0 Kudos

I have to upload BOM Data from legacy system( Excel .csv format ) to SAP. I can do that with BDC but client requirement is that i have to send data by using BAPI. I dont know how to do. After long search i found BAPI_MATERIAL_BOM_GROUP_CREATE is the function module i have to use.

There are many tables and structures in that Function Module.

I have many doubts..

1. In the BOM there are many items ( components ) for a material.. How can i link that this Header ( Material ) has many items ( Components ) in BAPI.

2. Is there any possibility to see the screens ( As if in Call transaction ) to see whether the data is correctly filed or not.

3. How can i see the error messages by using BAPI.

please let me know how to use the BAPI.

3 REPLIES 3

Former Member
0 Kudos

Hi Bharani,

I can answer two of your questions:

2. No, with a BAPI you cannot see the screens during processing. After it is called you can display the BOM and check that the data is loaded correctly.

3. You can see the error messages of the BAPI by looking in the RETURN structure. This will contain details of any error, warning, information, and success messages generated during the creation of the BOM.

Cheers,

Brad

0 Kudos

Thank you for your quick reply.

Thanks Brad.

0 Kudos

Hi Bharani,

I know that you probably already know this, but many do not, so I add for your reference that you must call the FM BAPI_TRANSACTION_COMMIT after any (most anyway) BAPI call to commit the BAPI changes to the database.

Otherwise, you may get a success message from the BAPI, but in fact you get no records in the database (no BOM).

Cheers,

Brad