Professional Documents
Culture Documents
LSMW: Vendor Master Creation Using Standard Batch/Direct Input of LSMW
LSMW: Vendor Master Creation Using Standard Batch/Direct Input of LSMW
LSMW:
Vendor Master Creation using Standard
Batch/Direct Input of LSMW
[Author-Editor-Designer = Pavan Golesar ~15.01.2016]
Table of Contents
Initial Step:....................................................................................................................................................................... 3
Step 1: Maintain Object Attributes ................................................................................................................................... 5
Step 2: Maintain Source Structures .................................................................................................................................. 8
Step 3: Maintain Source Fields ......................................................................................................................................... 9
Step 4. “Maintain Structure Relations” ............................................................................................................................11
Step 5. “Maintain Field Mapping and Conversion Rules” ................................................................................................15
Step 6. “Maintain Fixed Values, Translations, User-Defined Routines”............................................................................16
Step 7. “Specify File” ......................................................................................................................................................16
Step 8: Assign Files ..........................................................................................................................................................19
Step 9: Read Files ............................................................................................................................................................19
Quick troubleshoot: ................................................................................................................................................20
Step 10: Display Read Data .............................................................................................................................................21
Step 11: Convert Data .....................................................................................................................................................21
Step 12: Display Converted Data .....................................................................................................................................22
Step 13: Create Batch Input Session ................................................................................................................................22
Step 14: Run Batch Input Session ....................................................................................................................................23
Testing: ...........................................................................................................................................................................24
Summary ........................................................................................................................................................................25
Introduction: Legacy System Migration Workbench or LSMW is an SAP System tool that
supports when you are copying data from non-SAP (LEGACY) systems.
LSMW can be used to easily load / change master data or transactions in SAP without any
programming at all. It can also be used in a production system to make changes to
existing data. Very limited authorization checks are available on the transaction, so the
use of it must be very well controlled.
Why is it needed: To mention one, it can be used to upload data at cutover, such as: open
orders, contracts, materials, vendors, stock on hand.
In simple terms, we need carry out migration activity so as to move from legacy system to
SAP.
Initial Step:
Go to transaction code LSMW.
Click on new
Hit enter or press Enter as below for object name details & continue.
Execute
Save
Execute
NOTE: In this tutorial, I’m only taking fields (mandatory field’s obvio), In real time such minimum fields may not suffice
thus you may need to get the technical details of fields.
Click Save .
Tip: These fields in above image will be useful in making our flat file which will be
holding the data to be uploaded to our SAP System.
Tip: To maintain structure relations click on BGR00 and ‘click relationship’ (ctrl +
F4) as shown in above screenshot it will assigned to structure. Repeat this for all
required relations in that screen.
Imp Tip:
Well this might be confusing for few guys so let me put it straight, if you ever been to tcode
XK01 (in below image), You probably have to enter Account group, Purchase Org, Company
code… These fields are referred in structure BLF00. (DOUBLE CLICK IT TO OPEN)
Example: If you want to don’t know reconciliation a/c structure or table (like me) then simply goto
xk01/02/03 tcode and press F1 on that particular field. You’ll get the structure there.
Here, I went to XK02 tcode and press F1 on recon a/c and under technical information (button)
there it is LFB1…
Okay, back to our main topic. Once relationships are done Screen looks (In my case) like below:
Keep your cursor on ‘TCODE’ field and click on ‘Insert Rule’ icon
Choose radio button ‘Constant’ (below image).
Now, Keep your cursor on field ‘BUKRS’ and click on ‘Assign source field’ icon ,
Similarly, Carryout this operation for our rest of the fields (Purch. Org, Comp code…etc)
Scroll
below
Note: Before going further, create an Excel file & save it in Tab-delimited format on your local
drive. You may see the
attachment of this Pdf to
My .txt file looks like this. get flat file (.txt file)
Keep cursor on Legacy Data - On the PC (Frontend) & click create button. Browse for your flat
file on your pc as here we specify files take file from legacy data (on the pc front end).
System automatically defaults the file name to the source structure on execution of this step.
Quick troubleshoot:
Error when uploading file 'C:\Documents and Settings\Desktop\csk' (Return Code = 13).
Message no. /SAPDMC/LSMW_OBJ_070010.
Solution:
Check file is proper tab-delimited. If still error exits then delete file perform step 7 again (imp).
Optional step: Used to verify field contents for the row of data read.
Yeaa ! Look Batch input session with session name ‘XK01’ is created.
Testing:
All 5
records
from our
Flat file
Summary:
In this way, We can upload (vendor master) data using LSMW Direct input method.