‎2008 Oct 02 12:18 PM
Dear All,
I have to upload the data for transaction cs01, please provide the best possible way with example or sample code.
Regards
Vikas
‎2008 Oct 02 3:03 PM
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.
‎2008 Oct 03 7:09 AM
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