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

BAPI for BOM Upload

Former Member
0 Likes
2,970

Looking for a BAPI to post BOM data from internal table to database tables with respective error logs and success logs (with respect to completion log....logs to be displayed in a report output).

Fields of internal table are :

STKO-STLNR (BOM No)

STKO-STLTY (BOM Category)

STKO-STLST (BOM Status)

STKO-BMENG (Base Quantity)

STKO-DATUV (Valid from)

STKO-DATUB (Valid to)

STKO-LKENZ (Deletion Indicator)

STPO-POSTP (Item Category)

STPO-IDNRK (Component)

STPO-MENGE (Component Quant.)

STPO-IDENT (Item ID)

MAST-MATNR (Material)

MAST-WERKS (Plant)

MAST-STLAN (BOM Usage)

I am using FM - CS_BOM_EXPL_MAT_V2...But i am not able to trap the logs and could not find all the fields as well (STKO-STLST).

Will this FM serve the purpose? If not please help me with a BAPI.

Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,946

Hi,

Check this FM BAPI_BOM_UPLOAD_SAVE

7 REPLIES 7
Read only

Former Member
0 Likes
1,947

Hi,

Check this FM BAPI_BOM_UPLOAD_SAVE

Read only

0 Likes
1,946

Hi,

If I use the BAPI BAPI_BOM_UPLOAD_SAVE, My database table doesnt get populated with the above mentioned three fields of MAST (MATNR, WERKS etc) since it is in the IMPORT tab.

How do I post data for MAST then?

Kindly help me.

Regards.

Read only

0 Likes
1,946

Hello,

Use the below function modules

CSAP_MAT_BOM_CREATE

also check the Funcion group CSAP where u will find different funciton moduels

Based on Sy-subrc values from them u can prepare the log for Success/Filure BOM uploads.

Regards

Read only

0 Likes
1,946

Hi:

Please guide me how to run BAPI for BOM upload.

shegar

Read only

0 Likes
1,946

Hi,

Can you please let me know what is the requirement for BOM Upload as I have already created a zbapi for the same. if the requirement matches to it will send you the solution.

THanks

Read only

0 Likes
1,946

Dear Sabya,

I am trying to download Bom data from 4.7 and upload that data into ECC 6.0. We have 12 levels to upload Bom data. I tries in different ways to do this but it was failed. Here i have seen the thread posted by you. Can you share me your ideas how to download and upload the Bom data.Here you said you wrote one bapi for that . I hope you will give me some idea on this .

Regards,

Madhu.

Read only

Former Member
0 Likes
1,946

hi

Check weather the COMMIT parameter is also included in that BAPI

if not

refer to the Below link as reference

Committ

http://help.sap.com/saphelp_nw04/helpdata/en/fa/814d3ccd6fba74e10000000a114084/content.htm

BAPI related to BOM:

BAPI_MATERIAL_BOM_GROUP_CREATE Creation of a material BOM group

BAPI_MAT_BOM_EXISTENCE_CHECK Check whether BOM for material exists

BAPI_BOM_UPLOAD_SAVE Main Module for BOM Update (Upload from CRM)

regards

Saurabh Goel