Академический Документы
Профессиональный Документы
Культура Документы
Handbook
OpenText Folder: Plant Operations/09 PM/Manual
Document Name: 09 PM 130314 [HBK] SAP LSMW for Massive Uploads ADM.IT
Authors Reviewers Approvers Receivers
Rev Revision Description Date
IT PLANT AP IT PLANT AP IT PLANT AP
1.0 Massive Uploads Procedure using LSMW. JESPEJO JESPEJO OLORENZO 14/03/13
Additional Notes:
This document contains information which may be confidential and/or privileged. The information is intended solely for the individual or entity
named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited. If you have got this information in error, please inform to the owner..
COMPANIA OPERADORA LNG DEL PERU / COLP S.A.C. Page : 2 of 21
Subj : Administration IT Applications SCode: 09 PM Rev : 0.1 I
Type : Handbook HBK Date : 14/03/13
ACode : ADM.IT Doc: SAP LSMW for Massive Uploads Hour : 09:46:23
Table of Contents
Step-by-Step Guide for Using LSMW to Update Master Data ...................................................... 3
Demo Example 1 ............................................................................................................................. 3
LSMW to Update Maintenance Plans Records with Transaction Recording .............................. 3
Step 1: Maintain Object attributes ................................................................................................. 3
Step 2: Maintain Source Structures............................................................................................... 7
Step 3: Maintain Source Fields ...................................................................................................... 7
Step 4: Maintain Structure Relations ............................................................................................. 8
Step 5: Maintain field mapping and conversion rules .................................................................. 9
Step 6: Maintain fixed values, translations, user-defined routines ........................................... 10
Step 7: Specify files ...................................................................................................................... 10
Step 8: Assign files ....................................................................................................................... 12
Step 9: Read data.......................................................................................................................... 13
Step 10: Display read data ........................................................................................................... 14
Step 11: Convert data ................................................................................................................... 14
Step 12: Display Converted data ................................................................................................. 15
Step 13: Create batch input session ........................................................................................... 16
Step 14: Run Batch Input Session ............................................................................................... 17
Demo Example 2 ........................................................................................................................... 18
LSMW to Update Maintenance Plans Records with Standard Object ....................................... 18
Step 1: Maintain Object attributes ............................................................................................... 18
Step 4: Maintain Structure Relations ........................................................................................... 18
Step 5: Maintain field mapping and conversion rules ................................................................ 19
Step 12: Display Converted data ................................................................................................. 20
Step 13: Create batch input session ........................................................................................... 20
NOTES:
Demo Example 1
LSMW to Update Maintenance Plans Records with Transaction Recording
Call Legacy System Migration Workbench by entering transaction code LSMW. Every conversion task is
grouped together as Project / Subproject / Object structure. Create a Project called PLANTEST and a
Subproject as PLANS and Object as PLANSQAS as shown in Fig 1.
The main screen of LSMW provides wizard-like step-by-step tasks, as shown in Fig 2. To complete your data
conversion, you need to execute these steps in sequence. Once a step is executed, the cursor is
automatically positioned to the next step.
Note that these steps may look different depending upon your Personal menu settings. You could make step
numbers visible by Numbers on icon or hidden by Numbers off icon. You can execute a step by double-
clicking on the row. Toggle icon Doubleclick=Display or Doubleclick=Edit, makes the step in display mode
or change mode.
NOTES:
Then follow the sequence of the process to create the master data (i.e. maintenance plan):
NOTES:
Click on: Default all to auto match the structure fields. (Fig 9)
Note that the fields are populated with default values. The values you entered when you recorded the
transaction are set by default.
Note that if you have more fields in the recording than needed, you can remove them by clicking Remove
The final matching must be finished with the following structure (Fig 10).
NOTES:
We have to complete the name of the recording and Enter. (Fig 12)
NOTES:
It will show that the initial screen steps have changed. Since you want to import data via the BDC method, the
Direct Input and IDoc-related steps are hidden, as they are not relevant.
NOTES:
Save your changes . Then go back to the initial screen. It shows the final structure
NOTES:
Its possible to use these buttons to match Recording fields with our structure (Fig 23). Also you can set each
field with a constant or predefined value.
Once all the fields are mapped, you should have an overview screen as shown (Fig 24).
NOTES:
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.
NOTES:
Create an Excel file (Fig 26) with your data and save it as a Tab-delimited text file on your local drive (C:\) and
name it Plan1.txt.
In this step, we define how the layout of the input file is. Select Files on the PC (Frontend) (Fig 27)
The input file is a [Tab] delimited with the first row as field names. It is present on my PC (local drive) as
C:\...\Plans1.txt (See Fig 1.) Click on Tabulator delimiter and Field Names at start of file as shown (Fig 28)
NOTES:
In this step, LSMW reads the data (Fig 30) from the source file (from your PCs local drive). You have the
option to read only selected rows and convert data values to internal format.
Now, it shows the report of the read, all data must be read and written. (Fig 32)
NOTES:
This step (Fig 33) is optional. If required, you can review the field contents for the rows of data read.
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. Execute 11 Convert Data (Fig 35)
NOTES:
Again this is an optional step to view how the source data is converted to internal SAP format (Fig 38).
NOTES:
Once the source data is converted in an internal format, it creates a batch session (Fig 41).
NOTES:
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 records are updated in the system.
Select the created bacth, and then click in Process (Fig 45)
After the execution, it shows a confirmation of successful batch execution. (Fig 46)
Note! Browsing through these 14 steps, you may get a feeling that this is a very lengthy and time-consuming
activity. However, for the purposes of demonstration, I have made it detailed. Although it looks lengthy,
actually it takes hardly few hours from start-to-finish! After playing around with few simple LSMW scripts, you
will find it so easy to change and create more complex ones.
NOTES:
Demo Example 2
LSMW to Update Maintenance Plans Records with Standard Object
As an alternative to using Transaction Recording, you could also use a standard SAP object to update
Maintenance Plans Records. Business Object 0050 is already pre-defined in the system with standard Batch.
Create an Object CUST_OBJ within Project as PLANS3 and Subproject as PLANS as shown in Fig 46.
Note! For the Demo example 2, I will list only those steps that are different from the first demo example.
. Keep Cursor on these four target structures and click on icon Create Relation and
structure relations are maintained as shown in Fig 48.
Keep your cursor on selected field and click on Insert Rule icon
Keep your cursor on selected field and click on Assign source field icon . Choose source field
from source structure. (See Fig 50)
Similarly, choose source fields for Sales Organization, Distribution Channel, and Division. (See Fig 51)
Note that if you had only one record in source file, the converted file has two records.
NOTES:
Summary
Once BDC session is processed successfully, SAP updates the maintenance plans records with relevant
changes. Review these specific entries and confirm that the changes are correctly reflected in the master
records.
NOTES: