Vous êtes sur la page 1sur 81

SAP Technical for non-Techncial ssers

LSMW
MEK1
Create Conditions
In LSMW, click Create ICON,
Enter Project name and
Description (without space)
click Continue
Next, Enter Subproject and its
description. Click Continue ...
Next, Enter Object and Name
(both are user defined) click
Continue ...
Step 1 : Maintain Object Attributes
click Execute

Record the transaction and data


entry fields
Toggle to
Change mode
Select radio button Batch Input
Recoding and click
Recordings: Overview
click Create
Recording
Click Recording name
and Description,
usually I use the
t-code. click Continue
Enter the t-code
and click
Continue
Start recording
Enter the Condition type
and press Enter

You must Enter the valid Condition


Type and Press ENTER
Enter Material
Enter Plant
Enter Vendor
Enter Amount

Press ENTER
SAVE

The reason for entering exactly as if


manually creating MEK1 is to properly
recored ALL steps into the LSMW
recording.
Cleick to show Default
field names which will
be mapped to the CSV
flat file later
SAVE

Field names to be
mapped to the
CSV file later
BACK
BACK
BACK
SAVE

Type the
Recording ID
BACK
Step 2 : Maintain Source Structure

Maintain a Source Structure for


data mapping
Toggle to change
mode
Click Create
Source Structure
Normally I create all
these names using
consistent
methods click
Continue
Here can have multiple
source structure, but we
need only one here.
SAVE
BACK
Toggle to change in this
session from now on

Step 3 : Maintain Source Fields

Maintain Source Fields from step 1


to Source Structure in step 2
Click the select the Source
Structure and click the Table
Maitenance ICON
Enter field names
and SAVE and
BACK

Make sure the sequence is


exactly what you have from
your incoming CSV file !!!!!!!!
Save and
BACK
Step 4 : Maintain Source Relations

Assign Source Structure with


source fields (step 2 & 3) to the
recording in step 1
Save

One recording with One


structure is auto assign
BACK
Step 5 : Maintain Field Mappings

Map fields from Recording (step1)


and into fields in Source Structure
in (step3) with option for conversion
rules to the mapped fields
Clik on Condition
Type here and
click Source
Field
Double-click to
select the Source
field
continue the same
with the rest
Mapped each field
accordingly ...
Create a
spreadsheet for
the data
Enter content as
mapped
SAVE as .CSV
Step 6 : Specify Files

Skip the Step before this (Fixed


Values, Translations, Routines) if it
is not required to data conversions.
Click to select source of
Legacy data from PC and
select Add Entry
F4
Set Comma

Set FIle Names at


Start of File
SAVE &
BACK
Step 7 : Assign Files

Assign File to the Source Structure


Click to select Source
Structure (yellow), and cilck
Assignment
SAVE &
BACK

Note file assigned


to the Source
Structure
Step 8 : Read Data

Upload the Data in LSMW Read


File Mode (required step) also to
check data mapping.
BACK twice

Log of data Read


Step 9 : Display Read Data

Check LSMW read data format


Data uploaded
and SAVED into
this file for read
format only
Step 10 : Convert Data

Check LSMW read data format to


write format (possibly with
conversion rules before step 6)
BACK
Step 11 : Display Converted Data

Double-check LSMW write format


converted data
Data uploaded
and SAVED into
this file for write
format
BACK
Step 12 : Create Batch Input
Session

Prepare for batch input instruction


6 instructions
created
Step 13 : Run Batch Input Session

Execute Batch input for data upload


from CSV file
Create another file
Perform Read to convert to lsmw.read
Perform Convert to convert to lsmw.conv
Create batch
Run batch
for new files
Data upload
completed
Create another file
for data upload
Perform Read to convert to lsmw.read
Perform Convert to convert to lsmw.conv
Create batch
Run batch
for new files
Run Batch Input
Session
Data
uploaded to
SAP