05-12-2009 3:41 PM
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.
05-12-2009 3:46 PM
05-12-2009 3:46 PM
05-14-2009 1:13 PM
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.
05-14-2009 1:21 PM
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
07-09-2009 1:03 PM
07-09-2009 2:04 PM
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
02-25-2010 3:38 PM
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.
07-10-2009 4:59 AM
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