You are on page 1of 70

0

SAP AG 1999
LSMW Basics
Defining Source and Target Structures
Creating Field Mapping and Rules
Reading Files
Transferring Data to the R/3 Syste
Contents!
Legacy Syste Migration Wor"#ench $LSMW%
SAP AG BC420 8-1

0&'
SAP AG 1999
(se the #asic LSMW functions
Define rules in the LSMW
Transfer data using the LSMW
)t the conclusion of this unit* you +ill #e a#le to!
LSMW! (nit ,#-ecti.es
SAP AG BC420 8-2

0&3
SAP AG 1999
Course ,.er.ie+ Diagra
Daten/#ernahe
D0 Wor"#ench
LSM Wor"#ench
1rinciples of Standard
Data Tansfer
D
i
r
e
c
t

2
n
p
u
t
B)12
T
)

R
e
c
o
r
d
e
r
Course ,.er.ie+
B
a
t
c
h

2
n
p
u
t
C
a
l
l

T
r
a
n
s
a
c
t
i
o
n
3
3D2
Basics
4
5
6
70
6
77
78
73
7'
77
7'
7
'
99
77
8
70
SAP AG BC420 8-3

0&8
SAP AG 1999
Basics
Basics
Structure Definitions
Structure Definitions
Field Mapping and Rules
Field Mapping and Rules
Reading and Transferring Data to R/3
Reading and Transferring Data to R/3
LSMW Basics
SAP AG BC420 8-4

0&5
SAP AG 1999
CT
B)12
D2
2Doc
).aila#le as an add:on
,ne:tie and periodic data transfer fro e;ternal syste to
R/3
LSMW uses standard technologies
LSMW! Characteristics
B2
The Legacy Systems Migration Workbench (LSMW) is an R/3-based tool that supports one-time and
periodic transer o data rom non-S!" systems (legacy systems) to R/3#
This easy-to-use tool supports the con$ersion o data rom the non-S!" system that can then be
imported into the R/3 System using batch input% call transaction% direct input% &!"'s% or '(ocs#
'n addition% the LSMW pro$ides a recording unction% )hich you can use to generate a data
migration ob*ect rom a create or change transaction#
SAP AG BC420 8-5

0&<
SAP AG 2001
LSMW as an )dd:,n
)dd:,n
Literature
1resentation
Do+nload &&&&&&&&& Media Center &&&&&&&&&
http://service.sap.co/!s"
The LSM Workbench is not a part o the standard R/3 System# 't is a$ailable as an add-on or
Release 3#+, and higher# ' you are interested in the LSMW% contact S!" through one o the
ollo)ing channels-
S!".et - R/3 ,rontend- /omponent 00-LSM
1-mail- lsm2sap#com
,a3- 456-7889-958:6+
S!".et- http-//ser$ice#sap#com/lsm)
There you )ill ind all a$ailable documents and inormation about LSMW as )ell as the LSMW
sot)are (transport ile)#
The inormation a$ailable includes% among other documents-
! checklist or implementing the LSMW
! "o)er"oint presentation describing the LSMW
SAP AG BC420 8-#

0&4
SAP AG 1999
Read data
Spreadsheet ta#les
Se=uential files
Con.ert data
2port data
LSMW! Core Functions
Data transfer
The core LSMW unctions are-
Reading data iles rom an e3ternal system into an internal LSMW ormat
/on$erting the data% that is% ormatting and assigning the data to the re;uired structures
/alling the standard transer program or &!"'s or '(ocs to perorm the data transer into the R/3
tables#
SAP AG BC420 8-$

0&9
SAP AG 1999
S)1:DB
Con.ersion
External
format
SAP format
Definition
The LSMW Concept
S)1
Data
transfer
The LSMW reads the e3ternal iles and con$erts the contents into the corresponding target structures
or ields% producing an output ile in the re;uired ormat# This output ile can then be input to the
appropriate data transer program#
SAP AG BC420 8-8

0&6
SAP AG 2001
Con.ersion
% Structure Relationships
% Field )ssignents
% Con.ersion Rules
,n 1C
)pplication
Ser.er
% Source Structure Definitions
LSMW Concept
S)1
<sing the LSMW% you can read data rom presentation ser$ers ("/) or application ser$ers# To read
these iles% you must deine the structure o the ile (source structure)#
The ile contents are then read into an internal LSMW ormat and stored as an LSMW ile#
The ne3t step is to deine structure relationships and ield assignments# These speciy the mapping o
the source structure ields to the target structure ields#
'n addition% you must deine a con$ersion rule or e$ery source ield that maps to a ield in the target
structure# To do this% you speciy ho) the $alue o the source structure ield is to be transerred to the
ield in the target structure#
<sing these deinitions% the contents o the LSMW ile are con$erted to the target structure and can
then be transerred using the speciied transer method#
The LSMW generates t)o e3ecutable !&!" programs rom the structure deinitions and con$ersion
rules#
SAP AG BC420 8-9

0&70
SAP AG 1999
SAP Record
Layout
Structure
SAP IDoc
Structure
Flat SAP
Structure
Standard
Transfer
1rogra
B)12
LSMW Transfer 1rocedure
2Doc
The LSMW supports the ollo)ing transer methods-
Standard transer programs used )ith batch input% call transaction% and direct input#
(ata transer using '(ocs#
(ata transer using &!"'s#
/reation o a recording using the transaction recorder and generation o a batch input session#
SAP AG BC420 8-10

0&77
SAP AG 1999
Starting the LSMW
Transaction LSMW
2nitial Screen!
LSMW organi>ed #y!
You must specify a name
and short description for
each of these.
Pro&ect
S'(pro&ect
)(&ect
1ro-ect
Su#pro-ect
,#-ect
To start the LSMW% call transaction LSMW#
=n the initial screen% you can create related subpro*ects and ob*ects by choosing Create new projects#
Project: Ma3imum o >+ characters to identiy your data transer pro*ect# ' you )ant to transer
data rom se$eral e3ternal systems% you can create a pro*ect or each e3ternal system#
Subproject: Ma3imum o >+ characters? used as an additional subdi$ision#
Object: Ma3imum o >+ characters? used to identiy a business data ob*ect#
SAP AG BC420 8-11

0&7'
SAP AG 1999
1ro-ect ,.er.ie+
)ll ,#-ects
,.er.ie+ of o#-ects contained in syste
My ,#-ects
,.er.ie+ of o#-ects the user created
)ll ,#-ects in a 1ro-ect
,.er.ie+ of o#-ects in the current pro-ect
The ollo)ing unctions are a$ailable on the initial screen o the LSMW-
All objects:
/reates an o$er$ie) o all a$ailable pro*ects#
My objects:
(isplays an o$er$ie) o all ob*ects you created#
All objects in a project:
(isplays a tree structure )ith all ob*ects contained in the selected pro*ect#
Project documentation:
' documentation )as created% this displays all the documentation or the indi$idual dialog bo3es and
steps# @ou can print and send the documentation% or also sa$e it $arious ile ormats#
SAP AG BC420 8-12

0&73
SAP AG 1999
Define o#-ect attri#utes
Define source structures and source fields
Define structure relationships
Define field apping and con.ersion rules
Read data
Con.ert data
2port data
The Main Steps
! total o 87 dierent )ork steps are pro$ided# The )ork steps displayed are dependent on the
selected object#
@ou can create a customiAed personal menu o the )ork steps# 'n the personal menu you can select a
subset o the 87 )ork steps you )ant to display#
SAP AG BC420 8-13

0&78
SAP AG 1999
SAP SAP Easy Easy Access Access
*S+ ,or-(e.ch /0it ... 3;tras ... 1ti!ities S2ste
...
1ersonal Men/
LSMW : Su#steps
+ai.tai. so'rce attri('tes
Perso.a! +e.'
+ai.tai. so'rce str'ct'res
+ai.tai. so'rce 3ie!0s
+ai.tai. str'ct're re!atio.ships
4i5e0 va!'es6 ai.tai. co.versio.s a.0 o". ro'ti.es
Spec3i2 3i!es
Ge.erate iport pro7ra
8isp!a2 iport pro7ra
9port 0ata
8isp!a2 iporte0 0ata
Ge.erate co.versio. pro7ra
8isp!a2 co.versio. pro7ra
Co.vert 0ata
8isp!a2 co.verte0 0ata
. . .
The aaila!le LS"#
su!steps can !e
actiated ia the
Personal "enu
'n the LSMW basic settings only the main substeps are displayed# @ou can add to these by selecting
your re;uired substeps in the B"ersonal MenuB (e#g# Display conversion program)#
SAP AG BC420 8-14

0&75
SAP AG 1999
Attri('tes
)(&ect
)".er
8ata tra.s3er
BC420:8 /5ap!e
;)B/;<S =essica ;o(erts
o.ce perio0ic
,#-ect )ttri#utes
,#-ect 2D
,+ner
1roperty
Maintain ,#-ect )ttri#utes
,irst you must maintain the ob*ect attributes#
@ou can speciy an ob*ect '(# .ame the ob*ect# To add the pro*ect to the list o all pro*ects you ha$e
created% speciy your name in the Owner ield# This )ill then appear under My objects on the initial
screen#
Select )hether the data transer should be e3ecuted only once or periodically#
' you choose periodic data transer-
"/ iles cannot be read
!n additional step appears? the main program or periodic data transer
SAP AG BC420 8-15

0&7<
SAP AG 1999
Standard Batch 2nput / Direct 2nput
Batch 2nput Recording
B)12
2Doc
)(&ect <2pe / 9port +etho0
Sta.0ar0 (atch i.p't / 0irect i.p't
)(&ect
+etho0
Pro7ra .ae
Pro7ra t2pe
0100
;4B9B*00
8
>?o se!ectio.@
8irect i.p't
B)12
Maintain ,#-ect )ttri#utes : Standard
/hoose the ob*ect type and import method# ,5 Possible entries help is a$ailable or the input ield#
,or batch input% call transaction% and direct input% program documentation is a$ailable under the
program name (/hoose theGlasses icon)#
' you ha$e selected batch input recording% you can add additional recordings by clicking the
arro)#
/aution- ' you choose the import method &!"' or '(oc% the system checks% )hen sa$ing% )hether a
partner proile already e3ists or the preset partner (see IDoc unit) and the selected message type# '
not% the system attempts to create a proile#
SAP AG BC420 8-1#

0&74
SAP AG 1999
,#-ect ,.er.ie+
,.er.ie+ of ,#-ect Creation
*S+,
,#-ect ,.er.ie+ ...
,#-ect inforation a#out!
Source structures
Source fields
Structure relationships
Target structures
Target fields
Field apping
To create a list o inormation about the points mentioned abo$e% choose Object overview#
SAP AG BC420 8-1$

0&79
SAP AG 1999
30C3L List
S<AP/ ;ecor0 t2pe CBA; 1
<C)8/ <ra.sactio. co0e CBA; 20
C1??; C'stoer .'(er CBA; 10 a3-t.2 10 +
B1C;S Copa.2 co0e CBA; 4
Field Length Con.ersion &&&&&&&&&
S)1 Fields
Field Description Type Length
?on:S)1 Fields
Con.ersion on 1aper
&eore you start using the LSM Workbench% create a Cmapping on paperB or the ob*ect# ,or this%
create and print an Cob*ect o$er$ie)B#
!t this time% the o$er$ie) only contains the design and description o the R/3 structures and the
ields they contain# @ou can use this o$er$ie) to help you map these target structures and ields to
the corresponding source structures and ields#
SAP AG BC420 8-18

0&76
SAP AG 1999
Basics
Basics
Structure Definitions
Structure Definitions
Field Mapping and Rules
Field Mapping and Rules
Reading and Transferring Data to R/3
Reading and Transferring Data to R/3
LSMW Structure Definitions
SAP AG BC420 8-19

0&'0
SAP AG 1999
File +ith flat structure!
Structure )
Field 7Field ' Field 3
Definition contains!
Structure nae
Field nae
Flat Source Structure
The ile )ith the data rom the e3ternal system must be imported by the LSMW# Thereore you ha$e
to deine the structure o this data in the LSMW# 't is called the definition of the source structure#
The source structure may be structured in dierent )ays#
' the source structure is a lat structure% each line in the ile has the same structure# ,or the deinition
the structure name and the ield names as )ell as the technical characteristics o the ields must be
deined#
SAP AG BC420 8-20

0&'7
SAP AG 1999
File +ith t+o structures!
Structure B
Structure C
Field 7 Field ' Field 3 Field 8
Field 7 Field ' Field 3
Definition contains!
Structure naes
Field naes
Source Structures Containing T+o Structures
' the ile consists o t)o or more dierent record layouts but in a i3ed pattern (e#g# header then t)o
details% header then t)o details% etc#)% you must create a dierent source structure or each record
type# The deinition must include the structure name% the ield names% and the technical ield
attributes#
SAP AG BC420 8-21

0&''
SAP AG 1999
File +ith header and positions!
Field ' Field 3 Field 8
Field 7
Position ID field
Field ' Field 3
@eader structure
1osition structure
Field 7
$eader ID field
Definition contains!
Structure naes
Field naes
2D field
Source Structures With @eader and 1ositions
' the ile consists o t)o or more dierent record layouts )ith a random pattern% then the irst
position in each ro) must contain inormation describing the record type# This is called the ID field#
The deinition must include the structure name% the ield names% and the technical ield attributes# 'n
addition% )hen deining the ields% the '( ield must be identiied as such#
SAP AG BC420 8-22

0&'3
SAP AG 1999
,or- Steps
Source Structures
HEAD
POSI
Document header
Document position
Maintain source structures
?ae of the source structure
Description of the source structure
Maintain Source Structures
'n this step% you deine the ob*ect structures% including name% description% and hierarchical
relationships#
'n the dialog bo3% choose Change# @ou can no) choose to create ne) structures% or change%
rearrange% or remo$e these# <se the rele$ant pushbuttons to e3ecute these unctions#
' you are creating more than one structure% a dialog bo3 appears asking you to deine the
relationship bet)een the structures? are they e;ual (lat structure) or une;ual (hierarchical)D
Caution: @ou can only create one structure per recording or migration ob*ects created through a
recording o a transaction as there is only one lat target structure a$ailable per recording#
SAP AG BC420 8-23

0&'8
SAP AG 1999
,or- Steps
Maintain Source Fields
Field nae
Field 2D
Field length
Field type
Source Fields
HEAD
SET1 C(001) Record ID
REF_NO C(009) Referece u!"er
POSI
SET# C(001) Record ID
DATE DD$%(010) Posti& d'te
!
!
Maintain Source Fields
'n this step% you create and maintain ields or the structures created in the pre$ious step#
SAP AG BC420 8-24

0&'5
SAP AG 1999
Fields +ith alphanueric contents $C field%
Fields +ith nueric contents $? field%
Date in date forat $DDMA* DMDA* DAMD%
BC internal )B)1 forat AAAAMMDD
)ount fields $)MT7* )MT'* )MT3* )MT8%
BC internal )B)1 forat +ith period as decial point
Fields +ith pac"ed contents $1)C0 &&&&&&1)C5%
Field Types
When the data is imported you can speciy ho) the data is con$erted-
(ate $alues are con$erted into the internal date ormat (@@@@MM(()
!mount ields are con$erted into the calculation ormat (>835#E7% that is no grouping characters%
only the decimal point)# This ormat can only be used or amounts )ith t)o decimal places#
"acked ields )ith and )ithout decimal places# The number or "!/F0F speciies the number o
decimal places#
<nder election parameters !or importing"converting data a lag can be set or ields o structures
rom the highest hierarchy le$el# ' you set this lag% the ield in ;uestion is pro$ided as a selection
parameter )hen you import and con$ert the data# This is usually used or tests#
SAP AG BC420 8-25

0&'<
SAP AG 1999
Structure Rel'tios(i)s
*+R00 *'tc( i)ut structure for sessio d't' ,,,,
**-PF Docu!et (e'der .... ,,,,
**SE+ Docu!et se&!et .... ,,,, POSI
*/ITH .....
,#-ect )ttri#utes
Source structure assignent
SAP
Record
Layout
Structure
SAP IDoc
Structure
Flat SAP
Structure
B)12
Maintain Structure Relations
HEAD
HEAD
The structure relationships deine the relationships bet)een the source and target structures#
The possible target structures are set )hen the ob*ect type and import method are selected#
<sually there are target structures that must be selected (Cre;uired segmentsB)# The system inorms
you o this )ith the message CThis structure must be selectedB#B
To set structure relationships% place the cursor on a ield in the R/3 structure or target structure#
/hoose #elationship# ! dialog bo3 appears )ith a list o the source structures you ha$e created#
Select a structure rom this list#
' you )ant to change the relationship% you must irst delete the e3isting relationship using the
rele$ant pushbutton#
! check unction is a$ailable to check the structure relationships or errors# Messages or this check
are displayed in the status bar (error message or C.o structure relationship errors oundB)
ote: Many &'% /T% and (' programs use control record &GR++ or &'+++# !l)ays assign the header
structure o the source structure to this record#
SAP AG BC420 8-2#

0&'4
SAP AG 1999
Source structures


A
*
C
Structure relation

0

%

1
A
*
C
).aila#le fields
0
%
1
A
A 2 *
A 2 * 2 C
@ierarchical Display
'n certain circumstances you may )ant to assign se$eral source structures to one target structure# 'n
this case proceed as ollo)s- /reate your target structures# Then assign the subordinate source
structure to the target structure# Then the ields rom both source structures are a$ailable or the
ields o the target structure#
SAP AG BC420 8-2$

0&'9
SAP AG 1999
Basics
Basics
Structure Definitions
Structure Definitions
Field Mapping and Rules
Field Mapping and Rules
Reading and Transferring Data to R/3
Reading and Transferring Data to R/3
LSMW Field Mapping and Rules
SAP AG BC420 8-28

0&'6
SAP AG 1999
,or- Steps
Field !'))i& 'd rules
*+R00
Fields
**-PF
Fields
*3DAT D'te
*4-RS Co!)'5 code
,.er.ie+! Field Mapping
Field 2nforation and con.ersion rules
Docuentation
Dalid .alues
?a.igation in the )B)1 Dictionary
'n this step% you assign source ields to the target ields and speciy ho) the ield contents are to be
con$erted#
The system displays all ields or all target structures you selected in the pre$ious step#
The ollo)ing inormation is displayed or each target ield-
,ield '(
!ny source ields assigned
Rule type (deault $alue% translation% and so on)
/ode
ote: Some ields are preilled by the system? these are Ctechnical ieldsB )ith the CdeaultB rule
type# /hanges to the deault may se$erely aect the data con$ersion process# @ou can reset a $alue to
deault that you ha$e (accidentally) changed by choosing $%tras #estore de!ault#
SAP AG BC420 8-29

0&30
SAP AG 1999
Display Dariant in the LSMW
%ther parameters& such
as the LS"#
'Technical fields' can
!e displayed from the
display ariant.
For routines $)B)1 su#progras%
1rocessing ties
Elo#al data definitions
Code
2nitial fields
Technical fields
8eteri.e 8isp!a2 Daria.t
SAP SAP Easy Easy Access Access
4ie!0 +appi.7 /0it ... 3;tras ... 1ti!ities S2ste
...
Display .ariant
@ou can speciy the ield assignment using the display $ariant#
The $isibility o ob*ects can be determined by the Cdisplay parametersC# @ou can get a detailed $ie)
o the processing logic and global data deinitions o the LSMW# (Display processing times and
Global data de!initions& @ou could also add your o)n !&!" code or speciic processing times# (See
documentation on LSMW in <nit C(ata Migration Step by StepC)#
SAP AG BC420 8-30

0&37
SAP AG 2001
Display Dariant! Technical Fields
After selectin( the
chec)!ox & the
technical fields of
structure *+R,,
-session header record.
are isi!le
Code
2nitial fields
Technical fields
8eteri.e 8isp!a2 Daria.t
*+R00
Fields
ST%PE Record type for BI interface
+RO4P Name of BI session
$ANDT Client
Coding: BGR00-STYPE !0!"
Coding: BGR00-GR#$P g%gro&pname"
Coding: BGR00-'(N)T SY%'(N)T"
4SNA$ *&e&e $serid + ,istorically determined
Coding: BGR00-$SN(' g%&serid"
. . .
Field Mapping and Assignment
'n the LSMW basic settings technical structures are grayed out (e#g# session header record% control
record o '(oc)# ,or e3ample% to make the parameters o the session header record &GR++ $isible%
choose $%tras '( Display variant and acti$ate )echnical !ields#
These technical ields are partly preassigned by the LSMW and do not usually ha$e to be changed#
SAP AG BC420 8-31

0&3'
SAP AG 1999
Rule le.els
Doain le.el
Data eleent le.el
Field $nae% le.el
Syste proposal
Doain /
Data eleent/
Field nae
1ro-ect
Reusa#ility of Rules
Reusable rules are those that are a$ailable to all parts o a pro*ect% and can be used in all ob*ects in a
pro*ect# Reusable rules are- De!ault values% translations% and Own routines&
When you are assigning a reusable rule to the target ield% the system suggests bet)een one to three
names#
These )ill be names rom one to three o the le$els- domain% data element% or ield le$el% )hich are
distinguished as ollo)s#
' the rule is set on the-
(omain le$el% this rule is suggested )hen the target ield is deined using this domain#
(ata element le$el% this rule is suggested )hen the target ield is deined using this data element#
,ield le$el% this rule is suggested )hen the target ield has the same ield name#
't usually makes sense to accept the systemHs proposal% unless the domain is $ery general% such as
/I!R>#
This naming procedure keeps the number o con$ersion rules lo) and ensures consistency in the data
con$ersion#
SAP AG BC420 8-32

0&33
SAP AG 1999
Se=uence
7& )ssignent of source field to target field
'& Definition of con.ersion rule
7&
'&
Source Field )ssignent
!ssigning source ields-
To assign a source ield% place the cursor on a target ield in the tree structure and choose Assign
source !ield# ! list o a$ailable source ields appears% rom )hich you can select the desired source
ield by double-clicking it#
(eleting source ield assignments-
To unassign a source ield% place the cursor on a target ield in the tree structure and choose #emove
source !ield# ' only one source ield is assigned% this assignment is remo$ed# ' more than one source
ield is assigned% a list o all assigned source ields appears? to select the desired ield% double-click
it#
!ter you ha$e assigned the source ields% you deine the con$ersion rules# The deault is CM=J1B#
Jarious standard techni;ues are a$ailable by choosing the rele$ant pushbutton#
SAP AG BC420 8-33

0&38
SAP AG 1999
)ttri#ute
Standard Case
Standard
Transfer
1rogra
&&&&FF&&&& /
&&&&FF&&&&
?,D)T) 2ndicator
S1)C3
B)12
Rule! 2nitial
'n this step% code assigned to the target ield is deleted# 'n addition% source ields assigned to the
target ield are deleted# The target ield then contains the ollo)ing $alue-
,or standard &'% /T% and ('- .=(!T! character (set in session headers such as &GR++ or &'+++)
,or batch input recording- .=(!T! character C/B
,or &!"'s and '(ocs- /haracter ields 1mpty ield ? .umeric ields C++###+B)
SAP AG BC420 8-34

0&35
SAP AG 1999
)ttri#ute
Target field filled +ith a constant .alue
0007
Copany code 0007
Rule! Constants
The target ield is assigned a constant#
SAP AG BC420 8-35

0&3<
SAP AG 1999
)ttri#ute
Target field filled +ith )B)1 coand $O6E
SM2T@ SM2T@
3;ceptions!
1ac"ed fields
Date fields
)ount fields
Rule! Transfer
DDMMAAAA
MMDDAAAA
2nternal forat $AAAAMMDD%
(ata is transerred using the !&!" command CM=J1B# ,or source ields not o type C/B or C.% this
means-
Pac!ed field: <npack in target ield WR'T1###T=###
Date field: ' target ield is at least ten characters- =utput ormat is set according to the settings in
the user master# =ther)ise% the data is let in the internal ormat? or e3ample% +>#>+#>66:
(@@@@MM(()
!s o LSMW $ersion >#9 the date ormat can be determined or the data con$ersion#
"mount field:
,or batch input and direct input- The amount $alue is ormatted according to the settings in the
user master#
,or &!"'s and '(ocs- The amount $alue is let in the internal calculation ormat#
SAP AG BC420 8-3#

0&34
SAP AG 1999
)ttri#ute
Target field assigned a G.aria#leH
B(IRS Copany code $doain%
4i5e0 va!'e
Attri('tes
Fi;ed Dalue
?ae
Description
)ttri#utes
Length
)B)1 type
Lo+ercase
Dalue
0007
B(IRS
B
0007
Rule! Fi;ed Dalue
*i%ed value- Suggested names or the i3ed $alue are pro$ided? these suggestions are domains% data
elements% or ield names#
/hoose a suggestion or enter a ne) name#
@ou can speciy the ield description% length% type% $alue% and )hether uppercase or lo)ercase must
be used#
SAP AG BC420 8-3$

0&39
SAP AG 1999
)ttri#ute
Select source field
)ssign translation
BSC@L 1osting "ey $doain%
0008 80
?3WBS 1osting "ey&&& $data eleent%
Rule! Creating Translation
<sing translation% you can con$ert ield $alues in the e3ternal system to $alid $alues in the S!"
System#
Translation- The system displays Possible entries or the name o the translation? these are domains%
data element names% or ield names#
/hoose one o the Possible entries or speciy a ne) name#
SAP AG BC420 8-38

0&36
SAP AG 1999
Translation attri#utes
Source field / target field
Control
7!7 translation .alues
2nter.al translation .alues
BSC@L
B
FFF
)erfor! ls!7_tr'sl'te
usi& 8*SCH38
POSI9POSTIN+_-E%
c('&i& **SE+9NE/*S.
Dou#le:clic"
Rule! Changing Translation
To create a translation% you must deine the source and target ields# Then% you must speciy ho) the
con$ersion is controlled#
@ou can choose >-> translation or inter$al translation#
SAP AG BC420 8-39

0&80
SAP AG 1999
Translation attri#ute
Control
BSC@L
B
FFF
Daria.t 4irst Seco.0
A!ter.ative A!ter.ative
1:1 tra.s!atio.
9.terva! tra.s!atio.
9.itia! va!'e
Co.sta.t
<ra.s3er >+)D/@
1ser-0e3i.e0 ro'ti.e
?o actio.

Daria.ts
)ther
A00 1:1 tra.s!atio. va!'es a'toatica!!2
Translation Control ,.er.ie+
@ou use this to set the type o translation# @ou can speciy )hich translation table the system should
search irst or a $alue% and )hich alternati$e should be selected i no matching entry is ound#
SAP AG BC420 8-40

0&87
SAP AG 1999
7!7 Dalues of con.ersion "ey
,ld .alue
?e+ .alue
BSC@L
B
FFF
,ld Dalue
0008
0005
?e+ Dalue
80
50
,I
7!7 Dalues of Con.ersion Iey
Iere you speciy )hich $alue (old $alue) in the non-S!" system is to be replaced )ith the ne)
$alue#
ote: =nly those $alues are con$erted or )hich the =K lag is set#
SAP AG BC420 8-41

0&8'
SAP AG 1999
Con.ersion .alue inter.al
,ld .alues fro &&&& to
?e+ .alue
BSC@L
B
FFF
,ld .alues fro
0007
0005
,ld .alues to
0008
0009
,I ?e+ .alue
80
50
Con.ersion Dalue 2nter.al
/on$ersion $alue inter$al- @ou use this to set )hat the $alues in the non-S!" system (old $alues) are
to be con$erted to in the S!" System (ne) $alues)# Speciy the $alue table )ith the $alue inter$als
to use or $alue con$ersion# @ou can upload the $alues rom a "/ ile (te3t separated by tabs) to the
table# ,5 Possible entries help is a$ailable in the +ew value column#
Important to note: (uring the con$ersion% the system only takes those $alues into account )here
the =K indicator is set#
SAP AG BC420 8-42

0&83
SAP AG 1999
Rule! 1refi;
CONCATENATE
8108 )osi9'cout
INTO ""se&9e7:o.
70
1refi;
7708 707708 70 J
70 J &&&
B

00 Suffi;
7708 770800 J 00
&&& J 00
B

CONCATENATE
)osi9'ccout 8008
INTO ""se&9e7:o.
)ttri#ute
String operation
@ou can speciy a prei3 o your choice )hich )ill be placed in ront o the contents o the source
ield#
@ou can speciy a sui3 o your choice )hich )ill be placed at the end o the contents o the source
ield#
SAP AG BC420 8-43

0&88
SAP AG 1999
)ttri#ute
String operation! Co#ine source fields
)K'377 1lant )K'377 J &&&&&
&&& J &&&
B

1lant J
2portant! )ll source fields in.ol.ed in the concatenation ust #e pre.iously
assigned to the sae target field&
Rule! Concatenation
/oncatenation- @ou can combine t)o or more source ields#
.ote- !ll source ields in$ol$ed in the concatenation must pre$iously be assigned to the same R/3
target ield beore you can combine those source ields#
SAP AG BC420 8-44

0&85
SAP AG 1999
*"se&9s&t;t < )osi9te;t.
SHIFT ""se&9s&t;t
3EFT DE3ETIN+ 3EADIN+ SPACE.
3;aple!
)ttri#ute
String operation! Te;t transferred left:-ustified
2nforation

2nforation
Rule! Transfer Left:Lustified
Transer let-*ustiied- When this is set% the ield contents are transerred let-*ustiied#
SAP AG BC420 8-45

0&8<
SAP AG 1999
)ttri#ute
2nsert your o+n )B)1 code in the generated
progra
''7555

7'38800
)B)1
Rule! )B)1 Code
@ou can add your o)n !&!" statements or ield con$ersion to the program# @our statements are
then processed or e$ery data record#
SAP AG BC420 8-4#

0&84
SAP AG 2001
ESB3R Business area $doain%
)ttri#ute
2nclude su#progras
3;aple!
PERFOR$ ur_&s"er
CHAN+IN+ ""se&9&s"er.
FOR$ ur_&s"er ...
ENDFOR$.
Rule! ,+n Routine
@ou can include a subprogram and a subprogram call# The subprogram can include your !&!"
statements or ield con$ersion and )ill be e3ecuted or e$ery data record#
.ote- @ou can reuse subprograms#
SAP AG BC420 8-4$

0&89
SAP AG 1999
,or- Steps
Fi;ed .alues* con.ersion rules&&&&
,.er.ie+ of reusa#le rules
Fi;ed .alues
Con.ersions
(ser:defined routines
Reus'"le rules
*C=#09TEST Tr'ii& d't' tr'sfer *C=#0
Fi;ed >'lues
*3ART
Co>ersios
*3ART
*SCH3
4ser9defied routies
Field Mapping and Con.ersion Rules
<nder the menu entry *ield mapping and conversion rules you can get an o$er$ie) o all the deined
reusable rules#
These are displayed in three categories-
,i3ed $alues
Translations
<ser-deined routines
SAP AG BC420 8-48

0&86
SAP AG 1999
Basics
Basics
Structure Definitions
Structure Definitions
Field Mapping and Rules
Field Mapping and Rules
Reading and Transferring Data to R/3
Reading and Transferring Data to R/3
LSMW Reading and Transferring Data to R/3
SAP AG BC420 8-49

0&50
SAP AG 1999
,or- Steps
Specify files
Specify paths and files
Con.ersion on 1C
)pplication
ser.er
File nae
File nae File nae
File nae
Specifying Files
'n this step you speciy all the iles that are to be used in the ollo)ing steps-
@our legacy data on the "/ and/or R/3 ser$er
The ile or the imported data
The ile or the con$erted data
SAP AG BC420 8-50

0&57
SAP AG 1999
,#-ect attri#utes
Specify paths and file naes
File contents $structure%
Deliiter
File structure
File type
Code page
Source of the Legacy Data
R/3
1resentation ser.er
)pplication ser.er
1nter the ile path% ile name and ile description#
1nter in F/ode page '(F the '( o the character set in the e3ternal system#
(etermine the technical record description and the separator#
.ote- 'n the R/3 System the user '( LsidMadm appears and not in the operating system# @ou must
ensure that the read or )rite authoriAation is in the selected directory#
! ile that contains data or se$eral source structures can be assigned to se$eral sources structures#
ile that contains data or only one source structure% can be assigned to only one sources structure#
SAP AG BC420 8-51

0&5'
SAP AG 1999
2ported Data File
File BC8'0K8<KDKCTK07&ls+&read
File nae! MpathCMfile naeC&ls+&read
Specify paths and file naes
File nae B pro-ect nae
J su#pro-ect nae
J o#-ect nae
The system proposes a name or the ile containing the imported data# @ou can change the name i
you )ish to#
SAP AG BC420 8-52

0&53
SAP AG 2001
Con.erted Data File
Depending on the selected o#-ect $e&g& #atch input for
custoers%* you ha.e the follo+ing options!
Deterine path and file nae for o#-ects that only ha.e a
physical path/file nae&
Deterine logical path and logical file&
File BC8'0K8<KDKCTK07&ls+&con.
Logical path NKT3M1
NKBC8'0 Logical file
File nae! MpathCMfile naeC&ls+&con.
(epending on the ob*ect% you can deine either physical or logical path/ile names#
The ields CLogical pathB and the ield CLogical ile nameB can only be illed% i the batch input or
direct input programs called later support this# @ou can use ,5 input help or both ields#
.ote >-
@ou can reely assign path and ile names )ithin the rame)ork o the operating system con$entions#
.ote 8-
' your data is in se$eral sets o iles% you can use a )ildcard (NON) in the ile name# @ou can speciy
the possible $alues or O under CJalues or )ildcardB#
SAP AG BC420 8-53

0&58
SAP AG 1999
(sing +ildcards in file naes
Dalue of +ildcard
Description
dataK7
Data record 7
docKO&leg docKO&ls+&read docKO&ls+&con.
Wildcards in File ?aes
13ample or use o )ildcards in ile names- Let us assume the legacy data is contained in the
ollo)ing our iles-
,ile >- (-PMigP"urchase =rdersP"= Ieader >#t3t
,ile 8- (-PMigP"urchase =rdersP"= "osition >#t3t
,ile 3- (-PMigP"urchase =rdersP"= Ieader 8#t3t
,ile 5- (-PMigP"urchase =rdersP"= "osition 8#t3t
These are paired into t)o sets (O>#t3t and O8#t3t)# ,ile 8 contains the position data or the header
records in ile >% and ile 5 contains the position data or the header records in ile 3#
(uring data import% irst import ile > and ile 8% and then ile 3 and ile 5#
<se the )ildcard COB in the ile names and deine the $alues > and 8 or the )ildcard#
.ote- @ou can also use a )ildcard in the names o the iles containing the imported and con$erted
data#
SAP AG BC420 8-54

0&55
SAP AG 1999
,or- Steps
Source structures 'd files
HEAD docu!ets
source d't' *C=#0_DOC_HEAD_POS.3E+
POSI )ositio
source d't' *C=#0_DOC_HEAD_POS.3E+
,#-ect attri#utes
Specify +hich source structure is filled #y +hich file
HEAD
POSI
)ssigning Files
'n this step you assign the deined data to the source structures-
.ote- ' you later change the ile name or the ile characteristics% the ile assignment remains the
same#
! ile that contains data or se$eral source structures can be assigned to se$eral source structures#
! ile that contains data or only one source structure can be assigned to only one source structure#
SAP AG BC420 8-55

0&5<
SAP AG 1999
,or- Steps
2port data
Specify +hich data is to #e iported
)ount fields
Ao'.t 3ie!0s are co.verte0 i.to the i.ter.a! ABAP
3orat >"ith 0ecia! poi.t@6 i3 chec-(o5 is se!ecte0
Date .alues
8ate 3ie!0s are co.verte0 i.to the i.ter.a! ABAP 3orat
>AAAA++88@6 i3 chec-(o5 is se!ecte0
2porting Data
)ount fields :C 7'38&5<
Date .alues :C AAAAMMDD
@ou ha$e the ollo)ing options )ith the unction CRead dataF-
' you )ant to process all the data belonging to an ob*ect% e3ecute the unction#
' you simply )ant to migrate a part o the dataset% you can limit the amount o data that you
migrate in the ield
CStandard selection parametersB# Select your data in CTransaction numberB Crom ### to ###F#
' you ha$e selected one or more source ields as the selection parameters )hen deining the source
ields% these ields are also a$ailable as selection parameters#
T)o checkbo3es are pro$ided or you-
!mount ield- !mount ields are con$erted into the internal !&!" ormat ()ith a decimal point)#
(ate $alues- (ate ields are con$erted into the internal !&!" ormat (@@@@MM(()#
' you are using a )ildcard in the ile name o the input iles and you ha$e deined at least one $alue
or the )ildcard% you )ill also get a selection parameter or the )ildcard# ' you do not speciy
anything% all the deined )ildcard $alues are processed#
SAP AG BC420 8-5#

0&54
SAP AG 1999
,or- Steps
1 DOC4$ENTS H*C100000119990?@0 0? @1.0?.1999@0.0?.1999D$
# POSI P000=S100000 @=10.A0 1?=0.B9 Ifo 1
@ POSI P000AH11@100 @00A.A0 1A@C.=1 Ifo #
= POSI P000AS110000 =0A #0=.=B Ifo @
A DOC4$ENTS H*C100000#19990?@0 0? @1.0?.1999@0.0?.1999D
C POSI P000=S100000 @=#0.A0 @#0C.B9 Ifo 1
? POSI P000AH11@100 @010.A0 #B@0.?? Ifo #
B POSI P000AS110000 =10 @?C.1# Ifo @
1 HEAD H*C100000119990?@0 0? @10?1999@00?1999D$
# POSI P000=S100000 @=10.A0 1?=0.B9 Ifo 1
@ POSI P000AH11@100 @00A.A0 1A@C.=1 Ifo #
= POSI P000AS110000 =0A #0=.=B Ifo @
A HEAD H*C100000#19990?@0 0? @10?1999@00?1999D
C POSI
? POSI
B POSI
Displaying 2ported Data
Field '!e Field te;t Field >'lue
SET1 Record idic'tor H
REF_NO Referece u!"er *C1000001
DOC_DATE Doc. d'te @00?1999
T%PE T%PE 0?
C4RR_-E% docu!et currec5 D$
Display iported data
By record
By field
'n this step you can display a part o or all o the imported data in a table# &y clicking on a table ro)
(or selecting *ield contents) you can display all the inormation in this ro)#
With the unction Change display you can s)itch bet)een one line and multiple line display#
The colors o the indi$idual hierarchy le$els can be displayed in Display color legend#
SAP AG BC420 8-5$

0&59
SAP AG 1999
,or- Steps
Eenerated
con.ersion
progra
Tr's'ctios re'dE A
Records re'dE #0
Tr's'ctios 7ritteE A
Records 7ritteE #1
/ote0
Amount fields $)MT7&&&% for standard
transfer progras are foratted
according to user:defined settings&
Date fields are ?,T foratted in the
LSMW .ersion M 7&4 they are al+ays
displayed in forat AAAAMMDD
Field assignent
Con.erting Data
Con.ert data
This )ork step is similar to the )ork step CRead dataB#
The imported data is con$erted into the target ile the using the deined rules#
' you do not select any data% conirm by e3ecuting the process# =ther)ise select the data in Crom##
Qto###F in the CTransaction numberB# @ou can also select se$eral transaction numbers#
' you ha$e lagged one or more source ields as selection parameters )hen deining the source
ields% these ields are also oered to you as selection parameters#
' you use a )ildcard in the ile name o the input iles and you ha$e deined at least one $alue or
the )ildcard% you )ill also recei$e one selection parameter or the )ildcard# ' you do not enter
anything% all deined )ildcard $alues are processed#
.ote- The system irst checks )hether the data con$ersion program is still up-to-date# ' it is not% it is
automatically regenerated#
SAP AG BC420 8-58

0&56
SAP AG 1999
,or- Steps
1 *+R00 0-NA1_A 100RO*ERTS F
# **-PF 1F*01 @00?1999SA0001F F DE$
@ **SE+ #**SE+ =0F FF
= **SE+ #**SE+ A0F FF
A **SE+ #**SE+ A0F FF
C **-PF 1F*01 @00?1999SA0001F F 4SD
? **SE+ #**SE+ =0F FF
B **SE+ #**SE+ A0F FF
9 **SE+ #**SE+ A0F FF
Displaying the con.erted data
By record
By field
Field Field te;t Field >'lue
ST%PE Record t5)e 1
TCODE Tr's'ctio code F*01
*3DAT D'te @00?1999
*3ART Docu!et t5)e SA
*4-RS Co!)'5 code 0001
*4DAT D'te F
/AERS Currec5 :e5 DE$
Displaying Con.erted Data
'n this step% you can display part or all o the con$erted data in a table# To display inormation about
a line% double-click it% or choose *ield contents#
To choose bet)een a one-line or multiple-line $ie)% choose Change display#
To display inormation about the colors o the hierarchy le$els% choose Display color legend#
SAP AG BC420 8-59

0&<0
SAP AG 2001
S)1 DB
B)12
Starting Transfer
The steps depend on the selected ob*ect type-
Standard batch input or recording-
/reate batch input session
"rocess batch input session
Standard direct input-
Start direct input program
&!"' or '(oc-
Start '(oc generation
Start '(oc processing
Generate '(oc o$er$ie)
Start '(oc postprocessing
SAP AG BC420 8-#0

0&<7
SAP AG 1999
S)1 DB
For e;aple* RFB2BL00
CT
D2
Starting Standard Transfer 1rogra
' you ha$e selected a standard S!" transer program% it may support batch input% call transaction% or
direct input or some combination o them#
' you use batch input-
@ou must create the session and then process the session using the batch input monitor#
@ou can go to the batch input monitor? only the batch input sessions or the selected ob*ect )ill be
displayed#
' you use call transaction-
@ou can start the program directly and import the data immediately#
' you use direct input-
@ou can start the direct input program directly (should only be used or testing)% or start the data
transer using the direct input monitor#
SAP AG BC420 8-#1

0&<'
SAP AG 1999
1ro-ect
Copy
Delete
Create docuentation
1rint
3;port
2port
)dinistrati.e Functions
Export 1
Import
,rom the initial screen select Goto Administration# Iere you )ill ind an o$er$ie) o all the
e3isting pro*ects#
@ou can create% edit% display% delete% copy or rename pro*ects% subpro*ects% ob*ects and reusable rules#
&y double clicking on an entry you can go to the entry display#
' you position the cursor on an entry% you can create a personal remark in the documentation# With
each processing the name and date o the last change is sa$ed#
SAP AG BC420 8-#2

0&<3
SAP AG 1999
1rofile
B:*S+,:SB),
B:*S+,:/E/C
B:*S+,:CBG
B:*S+,:A**
)uthori>ation Le.el
8isp!a2
/5ec'te
Cha.7e
A0i.istrate
)uthori>ations
The ollo)ing authoriAation le$els can be assigned or the LSMW application-
(isplay
The user can display all pro*ects )ith their )ork steps# <ser cannot change data#
13ecute
The user can display% import and con$ert data#
/hange
The user can Ce3ecuteF and can also change and copy ob*ects#
!dministrate
The user can use all the unctions oered by the tool#
SAP AG BC420 8-#3

0&<8
SAP AG 1999
Aou are no+ a#le to!
(se the #asic LSMW functions
Define rules in the LSMW
Transfer data using the LSMW
LSMW! (nit Suary
SAP AG BC420 8-#4

#$ercises
%nit: LSMW
&opic: Con'ersion and &ransfer of Documents %sing
the Legac( S(stem Migration Wor!bench
/reating a mapping plan or ,' documents
(eining translation rules in LSMW or the documents#
Mapping o the document data using the LSMW#
/on$ersion o documents using the /all Transaction
Legacy ,' documents should be imported into R/3 $ia the LSMW
using the /all Transaction#
LSMW project: )C*+,-..
Subproject: DOC%-..
Object: C&-..
/ile 0ith documents in legac( format:
)C*+,1DOC1213#"D1POS4L#5
The ,' documents are a$ailable in the ile &/58+R(=/R>RI1!(R"=S#L1G on the
application ser$er# This ile contains i$e documents )ith three items each# This data should be
transported into the corresponding S!" record layout using the LSMW# Transer this ile )ith
program R,&'&L++ using the call transaction#
SAP AG BC420 8-#5

Part 2 of the &as!
> "erorm the ollo)ing test- /reate an ,' document online using transaction ,&+>#
Docuent header
(ocument date- today
(ocument type- S!
/ompany code- +++>
/urrency- <.'
First Docuent 2te
"osting key- E+
!ccount- >+++++
!mount- 8++
e$t Document Item
"osting key- 5+
!ccount- >>3>++
!mount- 8++
Save document!
LSMW-"cti'ities:
8 Start the LSMW (transaction code- LSMW) to determine the transer ob*ect and display
the target structure#
Select pro*ect &/58+-SS in the LSMW )ith the description F,inancial (ataF#
8-> /reate the subpro*ect (=/<-SS )ith the description F(ocumentsF#
/reate the ob*ect /T-SS )ith the description F(ocuments )ith /TF#
8-8 /arry out the )ork step Maintain object attributes& <nder Object type and Import
method select tandard batch"direct input# <se ,5 help to select ob*ect >++
(inancial documents)#
"lace the cursor in ield Method and choose ,5 help to select the program# Sa$e
the settings and go back to the pro*ect o$er$ie) (list o )ork steps)#
&ip: Change the maintenance mode from double-clic!6displa( to double-
clic!6change
8-3 (isplay the ob*ect o$er$ie) or your ob*ect (button object overview in the
toolbar,& (isplay the ob*ects in a table
Sa$e the list as a local ile in spreadsheet ormat# (ystem '( -ist '( ave '(
-ocal !ile)# Select the spreadsheet ormat# 1nter the ile name /-PtempP,'R(=/-
SS#3ls#
8-5 Start Microsot 13cel and open ile /-PtempP,'R(=/-SS#3ls# Microsot 13cel can
be used to print the target structure#
.ote- (o not print it no) as it is already in the appendi3#
SAP AG BC420 8-##

3 /reate a Mapping Plan or the transport o the legacy documents#
With the course material you )ill ind a printout o an e3tract o the 13cel sheet#
3-> The data rom the legacy system is displayed in the ollo)ing table-
4ie!0 .ae 4ie!0
!e.7th
4ie!0 va!'e t2pe 8escriptio.
B/A8-8A</ 10 20.01.1999 8oc'e.t 0ate
B/A8-<AP/ 4 0$ 8oc'e.t t2pe
B/A8-;/4 9 12345#$89 )!0 0oc'e.t .o.
B/A8-C1 2 F or 8+ 8oc'e.t c'rre.c2
P)S9-C/A 4 0004 or 0005 Posti.7 -e2
P)S9-A+)1?< 15 1000610 Ao'.t i. 0oc'e.t
c'rre.c2
P)S9-ACC)1?< 10 100000 8oc'e.t acco'.t
P)S9-</E< # 9.3o 8oc'e.t ite te5t
3-8 Which ield% re;uired or creating a document online% does not e3ist in the
tableD RRRRRRRRRRRRRRRRRRRRRRRR
3-3 To continue% use the $alue o the ield in step >#
Jalue- RRRRRRRRRR
3-5 /reate a mapping plan using the attached table# /omplete the source ields-
,ield name% length% con$ersion method and coding/comment#
&ip: &he document categor( 7,89 corresponds to the document t(pe 5:L
account4 &he posting !e( 7,,,*9 corresponds to the debit posting and 7,,,;9
to the credit posting4
3-E /heck the mapping plan% comparing it to the solution (13cel sheet)#
SAP AG BC420 8-#$

Part + of the &as!
5 ,ile &/58+R(=/R>RI1!(R"=S#L1G )ith the document data rom the e3ternal system
is located on the application ser$er in the ('RRI=M1 directory# Start the ile monitor
(T!- !L>>) in a ne) session and display the ile#
Io) many ,' documents are there in this ileD
S)itch to the LSMW session to create the source structures o the source ile#
/arry out the )ork step Maintain source structures
The source ile consists o 8 structures-
The document header structure and the document item structure# /reate the structure
I1!( and the structure "=S' one le$el belo)#
E /arry out the )ork step Maintain source fields
/reate the source ields or the corresponding structures-
(the number in the brackets indicates the ield length)
E-> The source ields or the document header are-
S1T>(>) Set indicator '( or header - I (I or header)%
R1,(6) Reerence number in the legacy system%
(!T1(>+) (ocument date note- ield type ((M@%
T@"1(5) (ocument type%
/<(8) (ocument currency#
E-8 The source ields or the document item are-
S1T8(>) Set indicator or items - " (" or item -M means position)
K1@(++5) "osting key%
!//=<.T(>+) !ccount number%
!M=<.T(>E) !mount in document currency% note: field t(pe "M&2
T10T(7) (escription o the document item#
7 /arry out the )ork step Maintain structure relationships-
Structure relationships-
&GR++ and &&K", must be assigned to the document header# !nd &&S1G must be
assigned to the document item#
SAP AG BC420 8-#8

9 /arry out the )ork step Maintain field mapping and con'ersion rules-
9-> "erorm the mapping according to your mapping plan#
The ollo)ing ields need to be assigned-
(ocument date- Mo$e
Speciy a date ormat appropriate to your user settings#
.ote- This is possible as o LSMW $ersion >#9# 'n $ersions beore >#9 the date
is al)ays con$erted into the internal !&!" ormat#
(ocument type- /on$ersion
/ompany code- /onstant ( +++> )
/urrency key- /on$ersion ( e#g# T -M <S( )
Reerence document number- Mo$e
"osting key- /on$ersion ( e#g# +++5 -M 5+ )
!mount in document currency- Mo$e
'tem te3t- Mo$e
!ccount- Mo$e
: /arry out the )ork step Specif( files
The source ile is &/58+R(=/R>RI1!(R"=S#L1G on the application ser$er# Select
codepage >>++#
!lso maintain the ile name under -egacy data Uon the R/3 ser$er (application ser$er)V
- 'n *ile contents choose Data !or several source structures
.seg& *ile,&
- Select code page >>++#
6 /arry out the )ork step "ssign files-
(ocument - ile- &/58+R(=/R>RI1!(R"=S#L1G
'tems - ile- &/58+R(=/R>RI1!(R"=S#L1G
>+ /arry out the )ork step Import data#
(isplay the read data as a structure and as a ield display# /heck the data#
>> /arry out the )ork step Displa( imported data#
(isplay the imported data as structure and as ield display# /heck the data#
>8 /arry out the )ork step Con'ert data4
>3 /arry out the )ork step Displa( con'erted data#
(isplay the con$erted data as a structure and as a ield display# /heck the data#
SAP AG BC420 8-#9

>5 /arry out the )ork step Start direct input program# Select program R,&'&L++#
<se the call transaction method#
>5-> /heck the ile irstW ' no cancellation situation is determined% the actual
transer can be e3ecuted#
>5-8 S)itch o the unction Chec/ !ile onlyW Start the data transer# The data is
transerred )ith the call transaction#
Write do)n the document numbers o the irst i$e documents#
RRRRRRRRRRR
RRRRRRRRRRR
RRRRRRRRRRR
RRRRRRRRRRR
RRRRRRRRRRR
>E @ou can look at the documents using transaction ,&+3#
Optional e%ercise:The ne) ile )C*+,1DOC12"13#"D1POS4L#5 )ith documents
in legacy ormat has been created# &ut in this ile there is an error in the data record#
"erorm steps 6 to >3 again )ith this ile# When you transer the data% you )ill recei$e
an error message# This aulty data record is transerred into a batch input session#
"rocess this session in the display all mode and correct the errors#
SAP AG BC420 8-$0

You might also like