Professional Documents
Culture Documents
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
GetStarted
Solutions
About
Support
Training
Community
Developer
Partner
Community
Blogs
LSMWforMasterDataupload
SimpleExplanation(Part1)
August12,2014
| 35Views |
ChintanBudhbhatti
morebythisauthor
PLMEnterpriseAssetManagement(EAM)/PlantMaintenance(PM)
Solution | legacydatamigrationworkbench | lsmw
share
0
share
0
tweet
share
0
Follow
TheLSMW(LegacySystemMigrationWorkbench)isatoolbasedon
SAPsoftwarethatsupportssingleorperiodicdatatransferfromnon
SAPtoSAPsystems(andwithrestrictionfromSAPtoSAPsystem).Its
corefunctionsare:
ImportinglegacydatafromPCspreadsheettablesorsequential
files.
Convertingdatafromitsoriginal(legacysystem)formattothe
target(SAP)format
ImportingthedatausingthestandardinterfacesofSAP(IDoc
inboundprocessing,BatchInput,DirectInput).
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
1/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
(Thisblogonlyexplainshowtocreate/changeMasterdatainSAPby
usingStandardProgramsorrecordings.IhavenotcoveredBAPIand
IDocmethodtomakeitsimpleandeasy)
Generally,peoplehavequestionsinmindashowtocreateanLSMW
project,whichmethodshouldbeusedtouploadthemasterdataand
howtouseandwhatallmasterdatacanbeuploadedthroughLSMW.
LSMWLegacyDataMigrationWorkbench
IamdividingthewholeprocessofcreatingaProject,Subproject&
ObjectforuploadingtheMasterDataanditsuploadprocedurein
differentstepsasexplainedbelow:
Step1CreatingProject,SubprojectandObject:
ForusingLSMWtool,firststepyouneedtodoisCreateProject,Sub
ProjectandObjectasshowninthescreenbelow:
Here,ProjectcanhavemultipleSubprojectsandinturnSubprojectscan
havemultipleObjectsasexplainedbelow:
CreateProject
GivethedesirednameofdatamigrationProject(Forex:Modulename
asIhavetakenZPMforPlantMaintenanceModule)
CreateSubproject
GivethedesirednameofdatamigrationSubproject(Forex:Masters
nameasIhavetakenEQUIPforEquipmentMaster)
CreateObject
GivethedesirednameofdatamigrationObject(Forex:Mastersname
asIhavetakenCREATEforCreatingEquipmentMaster)
Step2SelectingMenuItems:
OnceProject,SubprojectandObjectsarecreated,pressingenterwould
generatethescreenwhichincludesallthemenuitemsforbothMaster
uploadaswellasIDocupdationwhichwemightnotrequire.Letus
selectthemenuitemswhicharerequiredonlyforMasteruploads.
SelectingMenuItems
Firstofall,pressingtheUserMenubuttonwouldguideyouthrough
selectinganddeselectingtheMenuitems.
PleaseticktherequiredItemsasshowninthescreenbelow:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
2/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Now,thescreenwoulddisplayonlytheselectedMenuItemswhichwe
requireforbuildingandexecu ngourLSMWprogramasshownbelow:
ClickthebuttonDoubleClick=DisplaywhichwouldmakeittoDouble
Click=ChangewhichmeansitwillallowalltheMenuItemstoopenin
Changemodeondoubleclickingelseeveryitemisindisplaymodeby
default.
Henceforth,wewillseeeachMenuItemindetailasanindividualstep.
Step3MaintainObjectAttributes:
ThisMenuItemdefinestheprocedureweadoptforourprogramwhich
couldbe:
1.StandardBatch/DirectInput
2.BatchRecording
3.BusinessObjectMethod(BAPI)
4.IDoc(IntermediateDocument)
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
3/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Fordefiningtheprocedure,doubleclickontheFirstoptionMaintain
ObjectAttributes.Thescreenbelowshowshowtoselectthemethod:
Asmentionedearlier,thisblogcoversexplanationofonlyfirsttwo
methodstomakeitsimpleandeasy.
(BelievememostoftheMastersgetscoveredinthistwomethods.)
Method1StandardBatch/DirectInput
Inthismethod,wearesimplyselectingthestandardprogramdefinedby
SAPfordifferentMasters(mostoftheMastersarelistedhere):
ClickonObjecttoselecttheprogramthenclickonMethodtoselectthe
method(Forex:Create/Change)asshowninscreenbelow:
Onceselected,savethismethod.
Method2BatchInputRecording
Thismethod,involvescreatingarecordingforaspecificMaster
transactionCreation/Change.
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
4/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Wewouldselectthismethodwhenwerequireonlyspecificfieldstobe
created/changedinsidetheMasterscreen.
Creatingarecordingisexplainedbelow:
Clickon
bu onandthenclickon
(Recordings:
Overview)bu onwhichwouldguidetotheRecordingscreen.Herepress
Createbu onwhichwillshowthescreenasbelow:
FillinthedesiredRecordingNameanddescrip onasshownandpressEnter
andinputtheTransac oncodeasshowninthenextscreen:
OnpressingEnter,systemwillstartthetransac onscreenasshownbelow:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
5/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Performtherecordingforthetransaction(i.e.,inputallthefieldsyou
requiretobetakenintoaccountforbatchinput).
Remembertosavethetransactiontocompletetherecordingprocedure
assavingisalsogettingrecorded.
Onpressingsave,youwillseealltheeldsrecordedasshownbelow:
HerepressDefaultAll buttontopopulatethefieldstobemadeavailablefor
batchinput.
Thiswillshowtheexactfieldnamesagainsteachfieldasshowninthe
screenbelow:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
6/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Savingthisscreenwouldguideusertothelistofrecordings.Herepressback
andselecttherecordingintheRecordingeldasshownbelowandsave:
ThisendstheStep1forcreatingthemethodforspecificMaster
creation/change.
Step4ObjectOverviewandFieldList:
BeforemovingtothesecondMenuItemMaintainSourceStructures,we
wouldgoforlis ngtheeldsandviewingthestructuringoftheeldsby
pressingthe
bu onintheMenuListScreenandthen
Listbu onwhichwouldshowthescreenasbelow(foreasinessIhave
usedMethod1i.e.,StandardBatch/DirectInputbutlistwillbesimilarin
boththecasesonlytheeldswoulddier):
HereintheTargetFieldssectionyouwillfindallthefields(capturedby
Method1orMethod2).
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
7/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Pleasecopyallthefields(exceptfieldTCODEandRECORDNAME
whichwedontrequiretochangewhilerunningourbatch)andarrange
thesameinexcelfileasshownbelow:
Bythisyouwillbeabletocapturealltherequiredfieldsinyourexcelfile
whichendstheStep4.
Step5MaintainSourceStructures:
SourceStructurewillhavealltheSourcefieldswhicharerecordedor
capturedduringMethoddefinition.
DoubleclickonMaintainSourceStructurestowhichwillguideto
screenofSourceStructurecreation
HerepressthecreatebuttonwhichwillaskforSourceStructureName
andDescriptionasshownbelow:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
8/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
AfterenteringthedesiredSourceStructurenameandDescription,press
enterandpressSave.
Step6MaintainSourceFields:
SourcefieldsarethesamewhichwehavelistedinStep4.
Beforemovingtothisstep,backtoyourexcelsheet,changeallfield
Typesasbelow:
CHAR
DATS
DDMY
UNIT
TIMS
TIMS
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
9/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
(ThisistobedonebecausethetypesdefinedinLSMWaredifferent
thenfieldtypesinprogramorrecording)
Now,doubleclickMaintainSourceFieldsintheMenuListscreen,
whichwillguideyoutothescreenasshownbelow:
Pressthe
willgeneratetheelddeni onscreen.Copypastealltheexceleldstothe
screenasshownbelow:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
10/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
PressSaveandBackanditwilldisplaytheeldsa achedtotheSource
Structureasshownbelow:
AgainpresssavebuttontosavethisStructurefieldrelation.
Step7MaintainStructureRelations:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
11/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
ThisStepisformaintainingrelationbetweenStructureandRecording/
StandardProgram.
DoubleclickMaintainStructureRelationsintheMenuListscreen,
whichwillguideyoutothescreenasshownbelow:
SelecttherstStructureandpress
andthestructureyouhave
createdwillbeautoma callybeselectedasyouhavecreatedonlyone
structure.Thiswillcreatetherela onshipbetweenprogramandStructureas
shownbelow:
PressSaveandBack.
Step8MaintainFieldMappingandConversionRules:
WehavecreatedtheStructuretoProgramRelationship,nowweneedto
createthemapping(Relationship)betweenFieldsfromStructureand
FieldsfromProgram/Recording.
DoubleclickMaintainFieldMappingandConversionRulesinthe
MenuListscreen,whichwillguideyoutothescreenasshownbelow:
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
12/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
AswehavecopiedthefieldsfromtheProgram/Recordingitselfasin
Step4,itwillbeeasytoperformthefieldmappinginasimplestep.
GotoExtrasAutoFieldmappingwhichwillpopupadialogboxas
shownbelow:
Performtheselec onexactlyasshowninthescreenaboveandpressEnter.
IfyouhaveanyDateeldsinyourFieldList,itwillaskforyourconrma on
foreveryindividualFieldsasshownbelowandmakeselec onasperyour
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
13/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
requirement(ThisishowsystemwillinterpretDatefurtherthroughoutthe
program):
PressEnterforalltheDateFieldsandyouwillndtheeldmappingforall
yourSourceFieldstoProgram/RecordingFieldsasshownbelow:
ConfirmalltheFieldsaremappedcorrectlyandpressSaveandBack.
Duetocertainrestrictionsofblogs,thisdocumentcoversthestepsuptil
MaintainFieldmappingandConversionRulesbelowsteps,
1.SpecifyFiles
2.AssignFiles
3.ReadData
4.DisplayReadData
5.ConvertData
6.DisplayConvertData
7.CreateBatchInputSession
8.RunBatchInputSession
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
14/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
areconveredinPart2ofthisdocumentwhichcanbefoundinthelink
below:
LSMWforMasterDatauploadSimpleExplanation(Part2)
AlertModerator
11Comments
YoumustbeLoggedontocommentorreplytoapost.
pradeepkumar
August26,2014at8:10am
Goodexplanation.Reallyhelpedalot.
ChintanBudhbhatti Postauthor
August26,2014at8:31am
Pradeep,
Thanksforyourcomments..
sumitpargat
September5,2014at9:53am
Reallywonderfulpostiliketheexplanation
PatrickS.
September18,2014at11:27am
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
15/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
Wownicedocument!
YougottapromotethismasterpieceabitmoretookmeseveralweekstillI
crushedintoit.
Thanks.
ChintanBudhbhatti Postauthor
September18,2014at11:31am
ThanksPatrickS.
Thisisanhonor..
NikhilAgrawal
September30,2014at6:57am
Nicedocumentandverywellexplained.
Thanksithelpedmealot
Nikhil
FranciscoRamonRuizGuerra
November28,2014at4:22pm
HelloChintan,
ThisthebestexplanationIfoundtocreateLSWMsthankyou.
Bestregards,
FranciscoR.
sunilkumarboya
December1,2014at7:03am
HiChintan,
veryniceandsimpleexplanationofLSMW.
itsreallyveryuseful.
Thanks,
SunilBoya
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
16/17
10/12/2016
LSMWforMasterDatauploadSimpleExplanation(Part1)SAPBlogs
SaadAslam
February22,2015at9:16am
HiChintan,
Nicedocumentandverywellexplained.
ForthefirsttimeIhavereadLSMWanditreallyhelped.
Keepupthegoodwork!!!!!!!!!!
Cheers
Rgds,
SA
SadinMihran
March19,2015at3:50am
HiChintan,
goodjobitsveryuseful
regards
sadin
PrashanthaN
May18,2016at4:59am
HiChintan,
Vergygooddocument.
Regards,
Prashanth
Privacy
TermsofUse
LegalDisclosure
https://blogs.sap.com/2014/08/12/lsmwformasterdatauploadsimpleexplanationpart1/
Copyright
Trademark
Sitemap
Newsletter
17/17