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

Material BOM creation

Former Member
0 Likes
767

Hi All,

My requirement is to upload the legacy BOM data into SAP using transaction CS01(Material BOM creation).

The input text file is in the format as below,

<b>MATERIAL PLANT USAGE ITEM-CATEGORY COMPONENT QUANTITY UNIT</b>

Is there any Function Module or BAPI thru which this requirment can be accomplished?

Thanks & Regards,

Anil.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

BAPI_MATERIAL_SAVEDATA is used to create new material master data or to change existing material master data.

Refer to function module documentation for a detailed explanation.

Hope this helps.

5 REPLIES 5
Read only

Former Member
0 Likes
733

You can use the fm:

CSAP_MAT_BOM_CREATE

Regards,

ravi

Read only

Former Member
0 Likes
734

BAPI_MATERIAL_SAVEDATA is used to create new material master data or to change existing material master data.

Refer to function module documentation for a detailed explanation.

Hope this helps.

Read only

Former Member
0 Likes
733

Hi,

Try using the RFC function module 'CSAP_MAT_BOM_CREATE', this might help,

Rgds,

Read only

Former Member
0 Likes
733

Hi Ravi & Latha,

Thanks for ur replies.

But in this function module one of the importing parameter I_STKO (BOM header data)is mandatory.

But my input text file doest have any data related to that structure.

how can i proceed further?

Thanks & Regards,

Anil.

Read only

0 Likes
733

Hi,

You can pass the quantity & UOM available in the flat file to I_STKO structure, and STLAL field can be incremented based on the number of line items, but you need to also default some values like STLTY = 'M',

Hope this helps,

Rgds,