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

LSMW - Direct Input

Former Member
0 Likes
807

Hi Pals,

We are using the standard direct input pgm <b>RCSBI010</b> for creation on BOMs using an LSMW. However, when we are giving multiple BOM components in our file for a single header, each component is getting created separately. But this is not the case that we want. We want all the BOM components given in the file for a single header to be created for a single BOM itself. We are using the transaction CS01 to acheive this.

When I checked the LSMW, the target field for this BOM COMPONENT is IDNRK. However to enter multiple BOM line items I would require it to be something like IDNRK(01). But I am not sure if this is a right analysis.

If any of you have an idea how to handle this, please provide your valuable inputs.

Regards,

Gayathri N.

Hi Pals,

We are using the standard direct input pgm <b>RCSBI010</b> for creation on BOMs using an LSMW. However, when we are giving multiple BOM components in our file for a single header, each component is getting created separately. But this is not the case that we want. We want all the BOM components given in the file for a single header to be created for a single BOM itself. We are using the transaction CS01 to acheive this.

When I checked the LSMW, the target field for this BOM COMPONENT is IDNRK. However to enter multiple BOM line items I would require it to be something like IDNRK(01). But I am not sure if this is a right analysis.

If any of you have an idea how to handle this, please provide your valuable inputs.

Regards,

Gayathri N.

3 REPLIES 3
Read only

Former Member
0 Likes
659

Hi ,

can u tell me what <b>Record type</b> u are using , Please go thru the Documentation of this program.

Regards

Prabhu

Njoy SAP.

Read only

Former Member
0 Likes
659

Hai Gayatri

Check the following LSMW Steps

Using Tcode MM01 -- Maintain the source fields are

1) mara-amtnr char(18)

2) mara-mbrsh char(1)

3) mara-mtart char(4)

4) makt-maktx char(40)

5) mara-meins char(3)

the flate file format is like this as follows

MAT991,C,COUP,Srinivas material01,Kg

MAT992,C,COUP,Srinivas material02,Kg

AMT993,C,COUP,Srinivas material03,Kg

MAT994,C,COUP,Srinivas material04,Kg

MAT995,C,COUP,Srinivas material05,Kg

goto Tcode LSMW

give Project Name

Subproject Name

object Name

Press Enter -


Press Execute Button

It gives 13 radio-Button Options

do the following 13 steps as follows

1) select radio-Button 1 and execute

Maintain Object Attributes

select Standard Batch/Direct Input

give Object -- 0020

Method -- 0000

save & Come Back

2) select radio-Button 2 and execute

Maintain Source Structures

select the source structure and got to click on create button

give source structure name & Description

save & Come Back

3) select radio-Button 3 and execute

Maintain Source Fields

select the source structure and click on create button

give

first field

field name matnr

Field Label material Number

Field Length 18

Field Type C

Second field

field name mbrsh

Field Label Industrial Sector

Field Length 1

Field Type C

Third field

field name mtart

Field Label material type

Field Length 4

Field Type C

fourth field

field name maktx

Field Label material description

Field Length 40

Field Type C

fifth field

field name meins

Field Label base unit of measurement

Field Length 3

Field Type C

save & come back

4) select radio-Button 4 and execute

Maintain Structure Relations

go to blue lines

select first blue line and click on create relationship button

select Second blue line and click on create relationship button

select Third blue line and click on create relationship button

save & come back

5) select radio-Button 5 and execute

Maintain Field Mapping and Conversion Rules

Select the Tcode and click on Rule button there you will select constant

and press continue button

give Transaction Code : MM01 and press Enter

after that

1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter

2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter

3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter

4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter

5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter

finally

save & come back

6) select radio-Button 6 and execute

Maintain Fixed Values, Translations, User-Defined Routines

Create FIXED VALUE Name & Description as MM01

Create Translations Name & Description as MM01

Create User-Defined Routines Name & Description as MM01

after that delete all the above three just created in the 6th step

FIXED VALUE --MM01

Translations --MM01

User-Defined Routines --MM01

come back

7) select radio-Button 7 and execute

Specify Files

select On the PC (Frontend) -- and click on Create button(f5)

give the path of the file like "c:\material_data.txt"

description : -


separators as select comma radiao- button

and press enter save & come back

😎 select radio-Button 8 and execute

Assign Files

Save & come back

9) select radio-Button 9 and execute

Read Files

Execute

come back

come back

10) select radio-Button 10 and execute

Display Imported Data

Execute and press enter

come back

Come back

11) select radio-Button 11 and execute

Convert Data

Execute

come back

Come back

12) select radio-Button 12 and execute

Display Converted Data

Execute & come back

13) select radio-Button 13 and execute

Start Direct Input Program

select the Program

select continue button

go with via physical file

give the lock mode as 'E'

and execute

BOM Explosion

/people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap

BOM

http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm

http://www.sap-img.com/sap-sd/sales-bom-implementation.htm

http://www.sap-basis-abap.com/sappp007.htm

LSMW

http://www.sap-img.com/sap-data-migration.htm

http://www.sapgenie.com/saptech/lsmw.htm

http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf

http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Wor...

Thanks & regards

Sreenivasulu P

Thanks & regards

Sreeni

Read only

Former Member
0 Likes
659

Hi Prabhu,

I went through the documentation. I am not aware of how the record type is to be given, however, I give the input file as this:

ITEM_NO ITEM COMP_ITEM QTY SEQ_NO

1A23 10 1A111 1 1

20 1A112 1 1

30 1A113 1 1

In such a case for every comp_item, there is a BOM created for 1A23.

I find from the LSMW that all these fields are related to the structure BICSP which belongs to record type 2.

The item_no is also replated to the record type 1, i.e. the header.

Can you pls explain if the record type has to be specified somewhere explicitly?

Rgds,

Gayathri N.