You are on page 1of 17
Summary SMW is the tool provided by SAP in order to upload huge amount of data from legacy file to A/3 system This article describes in detail how to upload master data in SAP HR module. However similar steps can be followed for other modules as well est Upk Master Data using Baich Input Rec Introduction The Legacy System Migration Workbench (LSMW) is @ tool to transfer data from legacy systems into an Ria System. LSMW supports a step-by-step procedure, if one step is executed and saved than next step automatically follows. Apart from creation of project/ subproject/ object and recording, there are 14 basic steps included in LSMW. This article explains clearly about each and every step. Process Flow: As an example, | am showing how to upload primary address for an employee i.e. Infolype 0006 with ‘Subtype 1. Creating Project/ Subproject and Object: Go to LSMW T.code> Give the name of the Project, Subproject and Object as desired Legacy System Migration Workbench Project (Cre_TTa008 Subproject Object retro 10 SAP AG 2 LSU: Upload Master Data using Batch Input Recording Now place cursor in Project field and click on create and give description of each as shown below and press enter. (eee ores 7 Froject CRE_1TEn6S Creation of TOON thraugh LSM Subproject CRE_ITEH0S Creation of TOON through LSM Object CRE_ITEH05 Name (Creation of TODDS through LSMwY Recording: In menu bar, Goto> Recordings (2s show = Lemworknench Edt Goo Extras settings ystem Help Administration CHF Project \Creation of T0006 through LSMW ‘Subproject CRe_{TB008 ‘Creation of T0006 thraugh LSLIW “Object CRe_ITE006 Creation of TO006 through LSLIW Now, Select ‘Recordings’ and create Give recording name and description Recordings of Project ‘CRE_IT0006': Over ecorsings frst Rec Revorsing fects | Desecpton Fes cid upload subtmet or IT6 ‘over SRERANOU Note: In recording we show path, so that the system follows the same way while uploading the data from legacy 10 is system (© 2010 SAP AG LSU: Upload Master Data using Batch Input Recording Give Transaction code as ‘PASO’ jo maint tar dala fr an empioyoe) > Transaction Cove In Master data maintain screen, give Personnel No, infotype and subtype (if any), and click on create Maintain HR Master Data Petsonnelna, 1006360 Name ‘Ae Ten test | EE group 1] Empioyee —Pers.atea 1632] Non-Urion EE subgroup Ut] Salatied-Exemipt toss lomganzatonel Assignment Personal ora as Bank Details Family MembenD ependents challenge From \To OToday OCumveek OA © Current manth OF rom curr data OLastweek Ore curentoste — OLsastmontn Cument Period OQ Curent*Year Infatroe Addresses STs [1 | Permanent residence In Create Address screen, enter fields which you want to upload and save @ 2010 SAP AG LSU: Upload Master Data using Batch Input Recording Create Addresses Personnel no | 1500065) ‘Name __[fir_Tstw test | EE group [1 Employee Personnel ar _|1832| Non-nian EE subgroup (U1 Salariad-Enarnpy Status Active (wa) D] Now, click on Default All and save and press back (© 2010 SAP AG LSU: Upload Master Data using Batch Input Rect Create Recording fecora to uplaao suntypet tor 178 2 FARM Yalntain AR Master Oata 5 SAPIPSEA 1800, Bb oxGO0E a9 eStG- PERN ‘00380 Pere Personnel unser 8G, 6uB6tR saPmsna BOC SUBSE SAPMPso 800 SUBECR, SAPIPSBA REEOS- THR 3 rates | Tino porto Insieator BOC SUBECR, SAPIPSSA BOC CURSOR, AP500-SUBTY RPS00-CHOIG 06 Hone Lntatype selection for SOO. SUBTY 1 sun subtype 1 SAPRPSoA 1900, 200 cuREOR P5OG-FERNR BOE OCCOOE AS RSD PERN 1550386 PERI oc suas. 2H papws HR 29060 c_suasce saPmsoa CUBE, smPMPSOA Personnel tuner Note: We are clicking ‘Default all’ button, so that all the felds which we touched during recording are included. Now recording is completed. Recordings of Project 'CRE_IT0006" 1 Overview Recordings REC_ITO © Record to upload svbtypel for IT Transaction PAG Maintain HR Master Data ‘Ovner ECCeEAPH? ECCSRAPG2 Processing basic steps in LSMW: Basically, LSMW need to be configured 14 basic steps. Below you will ind detailed step-by step procedure LSM Workbench: CRE_IT0006, CRE_IT0006, CRE_ITO006: C SMW: Upload Master Data using Batch Input Recording ® ° ° ° 5° ° oO ° ° 5 ° o ° ° Step 1: Maintain Object Attributes Select this radio button and click on execute-> (Dalsamia ToROter SEs) Now, click on Display/ Change icon (aithis forleveny Step becauselby eafaUit it WillbeTdlsplay mode) Here, we are telling system that what kind recording should take into consideration while performing upload: Select ‘Batch Input Recording’ and give name as shown below Maintain Object At bute Maintain Gouree Stuctures Maintain Source Fields Maintain Structure Relations Maintain Field Mapaing and Conversion Rules Maintain Fixed Values, Translations, User-Defined Routines, Sneciy Files Assign Files Reac Data Display Read Data Convert Data Display Converted Data Create Batch Input Session Run Bateh Input Session ‘Save and back (Note: Without any user intervention, rao buon wil came to next step) esuw: LSM Workbench: Change Object Attributes Master Data using Batch Input Recording atibuies Object CREITOOOS | Creation of TOUUE through LSM Owner Fecasapo? | ECCAAAPa2 Data Transfer SoOnce-Oniy O Potiogic File Names Cisystem-penenaent (Objact Toe and import Method, ~ (Ostendard aetervDirect input Obiest | etnoa Program Name a Program Tyne ] @Aatch input Recarsing Rovordina (=) Record toupload cubtmel for ITE (Cousiness Ooject Memad AP) Business Object Method Message Tye Basic Tyna ‘OlDoe antermediete Document) Message Tye Basic Tue. Step 2: Maintain Source Structures ‘Source structures are helpful in building hierarchical relationships. While uploading the data system always checks highest level structure first before going for subordinate structure. Select source structure and create> LSU: Upload Master Data using Batch Input Recording Enter details as shown below-> LSM Workbench: Change Source Structures CRE_IToO0G - CRE_179995 - CRE_1TOON6 Creation ot 170O08 through LEM source structures [ova Suis Shui source Structure ty_17866 Desenston ‘Sbuetue te upload /TO00S LSM Workbench: Change Source Structures Source Structures STRATOS =—=Structure to upload 178006 Save and back Step 3: Maintain Source Fields Here we assign all the fields which need to upload to source structure. Click on Object Overview select table> LSM Workbench: CRE_IT0006, CRE_IT0006, CRE_ITOOO! Maintain Object Atrioules Maintain Source Suctures Maintain Srueture Relations °o ° @® Maintain Source Fields ° oO Maintain Field Mapnine and Conwarsion Rules LSU: Upload Mastar Data using Batch I LSM Workbench: Object Overview (Table) ao =75 [ERTS Target Fields Sou Field Wane. Field Description Type Length Fie TABNARE Table Nane CHAR a0 Transaction Code CHag FERNR) Personne? Murher NUNC nee Trae pertod indicstor: Perioa CHa cuore Infotype selection tor AR master data naintenance CHAR jeueTy subtype CHAR leesoa Start Date bars lewooa End Date bars istans Street snd House Hunber CHAR lortas city CHAR lorie district CHAR STATE Repion (State, Province, tourty} CHAR Fst.z Postal Code CHAR Lana Eountry Key CHAR Copy the fields and length in excel sheet (for temporary) Note: exclude TABNAME and TCODE which are not required to maintain separately, system will take these from recording we made. Make excel sheet as shown A 3 1 “2 qPERNR at 2 iTIMRS = c i “4 icHolc oc a5t sisusty c at Pasco fe wl ZIENDDA ic ot US ISTRAS oc 60} gion = c aot Solorm aah iijstate ic 3 ‘piemz aiiann 4 est Upk Master Data using Batch Input Recording Now select ‘Maintain Source Fields’ button and execute> Click on ‘table maintenance’> LSM Workbench: Change Source Fields CRE_IT@Q06 - GRE_ITONB5 - GRE_IT3006 creation of 170686 through Lew Source Fields STRITONNBS = Structure to uptaad TTHAN6 Paste from the excel sheet which we maintained, Save and back Here we check whether structure relations between legacy and R/3 established or not. Vif tie hangs av ae a ek LSM Workbench: Change Structure Relationships Structure Relations Reto 1 to upload subtypet for 178 sce STRLITBS06 Structure to upload 110308 lect Target structure RECS (© 2010 SAP AG est Step 5: Display Field Mapping and Conversion Here we establish the relationship between legacy and R/S based on object fields. In menu bar, go to Extras-> Auto Field Mapping> Note: Make sure that you select your recording before auto field mapping LSM Workbench: Change Field Mapping and Conversion Rules 1 Master Data using Batch Input Record 5 PE fu Fanaa Sot ear Teget Helos Ge _tTobNG - CAE_1TO0GG - CRELITOOGS Groatton {FA ee ritas fom Curses Pasion Field Mapoing and Rule e gocory | © OM/Eet intial Target Foids (Owso Estria Target Fields Cea rites © reach Fiolss wan the Sarna Namo Oran tess itn Similar ames Fuzy Pratabiyin Percent £} © ony Aopiy Rulo"Trarster MOVE (OWs0 Aapiy Reusale ules Clonbirsourco Fol Nati @vvth contmation (Ono contention Now accept proposal forall the fields which need to upload TE Auto Field Mapping Pronisals a 1 lr REC_ITS-PERNR «Personnel Numoet) [wre eT @Proposatt STFL_TODOE-PERNR g 100%) PRS @ Transfer MOVED Alter auto field mapping complete, save and back, ‘Step 6: Maintain Fixed Values, Translations, User-Defined Routines No need to maintain this step, unless and until if there exist any user defined routines, which helpful for reusable. Step pecity Files In this step, you specify the location of the legacy file. Note: Generally we receive legacy tile in excel format, so save this file as Text (Tab delimited) Now, double click on ‘Legacy Data ~ On the PC (Front End)’ > I: Upload Master Data using B File CaDacuments and SettnasisriamraD askten\000511-Uploadi bt Name Uploed on061T Fle conenis Data for One Source Structure (Table) (ODeta for Multiple Source Structures (Seq, File) Delimiter Oa Separator Ocomme Clans OSemi-colon Qother t File Shuduie (TFlele Nemes at Start of File eld Order Matches Source Bimeture Defntion File Type @ Record End Marker (Text File) (OFised Rec. Lenath (Bin File) [ Ch Hewadecimel Lth Field (4 Bytes) at St Code Page” @ascll lsh Dos. ‘Save and back LSU: Upload Master Data using Batch Input Recording Step 8: Assign Files Here, we just check whether file Is assigned to source structure or not LSM Workbench: Assign Files (Change) CRE_ITOOOE - GRE_ITONOE - CRE_ITINO crection of ITANN thecuoh LEN Source Structures are FItes STR_ITOOG6 Structure ta upload 17906 Uploss saa511 C:\bocuments and sattingsisriranra\oasktop\ocoBrT-Uploady txt ‘Save and back. Step 9: Read Data Here our legacy data is read LSM Workbench: Import Data For CRE_IT0006, CRE_IT0006, CRE_ITO006 Transaition Numbsr o \Value Fields > 1224.66 Data Value Yer nyMDD Execute->Now, next screen shows how many number of records have been read. Step 10: Display Read Data Here, we can display all for part of the data by giving line numbers = Dinlay Road Dak fa Project (CRE_1T6885) Creation of TAN06 through LEM ‘Supprojct____CRE_1TG0O8) creston ot1Tu006 through LSM Object CRE_1T0005]| Creation of 7008 trough LSM File CRE_ITI006_CRE_ITO006_GRE_ITO006 Ismw read Fraritina Toure Check, whether data has been correctly fit into fields (© 2010 SAP AG 1“ LSU: Upload Master Data using Batch Input Rsconding Step 11: Convert Data Here, whatever data has been read will convert to SAP standards. LSM Workbench: Convert Data For CRE_IT0006, CRE_IT0006, CRE_IT0006 “Trans action Number ® Execute Now, il shows how many records have been converted. It should be same as data which have been read in step 9. ‘Step 12: Display Converted Data Here, converted data can be viewed for cross check. eave | Personne) nuxaer wena TING [Tino period indicator: Period x cuore | Infotype selection for He waster data naintenance| 0002 susry | suotype il econ start pate ar.01 2006 ENo08 | End bate 31.12.9900 svRas | Street and House Kunber Alex Street, ori: city New Jersey neraz | District 25 state [Region State, Province, County) nu Psil2 [Postal Code orera Laxor country Key usa Data from the legacy file is fitting to correct fields, so we configured all prior steps without any mistake. Note: If data is not fiting correctly, then we need to cross check Step3 and Steps. LSU: Upload Master Data using Batch Input Recording ‘Step 13: Create Batch Input Session In this step, we create session for batch input ‘Make sure you check box for ‘Keep batch input folder’ is active LSM Workbench: Generate Batch Input Folder File Name (with Path) ‘CRE_J10006_CRE_(TOUOE_CRE_JTWO0B Jsmm.cony Disp Trans. per Folder T Name of Batch input Folders) cne_I T0085 userid ECcaaaPee ‘ea batch input folden/s)? Execute ‘Step 14: Run Batch Input Session Here we run the batch input session which we created in step 13. Select Session and execute process Batch Input: Session Overview, (© 2010 SAP AG LSU: Upload Master Data using Batch Input Recording Here we can choose options, how upload should be done. Itis recommendable that, first 3 to 4 records upload foreground to make sure data is uploading correct, for rest of records select ‘Display errors only’. Now legacy data will we upload to Master data of employees in SAP system. (© 2010 SAP AG "

You might also like