You are on page 1of 106

LSMW

LSMW
Legacy System Migration
Legacy System Migration
Workbench
Workbench
Legacy System Migration Workbench
Legacy System Migration Workbench
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
LSM Workbench
LSM Workbench
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
What is Data migration?
What is Data migration?

In an SAP R/3 implementation the data rom legacy In an SAP R/3 implementation the data rom legacy
system !non SAP R/3" needs to be transerred to system !non SAP R/3" needs to be transerred to
the SAP system the SAP system

Periodic data transer bet#een R/3 and other Periodic data transer bet#een R/3 and other
system !interacing" is also re$%ired system !interacing" is also re$%ired

&oth o the abo'e orm a part o data migration &oth o the abo'e orm a part o data migration
Signiicance o data migration
Signiicance o data migration

Data migration comes in the end o R/3


implementation(

)o start #ith Data Migration irst


conig%ration sho%ld be %lly completed

Data migration is abo%t *+, to -+, o


the total implementation e.penses(
Data migration tools
Data migration tools
)he tools or data migration are/0
)he tools or data migration are/0

&D1 !&
&D1 !&atch atch
D
D
ata
ata
1
1
omm%nication
omm%nication
"
"

LSMW !L
LSMW !L
egacy
egacy
S
S
ystem
ystem
M
M
igration
igration
W
W
orkbench
orkbench
"
"
Dierence bet#een &D1 2 LSMW
Dierence bet#een &D1 2 LSMW

LSMW oers dierent techni$%e or migrating data/ LSMW oers dierent techni$%e or migrating data/
Direct inp%t3 &API3 Idoc3 &atch inp%t recording( Direct inp%t3 &API3 Idoc3 &atch inp%t recording(
While &D1 basically %ses batch inp%t sessions and While &D1 basically %ses batch inp%t sessions and
1ALL )RA4SA1)I54 method( 1ALL )RA4SA1)I54 method(

Limit on n%mber o records #hich can be %ploaded Limit on n%mber o records #hich can be %ploaded
in one session o &D1 !666 records"( 4o s%ch limit in one session o &D1 !666 records"( 4o s%ch limit
in LSMW( in LSMW(

LSMW is more to do #ith conig%ration #hile &D1 LSMW is more to do #ith conig%ration #hile &D1
in'ol'es programming( in'ol'es programming(
LSM Workbench
LSM Workbench
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
What is LSMW?
What is LSMW?
The LSM Workbench is an R/3-based tool that supports you when
transferring data fro
- 4on0SAP systems !7Legacy Systems7" to R/3
- 5nce or Periodically(
The tool supports con!ersion of data
The data can be iported into the R/3 syste !ia
0 &atch Inp%t
0 Direct Inp%t
0 &API8s
0 IDocs"
LSMW
LSMW
)he LSM Workbench is a tool that s%pports data transer
rom non0SAP systems to R/3( )he main %nctions o the
LSM Workbench are/
0 Import data !legacy data in spreadsheet tables and/or
se$%ential iles"
0 1on'ert data !rom so%rce ormat to target ormat"
0 Import data !into the database o the R/3 application"
Principles o LSM Workbench

#asic $rinciples of LSM workbench%-


& Most o the %nctions sho%ld reside in R/3( 4o collection
o indi'id%al programs on dierent platorms(
& )he $%ality and consistence o the data imported into R/3
sho%ld be more important than speed and perormance o
data migration(
& 9.isting kno#ledge and coding sho%ld be %sed(
& )he de'eloped :mapping7 and r%les sho%ld be re%sable
and th%s be %sed repeatedly in pro;ects(
<eat%res o LSMW
<eat%res o LSMW
<eat%res/0

Integrated in R/3 and th%s independent o indi'id%al platorms

)he import techni$%e to be %sed in an indi'id%al case3 depends on the b%siness ob;ect as
#ell as on the a'ailability o standard inp%t programs

Data consistency d%e to standard import techni$%es/


&atch inp%t
Direct inp%t
&APIs !&%siness Application Programming Interaces"
IDocs !Intermediate Doc%ments"

Str%ct%red #ay o #orking3 beca%se yo% ha'e to inish e'ery step beore starting the ne.t step


=raphical representation
=raphical representation
Pre0re$%isites or LSMW
Pre0re$%isites or LSMW

Make s%re that SAP c%stomi>ing is inished( Make s%re that SAP c%stomi>ing is inished(

R%n the rele'ant transaction in the SAP system man%ally R%n the rele'ant transaction in the SAP system man%ally
#ith test data rom the legacy system and see #hich ields #ith test data rom the legacy system and see #hich ields
m%st be illed( )here may be re$%ired ields that do not m%st be illed( )here may be re$%ired ields that do not
correspond to data ields in the legacy system( In s%ch a correspond to data ields in the legacy system( In s%ch a
case3 one sho%ld better assign a i.ed 'al%e or establish an case3 one sho%ld better assign a i.ed 'al%e or establish an
optional ield or data transer( optional ield or data transer(

Map the ields in ad'ance in #ritten orm/ Assign the so%rce Map the ields in ad'ance in #ritten orm/ Assign the so%rce
ields to the target ields( ields to the target ields(

Determine the orm in #hich non0SAP data #ill be transerred Determine the orm in #hich non0SAP data #ill be transerred
into the SAP system !e(g( 'ia 7Mo'e7 or according to a r%le"( into the SAP system !e(g( 'ia 7Mo'e7 or according to a r%le"(
Import methods?
Import methods?
Preerred methods o inp%t are described in order o preerence/
@( ID518s
Ad'antages/ <ast to load3 easy processing3 lo# programming
or standard ID518s
Disad'antages/ =ood kno#ledge o ID51 processing
re$%ired3 time cons%ming i changes ha'e to be made to a
created ID51
*( &API8s
Ad'antages/ <ast to load3 easy processing3 logical interace
or %nctional/end %ser based on the b%siness processes
in'ol'ed(
Disad'antages/ 4ot al#ays complete #ith all inp%t ields o a
transaction
Import Methods?
Import Methods?
3( Standard/Direct Inp%t
Ad'antages/ Well tested method3 <ast to load3 easy processing(
Disad'antages/ 4o en;oy transactions3 not al#ays complete #ith all
inp%t ields o a transaction(
-( &atch Inp%t
Ad'antages/ 9asy modiiable3 all ields are a'ailable3 easy re0
processing(
Disad'antages/ 1omparati'ely slo#3 to %se ne# screens or tabs a
ne# recording has to be created3 not easily %sable or en;oy
transactions3 dependant on %ser settings3 dierence in oregro%nd
and backgro%nd processing may occ%r(
LSM Workbench
LSM Workbench
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
=etting Started
=etting Started
Aere is an e.ample sho#ing the #ay to %se the con'ersion tool LSMW in SAP( It
starts in the start0%p screen o LSMW transaction and ends #ith a screen on
#hich the res%lts o the con'ersion are displayed
I yo% #ant to create or change ob;ects3 make s%re that yo% are #orking in
change mode( )o acti'ate this mode3 click Change in the corresponding
processing step( 5nly this mode pro'ides all %nctions re$%ired or changing
ob;ects
Step @ 0 9nter transaction LSMW
Step @ 0 9nter transaction LSMW
9nter the transaction code !LSMW" or add this transaction to yo%r a'o%rites !right0click
#ith yo%r mo%se on the <a'o%rites map in the start men% and choose Insert transaction3
type lsm# and press enter"3 since LSMW is an additional transaction3 it is not a'ailable in
the standard SAP men%(
Step * B pro;ect3 s%bpro;ect3 ob;ects
Step * B pro;ect3 s%bpro;ect3 ob;ects
At the initial screen3 yo% can create a ne# pro;ect3 corresponding
s%bpro;ects and ob;ects 'ia 9dit 0C 1reate ne# entry( Alternati'ely yo%
can select rom an e.isting pro;ect
Pro;ect/ An ID #ith a ma.im%m o @+ characters to name yo%r data
transer pro;ect( I yo% #ant to transer data rom se'eral legacy
systems3 yo% may create a pro;ect e(g( or e'ery legacy system
S%bpro;ect/ An ID #ith a ma.im%m o @+ characters that is %sed as
%rther str%ct%ring attrib%te
5b;ect/ An ID #ith a ma.im%m o @+ characters to name the b%siness
ob;ect
Step* contd((
Step* contd((
0 At the initial screen3 DAll Objects pro'ides a list o all pro;ects
created already(
0 DMy Objects displays a list o all ob;ects yo% created personally
0 DAll Project Objects displays all ob;ects o the selected pro;ect as
tree str%ct%re(
0 DProject Documentation displays any doc%mentation #ritten or the
indi'id%al pop0%ps and processing steps( Eo% can print the pro;ect
doc%mentation o%t3 send it and sa'e it in 'ario%s ile ormats(
0 Select DDocumentation to enter yo%r notes( Ater clicking3 a pop%p
is displayed in #hich yo% can #rite do#n yo%r personal
doc%mentation(
&y clicking the b%tton execute or pressing the <F
key on yo%r keyboard yo% go to the ob;ect3 yo%
selected(
&y clicking the b%tton create a ne# ob;ect or the
selected pro;ect and s%bpro;ect #ith the name
entered in the ob;ect ield is created(
&y positioning the c%rsor on an entry and clicking
on the b%tton documentation3 yo% can add change or
delete comments(
Initial Screen
Initial Screen

Administration 0 list o e.isting pro;ects
Administration 0 list o e.isting pro;ects


In the initial screen3 yo% can display the administration
%nctions 'ia the men% path Goto Administration( Aere yo%
can ind a list o all e.isting pro;ects(
It enables yo% to create3 process3 display3 delete3 copy or
rename pro;ects3 s%bpro;ects3 ob;ects and re%sable r%les(
&y do%ble0clicking on an entry yo% can branch to the entry
display(

Project
Subproject
Object
Step 3 B 9.ec%te
Step 3 B 9.ec%te









5nce the pro;ect and s%bpro;ect along #ith
5nce the pro;ect and s%bpro;ect along #ith
the ob;ect are determined #e e.ec%te to
the ob;ect are determined #e e.ec%te to
ind the list o steps to be perormed or
ind the list o steps to be perormed or
data transer
data transer
Process steps
Process steps
Process steps
Process steps

)he n%mber o process steps is dynamic and shall depend on )he n%mber o process steps is dynamic and shall depend on
actors like inp%t method actors like inp%t method

&y clicking the D &y clicking the DGser men% Gser men%8 b%tton one can select B deselect 8 b%tton one can select B deselect
the Process steps the Process steps

)o proceed thro%gh the processing steps one needs to start )o proceed thro%gh the processing steps one needs to start
rom the irst one and e.ec%te each o them rom the irst one and e.ec%te each o them

A step can be skipped by selecting the ne.t a'ailable A step can be skipped by selecting the ne.t a'ailable
processing steps8 radio b%tton processing steps8 radio b%tton
Maintain ob;ect attrib%tes
Maintain ob;ect attrib%tes

Choose if
the data
trasfer is
oce or
periodic
Choose
!ethod for
iput of data"
#f $atch iput recordi% is selected oe
ca eter further recordi%s b& clic'i%
at the arrow
# the !ethod to
iput data fro! a
$(P#) oe eeds
to select the
$usiess Object
ad the
correspodi%
!ethod"
Application )oolbar in Process steps
Application )oolbar in Process steps
Gser Men%/ Aere yo% can make an indi'id%al selection rom the displayed processing steps(
Pressing b%tton DMain steps8 a%tomatically acti'ates all processing steps mandatory or a
data con'ersion(
4%mbers 5n or 5/ Eo% can acti'ate or deacti'ate the n%mbering o the indi'id%al
processing steps(
Do%ble click H Display or Do%ble click H 1hange/ Aere3 yo% can determine #hether display
mode or change mode is selected by do%ble clicking(
5b;ect o'er'ie#/ Displays all ob;ect inormation or the selected ob;ect(
Inormation incl%des ob;ect inormation3 so%rce str%ct%res3 target str%ct%res3 str%ct%re
relations3 so%rce ields3 target ields3 ield mapping(
Action log/ Displays a detailed o'er'ie# or all processing steps already carried o%t( Eo%
can reset the action log 'ia the men% path Extras 0C Reset Action Log( )his action is stored
#ith a reerence to the %ser and the date(
In the step DMaintain So%rce Str%ct%res8 yo% deine the str%ct%res o the ob;ect
#ith name3 description and the hierarchical relationships/
1lick on Change b%tton( Eo% can no# deine3 change3 reassign or delete
str%ct%res( All these %nctions are a'ailable 'ia p%shb%ttons(
When yo% deine more than one str%ct%re3 a pop%p is displayed $%erying the
relations bet#een the str%ct%res/ e$%al/s%bordinate?
4ote/ <or migration ob;ects created 'ia transaction recording3 yo% may only
deine one str%ct%re per recording3 since only one lat target str%ct%re per
recording is a'ailable(
Maintain So%rce str%ct%res
Maintain So%rce str%ct%res
Maintain so%rce ields
Maintain so%rce ields
In the step DMaintain So%rce <ields83 ields are created and maintained or the
so%rce str%ct%re deined in the preceding step
Gse so%rce ieldnames #ith the same names as the target ieldnames as m%ch as
possible3 beca%se it allo#s yo% to %se the Da%to0ield mapping8 %nction in step I
DMaintain ield mapping and con'ersion r%les8(
Maintain so%rce ields
Maintain so%rce ields
Dierent possible #ays o deining and maintaining
the so%rce ields/
Make s%re that yo% are in change mode and the c%rsor is positioned on a
so%rce str%ct%re or an e.isting so%rce ield
@( 1reate Indi'id%al so%rce ields 0 &y clicking on the b%tton DCreate source
ield yo% can speciy the ield name3 ield label3 ield length and ield type
D%ring data read3 yo% can speciy #hether date 'al%es are con'erted into
the internal date ormat !EEEEMMDD" and amo%nt ields are con'erted
into the calc%lation ormat !@*3-(IJ"
DSelection Parameter8 can be set d%ring Read!Con"ert data( I yo% select
this indicator3 the corresponding ield is made a'ailable as selection
parameter #hen reading or con'erting data(
*( Maintain So%rce <ields in )able <orm B 1licking on the D)able Maintenance8
b%tton displays the ields in a tab%lar ormat(
Maintain so%rce str%ct%re? contd
Maintain so%rce str%ct%re? contd
Dierent possible #ays o deining and maintaining the so%rce ields/
3( 1opy So%rce <ields rom 5ther So%rces / &y selecting D1opy So%rce <ields8 displays
the ollo#ing options/
0 Gpload !)e.t separated #ith )abs" B )he so%rce ield description is stored in a te.t ile
the col%mns o #hich are separated by tabs
0 1opy rom Another 5b;ect B So%rce ield can be copied rom so%rce str%ct%re o
another ob;ect
0 1opy rom Data Repository B So%rce ield can be copied rom a str%ct%re in SAP Data
Repository
0 <rom Data <ile !<ield 4ame in @ Line" 0 So%rce ields can be copied rom a data ile
#hich sho%ld be stored on the P1 in the orm o te.t separated by tabs and contain the
ields in the irst line(
Maintain str%ct%re relations
Maintain str%ct%re relations

In the step DMaintain Str%ct%re Relations83 the str%ct%ral relationships bet#een


so%rce and target str%ct%res are deined( )he possible target str%ct%res are deined
d%ring the selection o the ob;ect type and the import techni$%e

)o deine str%ct%ral relationships3 position the c%rsor on the ield target


str%ct%res( 1licking create Relationshi# b%tton opens a #indo# that displays the
e.isting so%rce str%ct%res or selection

I yo% #ant to change the relation3 remo'e the e.isting relation irst( In addition3
yo% can %se Chec$ to check the str%ct%ral relationships or errors
Maintain <ield mapping 2 con'ersion r%les
Maintain <ield mapping 2 con'ersion r%les
In the step DMaintain <ield Mapping and 1on'ersion R%les83 yo% assign so%rce
ields to target ields and deine ho# the ield contents #ill be con'erted
All ields o target str%ct%re3 #hich yo% selected in the pre'io%s step3 #ill be
displayed(
<or each target ield the ollo#ing inormation is displayed/
0 <ield description
0 Assigned so%rce ields !i any"
0 R%le type !i.ed 'al%e3 translation etc("
0 1oding
Maintain <ield mapping 2 con'ersion r%les
Maintain <ield mapping 2 con'ersion r%les
Layout deterination Layout deterination

The layout of the ' The layout of the 'Maintain field apping Maintain field apping( screen ( screen
can be deterined" i"e" we can decide whether the can be deterined" i"e" we can decide whether the
')lobal data(* 'Technical fields( should be displayed ')lobal data(* 'Technical fields( should be displayed
Maintain <ield mapping 2 con'ersion r%les
Maintain <ield mapping 2 con'ersion r%les

)o assign a so%rce ield3 position the


c%rsor on a target ield in the tree str%ct%re
and select Assign source ield(

)his displays a list o all a'ailable so%rce


ields or selection( Eo% can assign the ields
by do%ble0clicking on them as #ell
Maintain <ield mapping 2 con'ersion r%les
Maintain <ield mapping 2 con'ersion r%les

Ater assigning the so%rce ields3 yo% deine the Ater assigning the so%rce ields3 yo% deine the
con'ersion r%les( )he dea%lt r%le is DMo'e8( con'ersion r%les( )he dea%lt r%le is DMo'e8(
Ao#e'er3 yo% can select 'ario%s standard Ao#e'er3 yo% can select 'ario%s standard
techni$%es 'ia p%shb%tton/ techni$%es 'ia p%shb%tton/
This deletes the
codi% assi%ed to
the tar%et field" #
additio) source
fields assi%ed to
the tar%et fields
are re!o*ed as
well"
The tar%et
field is
assi%ed a
fi+ed
*alue
The data is
trasferred
usi%
($(P
co!!ad
,Mo*e-
( ,fi+ed *alue object-
.*ariable/ a!ed 0123fi+ed
*alue4 is assi%ed to the
tar%et field" This fi+ed *alue
object is filled with a actual
*alue i step ,Maitai 0i+ed
1alues) Traslatios) 5ser6
7efied 8outies-"
The tar%et field is
assi%ed codi%
carr&i% out field
cotets co*ersio
usi% a traslatio
table
Maintain ield mapping 2 con'ersion r%les
Maintain ield mapping 2 con'ersion r%les
&y clicking this b%tton3 ater clicking once on a target ield !in bl%e"3 LSMW
displays the list o a'ailable so%rce ields3 by choosing one the standard r%le Dmo'e8 is %sed
to link the * ields
&y clicking this b%tton3 ater clicking once on a target ield !in bl%e"3 the so%rce
ield is deleted rom the target ield
&y clicking this b%tton3 the display o this step can be changed( )here are
possibilities to sho# or hide se'eral aspects o the ield mapping
&y clicking this b%tton3 a synta. check is perormed or the con'ersion program3
generated rom the ield mapping
)hese 3 b%ttons3 #hich are a'ailable or e'ery target ield3 display the help
%nction !DI8"3 the possible entries !?" and the last one displays the doc%mentation in LSMW
Maintain <i.ed 'al%es3 translations?
Maintain <i.ed 'al%es3 translations?
In the step DMaintain <i.ed Kal%es3 )ranslations3 Gser0Deined Ro%tines83
yo% can process the re%sable r%les o a pro;ect3 #hich are deined at
pro;ect le'el3 so they are the same or all ob;ects

<i.ed 'al%e/ Aere yo% can speciy the length3 type lag or
lo#ercase/%ppercase and 'al%e in addition to the name o the ield(

)ranslation/ Aere yo% can enter inormation on the so%rce ield and the
target ield( I yo% are creating a ne# translation yo% ha'e to sa'e data
irst beore yo% can change it

Gser Deined Ro%tines/ )his ro%tine can be re0%sed in other ob;ects o


the pro;ect( )he system adds in D%rL8 to the name that yo% s%ggest to %se
or this ro%tine( It opens %p an editor #herein yo% can enter yo%r A&AP
code

Process Step0 Speciy <ile
Process Step0 Speciy <ile
In the step DSpeciy <iles83 yo% describe all iles to be %sed
I yo%r legacy data is on the P1/ In change mode3 position the c%rsor on the line DLegacy data
5n the P1 !<ront0end"8( Select Add entry( A pop%p is displayed( Speciy ile path3 ile name and
description and other properties

I yo%r legacy data is on the R/3 ser'er/ In change mode3 position the c%rsor on the line D
Legacy data 5n the R/3 ser'er !application ser'er"8( Select Add entry% A pop%p is displayed(
Speciy ile path3 ile name and description and other properties

<ile or Imported data/ Aere3 the ile name is entered #ith ile e.tension 8(lsm#(read8(

<ile or 1on'erted data/ Aere3 the ile name is entered #ith ile e.tension 8(lsm#(con'8( )his
ile
#ill contain all yo%r con'erted data ater applying the con'ersion r%les i any(
Process Step B Assign <ile
Process Step B Assign <ile

In the step DAssign <iles83 yo% can assign the ile name in step M declared as so%rce ile to
the target str%ct%re deined in step * (
I yo% click on the Assign <ile b%tton3 ater clicking once on a target str%ct%re !in
yello#"3 LSMW displays the list o a'ailable so%rce iles(
I yo% click on the Delete Assignment b%tton3 ater clicking once on a target
str%ct%re !in yello#"3 the so%rce ile is deleted rom the target str%ct%re(
Process step B read data
Process step B read data
In the step 8Read Data83 the ile speciied in pre'io%s step is3 as linked to the
target str%ct%res in ( 9'en tho%gh yo% can select a range o transaction n%mbers3
the #hole ile is being read3 only the amo%nt o transactions #ritten is
inl%enced( So or tests it is easier to read all data and con'ert only a certain
range3 beca%se in that step the program stops ater inishing the range(
Process Step B Display read data
Process Step B Display read data
In the step DDisplay Read Data83 yo% can display the read data3 choosing to sho#
all read data or an inter'al as sho#n abo'e( )he data are sho#n as the so%rce
str%ct%res3 in case more so%rce str%ct%res are being %sed in one transaction3 the
hierarchy o the transaction is displayed by the %se o a dierent colo%r legend(
&y clicking on one o the lines3 yo% proceed to the ield le'el o the line3 #here
yo% can check the read data as sho#n belo#(
Process Step B 1on'ert data
Process Step B 1on'ert data
In the step D1on'ert Data83 #orks like the step Dread data83 b%t %ses the con'ersion
program instead o the read program( Eo% can deine a range o transactions to be
con'erted3 at the end o this range the con'ersion program stops r%nning(
4ote/ It is recommended that #hen yo% load big amo%nt o data in prod%ction3
load the irst @+ records so that yo% can check and change #hen necessary(
Process Step 0 Display con'erted data
Process Step 0 Display con'erted data
In the step DDisplay 1on'erted Data83 yo% can display the con'erted data3
choosing to sho# all con'erted data or an inter'al as sho#n abo'e( )he data are
sho#n as the target str%ct%res3 in case more target str%ct%res are being %sed in
one transaction3 the hierarchy o the transaction is displayed by the %se o a
dierent colo%r legend( &y clicking on one o the lines3 yo% proceed to the ield
le'el o the line3 #here yo% can check the con'erted data as sho#n belo#(
Process Step
Process Step
Ater the step DDisplay 1on'erted Data8 the e.act content o the ne.t steps may dier3
depending on the import techni$%e that yo% ha'e chosen in step @( )he steps displayed by
the program or the dierent import techni$%es are/

Standard batch inp%t or recording/


=enerate batch inp%t session
R%n batch inp%t session

Standard direct inp%t/


Start direct inp%t session

&API or IDoc/
Start IDoc creation
Start IDoc processing
1reate IDoc o'er'ie#
Start IDoc post0processing
LSM Workbench
LSM Workbench
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
Practical LSM Workbench
Practical LSM Workbench
9.ercise @ 9.ercise @
1reate LSMW ob;ect and %pload Kendor Master data to SAP 1reate LSMW ob;ect and %pload Kendor Master data to SAP
+" +" ,naly-ing the test data .in attached /LS file0 ,naly-ing the test data .in attached /LS file0
select the appropriate upload ethod select the appropriate upload ethod
1" 1" 2e!elop siple LSMW ob3ect - 4o a3or 2e!elop siple LSMW ob3ect - 4o a3or
con!ersions re5uired con!ersions re5uired
Practical LSM Workbench
Practical LSM Workbench
9.ercise * 9.ercise *
1reate LSMW ob;ect and %pload P%rchase Re$%isition data to SAP 1reate LSMW ob;ect and %pload P%rchase Re$%isition data to SAP
+" +" ,naly-ing the test data .in attached /LS file0 ,naly-ing the test data .in attached /LS file0
select the appropriate upload ethod select the appropriate upload ethod
1" 1" 2e!elop siple LSMW ob3ect - 4o a3or 2e!elop siple LSMW ob3ect - 4o a3or
con!ersions re5uired con!ersions re5uired
Gsing Direct Inp%t method
Gsing Direct Inp%t method
Gsing Direct Inp%t method
Gsing Direct Inp%t method

We no# look at an e.ample to change 1%stomer We no# look at an e.ample to change 1%stomer
master record %sing the direct inp%t method( master record %sing the direct inp%t method(

Speciications Speciications/ /
5b;ect 5b;ect / ++I+ 0 1%stomer Master / ++I+ 0 1%stomer Master
Method Method / ++++ / ++++
Program 4ame Program 4ame/ R<&ID9++ / R<&ID9++
Program )ype Program )ype /& /&
Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step @/ 9nter transaction LSMW Step @/ 9nter transaction LSMW

Step */ 9nter pro;ect3 s%bpro;ect and ob;ect Step */ 9nter pro;ect3 s%bpro;ect and ob;ect
Gsing Direct inp%t method
Gsing Direct inp%t method


Step 3/
Step 3/
9nter the descriptions or Pro;ect3
9nter the descriptions or Pro;ect3
S%bpro;ect and 5b;ect as prompted
S%bpro;ect and 5b;ect as prompted
Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step -/ 1lick on e.ec%te( )he process steps are Step -/ 1lick on e.ec%te( )he process steps are
displayed !the process steps displayed depend on displayed !the process steps displayed depend on
the inp%t method chosen" the inp%t method chosen"
Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step I Step I / / Select the @st Process Step NMaintain 5b;ect Select the @st Process Step NMaintain 5b;ect
Attrib%tes: and select N9.ec%te: and select DStandard &atch/ Attrib%tes: and select N9.ec%te: and select DStandard &atch/
Direct inp%t8( 9nter the data as sho#n Direct inp%t8( 9nter the data as sho#n
Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step J/ Sa'e and 1lick at &ack Step J/ Sa'e and 1lick at &ack

Step M/Maintain So%rce Str%ct%re Step M/Maintain So%rce Str%ct%re


Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step F / 1reate so%rce str%ct%re 0 OD+*S Step F / 1reate so%rce str%ct%re 0 OD+*S


Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step 6 Step 6
/ Maintain So%rce <ields / Maintain So%rce <ields
1lick at the table maintenance icon3 to speciy the 1lick at the table maintenance icon3 to speciy the
ields( ields(


Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step @+ Step @+
/
/ Maintain str%ct%re relations Maintain str%ct%re relations

Step @@ Step @@/ 9.ec%te3 str%ct%res or standard ob;ect / 9.ec%te3 str%ct%res or standard ob;ect
D++I+8 are displayed( D++I+8 are displayed(
Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step @* Step @*/ Place c%rsor at the target str%ct%re and / Place c%rsor at the target str%ct%re and
click at create relationship icon click at create relationship icon
Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step @3 0 Maintain <ield mapping and con'ersion Step @3 0 Maintain <ield mapping and con'ersion
r%les r%les
0 Place c%rsor at the ield D)15D98 in D&4P++8 and 0 Place c%rsor at the ield D)15D98 in D&4P++8 and
click at DR%le8 0 )hen choose D1onstant8 click at DR%le8 0 )hen choose D1onstant8
and enter DOD+*8( and enter DOD+*8(

Gsing Direct Inp%t method
Gsing Direct Inp%t method

Step @- Step @-/ Place c%rsor at the ields and click at the / Place c%rsor at the ields and click at the
DSo%rce <ield8 icon to map #ith the respecti'e ield DSo%rce <ield8 icon to map #ith the respecti'e ield
in the so%rce( in the so%rce(
)he abo'e is applicable or &4P++3 &4PKK and all )he abo'e is applicable or &4P++3 &4PKK and all
the other str%ct%res assigned DOD+*S8 in so%rce the other str%ct%res assigned DOD+*S8 in so%rce
relation relation
Gsing Direct inp%t method
Gsing Direct inp%t method

Step @I Step @I / Speciy <iles / Speciy <iles


9nlist iles #hererom legacy data #o%ld be e.tracted( 9nlist iles #hererom legacy data #o%ld be e.tracted(
FLAT_FILE
Gsing Direct inp%t method
Gsing Direct inp%t method

Step @J Step @J/ Assign iles / Assign iles


)he str%ct%re OD+*S is correlated #ith the speciied )he str%ct%re OD+*S is correlated #ith the speciied
ile( ile(
Gsing Direct inp%t method
Gsing Direct inp%t method

Step @M Step @M/ Read data rom legacy iles( / Read data rom legacy iles(
Gsing Direct inp%t method
Gsing Direct inp%t method

Step@F Step@F/ Display the read data / Display the read data
Gsing Direct inp%t method
Gsing Direct inp%t method

Step @6 Step @6/ 1reate batch inp%t session / 1reate batch inp%t session
Gsing Direct inp%t method
Gsing Direct inp%t method

Step *+ Step *+/ 9.ec%te the batch inp%t session / 9.ec%te the batch inp%t session
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

)he Sessions method pro'ides more le.ibility )he Sessions method pro'ides more le.ibility
since %ser can record any transaction re$%ired( since %ser can record any transaction re$%ired(

In the ollo#ing slides #e obser'e the dierences In the ollo#ing slides #e obser'e the dierences
bet#een the bet#een the Sessions Sessions and the D and the DDirect Inp%t Direct Inp%t
method method8 or the same scenario B 1hange c%stomer 8 or the same scenario B 1hange c%stomer
Master data( Master data(
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

1reate Pro;ect3 S%bpro;ect and 5b;ect in transaction LSMW 1reate Pro;ect3 S%bpro;ect and 5b;ect in transaction LSMW

Step B DMaintain 5b;ects attrib%tes83 select D Step B DMaintain 5b;ects attrib%tes83 select D&atch inp%t &atch inp%t
recording recording8( 9nter the recording name i a recording already 8( 9nter the recording name i a recording already
e.ists else create a ne# one by clicking at the icon e.ists else create a ne# one by clicking at the icon
DRecording o'er'ie#8 DRecording o'er'ie#8
8ecordi%
o*er*iew
'e&
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

Recording((
Recording((
D%ring the recording the system calls the transaction code D%ring the recording the system calls the transaction code
OD+* and prompts yo% to complete the 1hange( OD+* and prompts yo% to complete the 1hange(



Select at
least oe
area of
processi% "
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

Recording
Recording
7efault *alues
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

Process recording
Process recording
0 Replace the dea%lt 'al%es in the pre'io%s slide #ith <ield 0 Replace the dea%lt 'al%es in the pre'io%s slide #ith <ield
names( names(
0 Do%ble click on each o the lines to eect the change( 0 Do%ble click on each o the lines to eect the change(

Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

Rest o the steps remain the same as


Rest o the steps remain the same as
the D
the D
Direct inp%t method
Direct inp%t method
8 other than D
8 other than D
Maintain <ield mapping and con'ersion
Maintain <ield mapping and con'ersion
r%les
r%les
8
8
Gsing &atch Inp%t Method
Gsing &atch Inp%t Method

Sessions method
Sessions method

Direct Inp%t
Direct Inp%t
The fields
specified i
the recordi%
are displa&ed
0ields part of
the structure
a*ailable with
Stadard
Object 9959
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

We no# go thro%gh a step by step process o We no# go thro%gh a step by step process o
reali>ing LSMW thro%gh a &API reali>ing LSMW thro%gh a &API

Details o &API %sed/ Details o &API %sed/


0 0 &%siness 5b;ect &%siness 5b;ect/ &GS*+@* / &GS*+@*
0 0 Method/ Method/ 1reate<romData 1reate<romData

Details o Message )ype and &asic IDoc )ype/ Details o Message )ype and &asic IDoc )ype/
0 0 Message )ype/ Message )ype/ P5RD1R P5RD1R
0 0 &asic IDoc )ype &asic IDoc )ype/ P5RD1R+* / P5RD1R+*

Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step @ Step @ / =o to transaction LSMW / =o to transaction LSMW

Step * Step * / 9nter pro;ect3 s%bpro;ect and ob;ect / 9nter pro;ect3 s%bpro;ect and ob;ect
and click on 1reate and click on 1reate
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench


Step 3/
Step 3/
9nter the descriptions or Pro;ect3
9nter the descriptions or Pro;ect3
S%bpro;ect and 5b;ect as prompted
S%bpro;ect and 5b;ect as prompted
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step - Step -/ 4o# select Settings / 4o# select Settings

IDoc Inbo%nd IDoc Inbo%nd


Processing Processing
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step I Step I /NIDoc Inbo%nd Processing: screen appears( 9nter /NIDoc Inbo%nd Processing: screen appears( 9nter
the re$%ired details as sho#n belo#/ the re$%ired details as sho#n belo#/
Step J Step J /1lick on NActi'ate IDoc Inbo%nd Processing:( /1lick on NActi'ate IDoc Inbo%nd Processing:(
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step M Step M / 1lick on NEes: #hen prompted or NActi'ate IDoc / 1lick on NEes: #hen prompted or NActi'ate IDoc
Inbo%nd?: Inbo%nd?:

Step F Step F / Ait on N&ack: to ret%rn to the main screen / Ait on N&ack: to ret%rn to the main screen

Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step 6 Step 6
/
/ 1lick on 1ontin%e !<F"( <ollo#ing Screen appears

Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step @+ Step @+/ Select the Step @ NMaintain 5b;ect Attrib%tes: and / Select the Step @ NMaintain 5b;ect Attrib%tes: and
select N9.ec%te: select N9.ec%te:
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step @@ Step @@ / Select the radio b%tton N&%siness 5b;ect / Select the radio b%tton N&%siness 5b;ect
Method: and enter the ollo#ing details/ Method: and enter the ollo#ing details/
&%siness 5b;ect &%siness 5b;ect/ &GS*+@* / &GS*+@*
Method Method/ 1reate<romData / 1reate<romData
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step @* Step @*/ Sa'e and click on &A1P b%tton( <ollo#ing / Sa'e and click on &A1P b%tton( <ollo#ing
inormation message is displayed inormation message is displayed

Step @3 Step @3/ Maintain So%rce Str%ct%re / Maintain So%rce Str%ct%re
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step @- Step @-/1reate so%rce str%ct%re DA9AD9RDA)A8 /1reate so%rce str%ct%re DA9AD9RDA)A8
and a lo#er le'el str%ct%re DI)9MDA)A8 and a lo#er le'el str%ct%re DI)9MDA)A8


Sa'e and go back to main screen Sa'e and go back to main screen


Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step @I Step @I / Maintain so%rce ields / Maintain so%rce ields


9nter the ields as sho#n belo#/ 9nter the ields as sho#n belo#/

Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step @J Step @J/Maintain Str%ct%re Relations /Maintain Str%ct%re Relations




Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Maintain str%ct%re relations/ Maintain str%ct%re relations/
0 Select D9@P5RD1R8 in pre'io%s ig( and click on 1R9A)9 0 Select D9@P5RD1R8 in pre'io%s ig( and click on 1R9A)9
Relationship( <ollo#ing screen appears/ Relationship( <ollo#ing screen appears/

0 0 Select A9AD9RDA)A and hit 94)9R( Do the same or other Select A9AD9RDA)A and hit 94)9R( Do the same or other
str%ct%res str%ct%res



Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step @M Step @M
/
/Maintain <ield mapping and con'ersion Maintain <ield mapping and con'ersion
r%les( Maintain ield mapping as sho#n/0 r%les( Maintain ield mapping as sho#n/0
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step @F Step @F
/
/ Speciy <ile Speciy <ile
Pro'ide the link or the test ile( Maintain the same Pro'ide the link or the test ile( Maintain the same
str%ct%re o the test ile as deined beore str%ct%re o the test ile as deined beore


Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step @6 Step @6/ Select DAssign <iles8 2 e.ec%te / Select DAssign <iles8 2 e.ec%te
Step *+ Step *+/ Read Data / Read Data
Step *@ Step *@/ Display read data / Display read data
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step ** Step **
/
/ Ret%rn to main screen and select D1on'ert Ret%rn to main screen and select D1on'ert
Data8 ollo#ed by DDisplay 1on'ert Data8 Data8 ollo#ed by DDisplay 1on'ert Data8
Gsing &API in LSM Workbench
Gsing &API in LSM Workbench
Step *3 Step *3/ Ret%rn to main screen and select NStart / Ret%rn to main screen and select NStart
IDoc generation: IDoc generation:

Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step *- Step *- / Process Idoc thro%gh the step DStart Idoc / Process Idoc thro%gh the step DStart Idoc
Processing8 on main screen Processing8 on main screen

Gsing &API in LSM Workbench
Gsing &API in LSM Workbench

Step *I Step *I
/
/ 1lick on D1reate Idoc 5'er'ie#8 on the 1lick on D1reate Idoc 5'er'ie#8 on the
main screen( Aere the data record and stat%s main screen( Aere the data record and stat%s
record o the Idoc can be 'ie#ed record o the Idoc can be 'ie#ed
LSM Workbench
LSM Workbench
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
AelpMe
AelpMe
5b;ect 5'er'ie#
1omplete o'er'ie# o Data Migration ob;ect can be obtained rom the Men%/
Extras Object O"er"ie&
5'er'ie# in List ormat
5'er'ie# in )able ormat
AelpMe
AelpMe
5b;ect 5'er'ie# cont?
5'er'ie# in List ormat
AelpMe
AelpMe
5b;ect 5'er'ie# cont?
5'er'ie# in )able ormat
AelpMe
AelpMe
Settings or IDoc inbo%nd processing
)his can be obtained rom the initial LSMW screen Men%/ Settings 'doc
'nbound Processing
Speciy the ollo#ing/
<ile/tR<1 port
Partner )ype
Partner 4%mber
)hese can be maintained by clicking on the respecti'e b%ttons on the right(
1lick on the Acti'ate IDoc Inbo%nd Processing b%tton ater entering all the
details abo'e(
AelpMe
AelpMe
)o transport data migration ob;ects
)his can be done in * #ays/
&y generating a change re$%est or
&y import/e.port o a pro;ect rom one system to another
<rom the initial LSMW screen Men%/ 9.tras
See screen print belo#
Aelp Me
Aelp Me
Problems
Problems
Sol%tions
Sol%tions
Recording Recording
<ields cannot be seen in the ield <ields cannot be seen in the ield
mapping ater a recording has been mapping ater a recording has been
created( created(
1heck to see #hether the ield 1heck to see #hether the ield
names ha'e been maintained names ha'e been maintained
correctly in the recording process( correctly in the recording process(
<rom the list o steps3 choose <rom the list o steps3 choose
Maintain source ields Maintain source ields( (
1heck the names o the so%rce 1heck the names o the so%rce
ields( I they are missing3 do%ble0 ields( I they are missing3 do%ble0
click on the corresponding ield to click on the corresponding ield to
branch to the branch to the Change source ield Change source ield
dialog bo.( dialog bo.(
<ill in the corresponding ields( <ill in the corresponding ields(
1onirm by choosing 1onirm by choosing Continue Continue( (
Repeat the recording process( Repeat the recording process(
Aelp Me
Aelp Me
Problems
Problems
Sol%tions
Sol%tions
)he so%rce ile contains data in )he so%rce ile contains data in
one data record o%t o #hich to one data record o%t o #hich to
records are to be created ater records are to be created ater
con'ersion( con'ersion(
In step In step Maintain ield ma##ing and Maintain ield ma##ing and
con"ersion rules con"ersion rules3 choose the transer 3 choose the transer
record %nction( record %nction(
9rror message d%ring/ater import 9rror message d%ring/ater import See the ob;ect attrib%tes to determine See the ob;ect attrib%tes to determine
#hich import program #as %sed3 and #hich import program #as %sed3 and
search or doc%mentation and notes on search or doc%mentation and notes on
this import method directly( this import method directly(

You might also like