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

cs01 upload

Former Member
0 Likes
513

Dear All,

I have to upload the data for transaction cs01, please provide the best possible way with example or sample code.

Regards

Vikas

2 REPLIES 2
Read only

Former Member
0 Likes
458

Use the below BAPI

BAPI_MATERIAL_BOM_GROUP_CREATE.

CS_BI_BOM_CREATE_WITH_LONGTEXT

Else follow the below method for recording.

To handle table control you need to do the recording of cs01 accordingly.

Record the transaction entring the header data and when you come to the table control, enter one or two rows and press new entries, which gives you new rows for value entry. Finally once you are done with the recording, get the program from the recording.

At the point where you entered value for table control you can see the row/colum indexes. The "New Entry" okcode will give you an initialized index for the new rows.

you need to dynamically increment the indexes for the table control while you loop throught the table control data (item data).

after you pass say 5 to 10 records to the table control, you have to call the OKCODE for the "New Entry" button which gives you fresh rows for value entry and you need to initialize the indexes for the table control rows. This cycle continues until you complete the entried for table control and then proceed with further processing.

Read only

Former Member
0 Likes
458

Hi

LSMW-Standard batch input program RCSBI010(0030) is used on transaction CS01 to upload bill of material master data.

LSMW BAPI BAPI_MATERIAL_BOM_GROUP_CREATE also exist for creation of bill of material.

So any of these two methods can be used. Lets go through your requirement and finalize which is suitable.

Regards,

Tirumala Reddy