cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW TRANSACTION

Former Member
0 Kudos

Dear friends

Please help me with the step by step process of uploading data for QP01 -inspection plan through LSMW t-code. Will the same process be used for uploading BOM's also in LSMW.

Thanks & regards

Selva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear friends

Thanks a lot for the great responses.

Will be very thankful if it is possible to give a small example of loading QP01 with detailed menu paths and fields in the excel file. A dummy example will be helpful so that I can run and see the uploading.

please guide

Regards

Selva

Former Member
0 Kudos

Hi Selva,

The best way is to try. Get hold of a ABAP guy (or even w/o him) just try to execte the steps that is illustrated in detail.

If you get stuck at a particular point; we can take forward from there.

I hope you appreciate that to write down the process step by step is a little difficult practically.I can try to take snap shot of the entire process; if you insist.

Please update your business card in your profile.

Thanks,

RAVI.

Answers (6)

Answers (6)

Former Member
0 Kudos

Closed

Former Member
0 Kudos

Dear Ravi

I sent a request to your business ID displayed in the forums.Kindly send screen shots of the LSMW transaction, which will be very helpful.

thanks & regards

Selva

Former Member
0 Kudos

Done ...

Former Member
0 Kudos

Hi Selva,

Use this as a Reference Document. It is given in a simplistic way.

[Link|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]

Thanks,

RAVI.

Former Member
0 Kudos

Hi Selva,

Please find the detailed steps for using LSMW for uploading IP to SAP.I am not sure how much of a help would this be but it should be good enough for a base document.

Note the Recording can vary with what your scope of work is.Recording is however the heart of any LSMW work.

This should help !

Thanks,

RAVI.

-


Step 1: Maintain Object attributes

In this example, you will be creating the Inspection Plan master records with the help of recording a transaction (QP01). Choose radio button Batch Input Recording and click on the recording overview icon to record the R/3 transaction. Enter the Recording name as QP01_REC, the description as Recording for UpdatingIP, and the transaction code as QP01.

The system calls the transaction code QP01 and prompts you to do sample transaction as is required and saves as Recording of screen sequences.Once the transaction is completed, R/3 records the flow of screens and fields and saves the information.

Note that the fields are populated with default values. The values you entered when you recorded the transaction are set by default.If you have more fields in the recording than needed, you can remove them by clicking u2018Remove Screen fieldu2019 icon.

Observe that the transaction-recording process stores field names in a technical format. By pressing the F1 key on individual screen fields and then pressing the F9 key, the system displays technical names. You then can replace the technical names with descriptive names. Double-click on the field like RF02D-MATNR and enter the name as MATNR and the description as Material and remove the default value.Similarly, double-click on all other fields with default values and make appropriate changes.Save your changes. When you go back to the initial screen, you will see that the initial screen steps have changed.

Step 2. Maintain Source Structures

Give a name and a description to the source structure like QS01S and description as Source Structure for QP01.

Step 3. Maintain Source Fields

In this step, you need to list what fields are present in the source structure. The easiest way is to click on u2018Table Maintenanceu2019 icon to enter Fieldname, Type and Length for each field

Step 4: Maintain Structure Relations

Execute a step to u2018Maintain Structure Relationsu2019. Since, there is only one Source and Target Structure, the relationship is defaulted automatically.

Step 5: Maintain field mapping and conversion rules

If your source file already has the field value, you choose rule u2018Source Fieldu2019.Keep cursor on field u2018MATNRu2019 and click on u2018Assign Source fieldu2019 icon to choose source field MATERIAL from structure QP01S.Similarly, assign u2018Source Fieldu2019 rules to the remaining fields. Map all the fields.

Step 6: Maintain fixed values, translations, user-defined routines

You can also maintain re-usable translations and user-defined routines, which can be used across conversion tasks. In this case, that step is not required.

Step 7: Specify files

In this step, we define how the layout of the input file is. The input file is Tabular with Field Name beginning of the file.ie with Tab delimited with the first row as field names. It is present on my PC (local drive) as C:\QP01.txt.

Create an Excel file with your data and save it as a Tab-delimited text file on your local drive (C:\) and name it QP01.txt.

Step 8: Assign files

Execute step u2018Assign and the system automatically defaults the filename to the source structure.

Step 9: Read data

In this step, LSMW reads the data from the source file (from your PCu2019s local drive). You have the option to read only selected rows and convert data values to Internal format.

Step 10: Display read data

This step is optional. If required, you can review the field contents for the rows of data read.

Step 11: Convert data

This is the step that actually converts the source data (in source format) to a target format. Based on the conversion rules defined, source fields are mapped to target fields.

Step 12: Display Converted data

Again this is an optional step to view how the source data is converted to internal SAP format

Step 13: Create batch input session

Once the source data is converted in an internal format, you can create a batch session to process updates.

Step 14: Run Batch Input Session

You can execute the BDC session by Run Batch input session. Executing a batch input session is a standard SM35 transaction for managing BDC sessions. Once you have successfully executed the batch input session, the customer master records are updated in the system. You can confirm this by viewing the customer master records (QP01).

Former Member
0 Kudos

Hi

LSMW process for uploading BOM

1. Go to object attributes and assign Object: 0030, Method: 0001; Program Name: RCSBI010 in Standard batch/Direct input

2. In maintain source structures BOMHEADER and BOMITEM ( at lower level not at same level)

3. Maintain the source fields

BOMHEADER Header

KEY C(005) Common key

MATNR C(016) Material

WERKS C(004) Plant

STLAN C(001) BOM Usage

BOMITEM ITEM

KEY C(005) Common key

MATNR C(016) Material

MENGE C(004) Qty

PSOTP C(002) Item Category

There should common field(KEY) with same field type and field length in Header and Item source fields.

4. Map the header structure to BICSK to BOMHEADER and BICSP to BOMITEM

For BICSU no need to map any structure.(assuming your not uploading BOM sub item data)

5. Maintain the field mapping with Tcode value constant CS01 and Itemcategoy(POSTP) as u2018Lu2019.

6. Go to Specify files and mention your file path.

The remaining steps are standard.

Regards

S.Senthil

Former Member
0 Kudos

hi check following link

Regards

Sujit S Gujar