How To Use LSMW

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 46

HOW TO USE LSMW

What is LSMW?
LSMW is one of SAPs best data conversion and master data creation tools. It is available for most R ! master and transactional data. LSMW can be "sed for most conversion and mi#ration tas$s and can be accom%lis&ed 'it& standard f"nctionalit(. Wit& a little A)AP codin#* (o" can "se LSMW for more com%le+ data conversion activities. T&e information belo' 'ill 'al$ (o" t&ro"#& t&e %rocess of creatin# a sim%le LSMW. Once (o"ve done t&is (o"ll be able to see &o' "sef"l t&e tool can be and &o' LSMW is t&e ri#&t c&oice for most conversion and mi#ration,

STEPS FOR CREATING AN LSMW. -. Lo# on to SAP /. Enter transaction code 0LSMW1

!. If (o" receive t&e follo'in# screen eit&er c&ec$ t&e '&ite bo+ dis%la( t&e messa#e t&en clic$ t&e #reen c&ec$ c&ec$ to contin"e.

to no lon#er

or 2"st clic$ t&e #reen

3. Once t&e screen belo' a%%ears* (o" are no' read( to be#in (o"r LSMW scri%t creation.

4. 5reate t&e file b( in%"ttin# t&e Pro2ect* S"b%ro2ect* and Ob2ect.

6. If (o" receive t&e screen belo'* clic$ t&e #reen c&ec$ and contin"e.

7. In%"t t&e 0Name1

8. 9e+t clic$ :. T&e screen belo' no' a%%ears.

-;. <ollo' t&e men" %at& =E+tras=User Men"

--. 9e+t (o" #et t&is screen. T&is allo's (o" to set "% t&e LSMW. Since 'e dont "se I>O5s (o" can remove all t&e c&ec$s at t&e bottom of t&e screen.

-/. ?o"r screen 'ill no' a%%ear as belo'. 5lic$

-!. ?o" 'ill be ret"rned to t&e main screen s&o'n belo'. 5lic$

-3. 9o' (o" 'ill be#in t&e creation of t&e LSMW. STEP 1. MAINTAIN OBJECT ATTRIBUTES -4. 9e+t clic$ on t&en select 0)atc& In%"t Recordin#1.

-6. 9e+t In%"t t&e 9ame of t&e recordin#. In t&is case its KS 1. T&en clic$

-7. 9e+t clic$ 0create1

-8. In%"t recordin# fields as belo' t&en clic$ t&e 0#reen c&ec$1.

-:. In%"t transaction code.

/;. 9e+t (o"re read( to bein# creation of t&e master data for (o"r LSMW. In o"r e+am%le "sin# @S;- (o" see t&e follo'in# screen.

/-. In%"t data as belo'* t&en clic$ 0Master >ata1

//. 9e+t fill in all information needed for (o"r scri%t. In t&is case for cost center creation.

/!. Save t&e Recordin# . On t&e follo'in# screen (o" see t&e field names and t&e defa"lt val"es for t&e field names t&at 'ere created from t&e recordin#.

/3. 9e+t 'e need to remove t&e defa"lt val"es. T&e %"r%ose is to create %arameter im%ort names. To do t&is (o" m"st do"bleAclic$ into eac& defa"lt val"e name.

/4. After do"ble clic$in# into a 0field1 (o" 'ill see a screen similar to t&e one belo'.

/6. Remove t&e defa"lt val"e t&en in%"t t&e field name and t&e descri%tion of t&e field name. 5lic$

/7. T&en /8. 5lic$

. to ret"rn to initial screen.

/:. 5lic$

to ret"rn. . . . . T&en 0save1.

!;. 9e+t

to ret"rn to Main Screen.

!-. <rom t&is screen (o" 'ill no' move on to Ste% / of t&is %rocess. 5lic$ !/. T&en clic$ 0c&an#e1

!!. 5lic$ 0create1

!3. ?o" 'ill receive t&e screen belo'. In%"t (o"r data t&en clic$

!4. On t&e screen clic$ sa!e. 5lic$

!6. ?o" 'ill ret"rn to t&e Main Screen as belo'. Please note (o"re no' read( for Ste% !. 5lic$ Mai"tai" S#$%&e Fie'(s.

PLEAE NOTE T)E FOLLWING*


T# +%e+a%e ,#% Ste+ - .#$ /i'' %e0$i%e the ,ie'( "ames. T# 1et these .#$ m$st ,i%st 1# t# Ste+ 23 the" Ste+ 4 t# #5tai" the ,ie'( "ames3 .#$ /i'' %et$%" t# &#m+'ete ste+ -. !7. 5lic$ ste% 3* t&en 0e6e&$te1.

!8. ?o" 'ill receive t&e screen belo' since 'e &ave not com%leted ste% !. T&is is a 'arnin#. 5lic$ .

!:. 5lic$ 05&an#e1 and (o" 'ill receive t&e 'arnin# a#ain. 5lic$ t&e #reen c&ec$ and contin"e.

3;. 5lic$ * t&en . 3-. ?o"re no' on t&e initial screen. A"tomaticall( ste% 4 is selected or (o" ma( man"all( ma$e t&e selection. 5lic$ 0E6e&$te1.

3/. On t&e screen belo' all fields t&at (o" created 'ill be listed. In o"r e+am%le 'e onl( selected one field 7KOSTL8 as a %arameter in t&e first ste% and all ot&er fields 'ere $e%t as defa"lts.

3!. Ma$e a list of all t&e fields or co%( to an E+cel file. ?o" 'ill "se later in t&e e+ercise. T&e format of (o"r E+cel file s&o"ld a%%ear as belo'.

T&e 5&aracter and Len#t& fields 'ill be obtained from Tec&nical &el%. To do t&isB

33. O%en a ne' SAP Session* enter transaction code @S;-. 5lic$ in t&e 5ost 5enter field t&en clic$ 0<- &el%1. T&e screen belo' a%%ears. 5lic$ on 0Tec&nical Information.

34. <rom t&e screen belo' do"bleAclic$ on t&e ,ie'( "ame.

36. Locate eac& of (o"r field names and #et t&e 0>ata T(%e1 and 0Len#t&1. In o"r e+am%le 0>ata T(%e C 5&ar &o'ever in LSMW selection co"ld be different. <or instance 5HAR C 051* etc.

37. In%"t (o"r data to (o"r E+cel file as belo'. Save t&e file as a 0.t+t1 format. T&is is al'a(s reD"ired '&en im%ortin# data to LSMW.

38. After t&e e+cel s&eet is com%lete 'e can no' #o to t&e t&ird ste%. 5lic$ ste% ! t&en e+ec"te.

3:. 5lic$ c&an#e on t&e screen belo'

4;. Select 0So"rce Str"ct"re1 clic$ for 0Table Maintenance. 4-. ?o" 'ill see t&e screen belo'. ?o" 'ill need to in%"t t&e 0field name1* 0t(%e1* 0len#t&1. T&e field label 'ill defa"lt. T&is information is ta$en from t&e E+cel S&eet t&at (o" created earlier.

4/. Press Eenter= t&en clic$ 0(es1.

* t&en

t'ice. ?o" 'ill receive t&e screen belo'*

4!. We are no' read( to be#in ste% 3. 5lic$ 0E+ec"te1.

43. ?o" 'ill see t&e screen belo'. 5lic$

44. 5lic$ 0SAFE1* t&en Ret"rn.

46. ?o" are defa"lted a"tomaticall( to Ste% 4. 5lic$ 0E+ec"te1.

47. 5lic$ 05&an#e1* t&en clic$ once on t&e Str"ct"re 9ame* t&en 5lic$ 0E+tras1=A"toA<ield Ma%%in#=

48. ?o" 'ill see t&e screen belo'. 5lic$ 09o 5onfirmation1* t&en 0ret"rn1.

4:. On t&e screen belo'* 5lic$ EEnter=.

6;. On t&e ne+t screen clic$ Esave=* t&en Eret"rn=.

6-. ?o"re no' read( for Ste% 6. 5lic$ EE+ec"te=

6/. T&e screen belo' a%%ears. It offers several o%tions of im%ortin# data. In o"r e+am%le 'e 'ant to im%ort data saved on o"r P5. T&erefore 'e need to select t&e first o%tion 0Le#ac( >ata On t&e P5 G<rontend. t&en clic$ 9&ha"1e:

6!. >o"ble clic$ on t&e first o%tion.

63. On t&e screen belo' (o" 'ill select t&e file to im%ort from (o" >es$to% GPlease remember t&e location of t&e file.. 9e+t %"t in t&e file name Gin t&e 09ame1 field. Select 0Tab"lator1. Under <ile Str"ct"re ens"re t&at bot& items are c&ec$ed. 5lic$ Eenter=.

64. 5lic$ Esave=* 5lic$ Eret"rn=.

66. ?o" are no' read( for Ste% 7. 5lic$ Ee+ec"te=.

67. On t&e screen belo' clic$ Ec&an#e=* Select t&e s#$%&e st%$&t$%e* t&en Esave=* t&en Eret"rn=.

68. ?o" can no' test to see if LSMW 'ill read (o"r data on t&e 0te+t1 file. E6e&$te Ste% 8.

6:. <rom t&e screen belo'* clic$ 9e6e&$te:. LSMW 'ill read t&e data from (o"r te+t file.

7;. T&e screen belo' s&o's t&at 'e &ave #"e %e&#%( bein# read from o"r 0.t+t1 file. 5lic$ Eret"rn= t'ice to ret"rn to t&e Main Screen.

7-. ?o" are no' read( to e6e&$te Ste% :. T&is ste% dis%la(s t&e data.

7/. ?o" 'ill see t&e screen belo'. 5lic$ 9e"te%:

7P'ease N#te* I, .#$ /ish t# ;$st $se +a%ti&$'a% 'i"es i" .#$% LSMW &a" $se the <F%#m Li"e= a"( <T# Li"e= t# te'' LSMW /hi&h 'i"es ,%#m .#$% ,i'e that .#$ /ish t# +%#&ess. LSMW /i'' #"'. se'e&t th#se 'i"es.8

7!. T&e screen belo' s&o's t&at 'e 'ill load one cost center. In t&is e+am%le t&e cost center is <>CLLSMW 1=. T&e %"r%ose &ere is to verif( t&at all t&e data t&at (o" 'is& to load is bein# ca%t"red. 5lic$ Eret"rn=.

73. 9e+t (o"re read( to convert t&e data. T&at is t&e data is bein# converted from (o"r .t+t file to t&e LSMW lan#"a#e. E6e&$te Ste% -;.

74. <rom t&e screen belo'. 5lic$ 9e6e&$te:. 9OTE TO <ILE EHPLAI9 THE 9UM)ER O< RE5OR>S 5O9FERTE>.

76. T&e screen belo' s&o's t&at in o"r e+am%le one record is bein# converted. 5lic$ 9%et$%": t'ice to ret"rn to t&e main screen.

77. 9o' (o"re read( to dis%la( t&e data t&at (o" &ave converted. 5lic$ 9e6e&$te:.

78. T&e screen belo' a%%ears. 5lic$ 9e"te%:.

7:. ?o" 'ill no' see t&e data converted. In t&is e+am%le cost center 0>5LLSMW;-1 is bein# dis%la(ed. 5lic$ 9%et$%": to t&e main screen.

8;. 9e+t (o" 'ant to 05reate )atc& In%"t Session1. E+ec"te Ste% -/.

8-. T&e screen belo' a%%ears. 5lic$ Ee+ec"te=. T&is 'ill create an SAP )>5 session GSM!4..

8/. T&e messa#e belo' a%%ears t&at (o" &ave created a )atc& In%"t session. 5lic$ Eenter=.

8!. ?o" are no' read( to %rocess t&e )>5 session. ?o" do t&is b( e6e&$ti"1 ste% -! 0R"n )atc& In%"t Session1.

83. ?o" are a"tomaticall( ta$en to transaction SM!4. ?o" no' need to %rocess t&e )>5 session b( clic$in# on EProcess=.

84. Select t&e session* 5lic$ Process* and a dialo# bo+ a%%ears. ?o" need to c&oose (o"r %referred %rocessin# mode. In o"r e+am%le 'ere c&oosin# to %rocess t&e session in 0)ac$#ro"nd1. 5lic$ 9P%#&ess:.

86. ?o" 'ill see t&e messa#e belo'.

E?PORT@IMPORT LSMW TO OT)ER CLIENTS

T&e LSMW can be e+%orted and im%orted to ot&er SAP 5lients for e+ec"tion. 9o trans%orts are necessar( as in t&e case of 5ATT e5ATT. <ollo' t&e instr"ction on t&e follo'in# %a#es to do t&is.

-. Io to transaction LSMW /. 5&oose t&e Pro2ect (o" 'is& to E+%ort.

!. 5lic$ =E+tras=E+%ort Pro2ect

3. W&en t&e screen belo' a%%ears* clic$

4. <rom t&e ne+t screen &'i&A :E6+#%t R$'es:E6+#%t

6. Select a location on (o"r local drive to store t&e file and save it t&ere.

7. ?o" 'ill receive a screen similar to belo'.

8. 5lic$

IMPORTI9I LSMW :. To Im%ort LSMW lo# on to t&e client in '&ic& (o" 'is& to im%ort to. -;. Io to Transaction code LSMW. --. C'i&A :E6t%as:Im+#%t P%#;e&ts

-/. 5&oose t&e file from t&e location (o" e+%orted it to.

-!. ?o" 'ill receive t&e screen belo'. 5lic$ t&e #reen c&ec$ and contin"e.

-3. <rom t&e follo'in# screen C'i&A :E(it:Im+#%t

-4. ?o" 'ill see t&e screen belo'. 5lic$ t&e #reen c&ec$.

-6. ?o" are no' read( to e+ec"te t&e LSMW in t&e client.

You might also like