32620520295
32620520295
How many steps in lsmw in sap. Lsmw steps in sap mm pdf. Lsmw steps in sap fico pdf. Lsmw steps in sap pm. Lsmw steps in sap.
LSMW is a tool that supports the transfer of data from non-SAP systems (“Legacy Systems”) to SAP R/3 systems. This can be a one-time transfer as well as a periodic one. LSMW also supports conversion of data of the legacy system in a numerous way. The data can then be imported into the SAP R/3 system via batch input, direct input, BAPIs or
IDocs. Furthermore, the LSM Workbench provides a recording function that allows generating a “data migration object” to enable migration from any required transaction. LSMW can be used for following 3 functions – The main functions of the LSM Workbench are: Import data (legacy data in spreadsheet tables and/or sequential files) Convert data
(from source format to target format) Import data (into the database of the R/3 application) To start the LSMW workbench use transaction LSMW Also, check out next tutorial on executing LSMW Step by Step Enter Transaction LSMW in SAP, to start the workbench. LSMW workbench shows the following information- Project: An ID with a maximum
of 10 characters to name your data transfer project.
If you want to transfer data from several legacy systems, you may create a project e.g. for every legacy system. Subproject: An ID with a maximum of 10 characters that is used as a further structuring attribute. Object: An ID with a maximum of 10 characters to name the business object. Enter Project ID, Subproject ID, Object ID. Click Execute The
next screen gives the STEPS in your LSMW data Migration You can select the desired step and click execute. Let’s look into each step in details Step 1- Maintain Object Attributes. There are four Modes of Data Transfer: Standard/ Batch Input: Standard upload Programs Batch Input Recording: Here you can create a recording of your own and use it
to upload/change data BAPIs: Standard BAPIs are used to upload Data IDOCs: Any Inbound IDOC function modules can be used to process the data Based on the requirement we try to find a suitable method to be processed.
If it is a standard Master we can find it in the first method. Otherwise, we try to use BAPIs or Idocs. If the requirement is a very custom one we use a recording to process the data. Step 2 – Maintain Source Structures The source structures can be used to design the hierarchy of the files to be uploaded. Step 3- Maintain Source Fields In this screen,
the Fields which will be uploaded from the text file can be maintained here. The fields with identical names are taken as the Key Source Filed is used to identify whether a certain record should go to the specified structure.
Eg: Suppose a file contains header rows and item rows, we can specify the first field as the indicator say ‘H’ for a header and ‘I’ for Item. Thus when the file is being read, it checks the first field, if it is ‘H’ then it is read into the Header source structure else it is written to the item source structure. The Source fields can be easily maintained in the
form of a table maintenance. Step 4 – Maintain Structure Relationships The Structures which are needed for the processing of the data need to be assigned here. The Object may contain many structures and many source structures. The Mapping between the source and the target structures should be done after careful checking. Step 5- Maintain
Field Mapping and Conversion Rules In this step, you assign source fields to target fields and define how the field contents will be converted. All fields of all target structures, which you selected in the previous step, will be displayed. For each target field the following information is displayed: Field description Assigned source fields (if any) Rule type
(fixed value, translation etc.) Coding. Note: Some fields are preset by the system. These fields are called “technical fields” are marked with “Default setting”. The coding for these fields is not displayed when first entering the field mapping; it can be displayed via the display variant. Changing the default setting may seriously affect the flow of the data
conversion. If you erroneously changed the default setting, you can restore it by choosing Extras -> Restore to default. Step 6- Maintain Fixed Values, Translations and User-written Routines Here the 3 reusable functions are maintained: Fixed Values: Fixed values are values which are fixed across the project eg: Company Code. We can assign a fixed
value to BUKRS and this fixed value can be used in all the objects in this project. So if the value changes we can only change at one place i.e. in the fixed values instead of changing in each and every object. Translations: Here you can maintain the fixed translation for any legacy field and the translation can be assigned to the filed, in Field Mapping
and Conversion Rules. Translation can be 1:1 or many: 1 etc. User Defined Routines: These are user defined subroutines that are used in the object for processing the data. All the Three functions mentioned above are reusable Rules which are valid for all objects in one Project. Step7- Specify Files Here we define the Files that we use to upload the
data. The File can be on the Front end or in the application server. Step 8- Assign Files Here we define which file we are going to use for current upload i.e. whether the file is on Presentation server or application server. Step 9- Read Data Reading the data from the file gives us an option to read only a few records and not the entire chunk in order to
enable Testing of first few records. This also provides the user defined selection parameter which can be used to restrict the read data based on the condition specified. Step 10- Display Read Data In this step, you can display all or a part of the read data in table form. Clicking on a line displays all information for this line in a clear way.
The same happens when you click on Field contents. Change display allows selecting either a one-line or multi-line view. Display color palette displays the colors for the individual hierarchy levels.
Step 11- Convert Data Converting the data is the transfer of data from source to target structures based on the conversion routines written in maintain Field Mapping and conversion routines. Step 12- Import Data The steps displayed by the program depend on the selected object type: Standard batch input or recording: Generate batch input session
Run batch input session Standard direct input: Start direct input session BAPI or IDoc: Start IDoc creation Start IDoc processing Create IDoc overview Start IDoc post processing This completes a detailed overview of steps to transfer your data using LSMW in SAP. Legacy System Migration Workbench (LSMW) is handy tool for data uploads. In most
of the big projects there is a separate development / data migration team is available. However, at times, it would be responsibility of the functional consultant to load the data such as vendor master, customer master and asset master etc.
It would be real handy for a functional consultant to know LSMW (at least recording method) and it would help them to successfully complete the task. Hope this document would help many of our functional consultants, as I am seeing number of questions around LSMW. The simple rule is: Follow this document and practice is for number of times
possible, then you will become master. Go to Transaction Code “LSMW” and follow the following steps: Give some Unique name for Project, Subproject and Object. Click Create (Shift+F1). Now execute or press CTRL+F8. Give the description for Project, Sub Project and Object and say OK. Now execute or press CTRL+F8.
Select Maintain Object Attributes and Execute (CTRL+F8) Click Display / Change (it will make you to change). Select the Radio Button Batch Input Recording. Now click on “Goto” –Recordings Overview. Click on Create Recording (Ctrl+F1). Click OK Give Required Transaction Code (In this case it is FK01) Create Vendor or Make changes for
Entering Withholding tax details in the Vendor. Press Enter C Press Enter Click on Save Button. Recording is saved now. Click on “Default All” Button. ClickCtrl+Y, a + will come. With this, you can drag and copy whatever you want. In case if any field is appearing twice youneed to change the field name by double clicking on that. Otherwise, your
uploading will get failed. Copythe fileds to an excel file. Remove the Blank Rows. Now the field name and descriptions are in one Column. I.e., “A”. You need tosegregate that. To do that, select Column “A” and Select in Excel “Data” – Textto Column as shown in the following graph. Now Select the fixed with and say “Next”. Select Fixed Width and
click next. Keep columns wherever you want by clicking. Now say Next and then again say “Finish”.
Now all fields and texts are divided into two Columns. Now copy the fields and texts as shown in the Sheet1 (Ctrl+C) Goto Sheet2 Keepthe cursor in the Sheet 2 (A1) and then Edit, PasteSpecial Checkin Transpose as shown below and say OK. Now all your rows will become your columns as shown in the blow Screen. Nowfill the required details
exactly as shown below. You should note that you haveto enter ‘0001 for payment method instead of 0001, since if you straight enter0001 it will become 1, therefore you must ensure whenever it is starting with“0” should be preceded with ‘.
Nowselect the whole sheet2. Removeall grids. No colors should be there in the sheet. No letter should be typed in different colors. All are in normal color only.
Keep the columns to “LEFT” Margin. Now, Format=> Cells => Number => General as shown in the following screenshot. Now say OK. Now copy the whole Sheet2 and paste it in the Sheet3. Thendelete the header rows as shown below: Savethis file to your Hard Disk with a simple name. In this case I saved as Vendor. Nowgo to “SAVE AS” in Excel,
and Saveas Text (Tab Delimited) as shown in the above screen shot. Click on OK button as shown below. Click on “YES” button as shown below. Now, Click on “NO” button as shown below. Press F3 or Click on Back Button. Now, Click on “YES” to save. You will reach the below screen. Again, press F3 or click on back Button. ClickF4 in the Recording
Button, your structure will be populated. In this case itis “VENDRECO”. Now click on Save on Ctrl+S to save your recording. After saving your recording click Back button or press Ctrl+F3 to go back. Now you will observe that few steps have been disappeared. Only few steps are leftout. This is because of the recording mode that you have been
selected. Ideallythere should not be any Idoc related steps should be visible. Now Step1 is being completed and the system automatically takes you to second step.Now press CTRL+F8 or Executed. Click on Display / Change Button or press Ctrl+F1 Now create a Structure by clicking “Create Structure” or Ctrl+F4. Give Source Structure Name and
Description Your Source Structure Name and Description is shown. Click on Save button Now Press F3 or Click back button to go back. Now the second step is completed and system automatically takes you to third step. Click CTRL+F8 or Press Execute Button, which will take to maintain source fields. Click on Display / change as shown above OR
press Ctrl+F1. Now press on Table Maintenance as shown above by keeping your cursor on the SourceStructure (in blue color in the above screen shot). Copy those Fields from Sheet1 and copy it here. (from your excel file) In case if your fields are came twice in recording, none of the field should besimilar. As already advised that change the field
names to different fieldnames. Whatever, field names that you have changed in the structure should alsoappear here. Meaning that in case these fields does not map with your changedfields in your Structure, uploading will fail. Enter the Field Type as “C” – Characteristic and Length as 60. If you know the lengthenter the exact length. If you do not
enter the maximum length 60. You shouldnot enter the length less than the actual length of the field. Say “Save”. Press “Enter”. Save the results and PressF3 or Click on back button to go back. Now Click Save in this screen and again press F3 to go back. Now system will automatically takes you to fourth screen.
Click CTRL+F8 or Click on Execute Button. Select the Structure and click on Display / change button or press Ctrl+F1 Click on Relationship (Ctrl+F4) Thoughit is customary step, you should go to this step. And say OK for the messagethat the system has issued.
“A source structure is already assigned to targetstructure VENDRECO”. Now press Save and PressF3 or Click on back button to go back. It will take you to the next screen automatically. Press CTRL+F8 or Click on Execute Button. In the above screen, select the structure and then click display / change or (Ctrl+F1). Again Select the Structure, Go
select the auto filed mapping as showing above in the above screen shot. Say “OK” with this 50 number screen. Do not make any changes. Keep on Pressing “Accept Proposal” for all the proposal as shown above. Your entire field mapping should appear as above. Each field should have four rows as above. Once it is being completed the system issues
a statement that “Auto Field Mapping is completed” Click Save (Ctrl+S) and go back (F3). Nothing to do with “Maintain Field Values, Transactions, User Defined Routines” Now Go to “Specify Files” Screen Manually and press “Ctrl+F8” or Execute Button. Select the first row and click on Display / change Button.
Now Click on Add Entry “Ctrl+F2” as shown above. Select the “TEXT (Tab Delimited)” file that you have already created and say Open. Your file has come and Enter some relevant “Name” Select “Tabulator” Radio Button and say OK. Now Save (Ctrl+S) and press F3 or Back Button to go back. Now the system will take you to next step i.e., “Assign
Files”. Press Ctrl+F8 orpress Execute Button.
Select Source Structure (as shown in blue colour above) and press Display / ChangeButton (Ctrl+F1). Click on Assignment (Ctrl+F2) Though it is a customary step, you need to visit this step compulsory. The system willissue a message stating that “A file has already been assigned to sourcestructure “VENDOR_RECORDING”. Say Ok. Click on Save
(Ctrl+S) and Press F3 or click on back button. The system will take you to next step i.e., “Read Data”. Click on Execute or Press Ctrl+F8. Remove the Checks for ValueFields -> 1234.56 DateValue -> YYYYMMDD as shown above.
There should not be any check in the abovetwo check boxes. NowClick on Execute (F8) The system will tell that total 8 records are being read. Now Click on Back Button or press F3 TWICE, which will take you to initial screen. Now the system takes you to next step “Display Read Data” Click on Execute or Press Ctrl+F8. Here you give the number of
lines in your text file and say OK. Click on Any one row and see whether the fields in SAP and columns in your Text Fileare matching. Once you are satisfied that everything is matching and going fine, press F3 or Clickon Back button TWICE, which will take you to initial screen. Now you are automatically in “Convert Data” Screen. PressCtrl+F8 or
Click on Execute Button. Just press F8 or Execute Button. The following screen will appear. See the screen and press Back Button (F3) twice,which will take you to initial screen. Now the system will automatically takes you to “Display Converted Data”. Press Ctrl+F8 or Click on Execute Button. Enter the number of lines From 1 to 8 in this case, to
see how it is showing inConverted Data and Say Ok. (Click on Rite Tick). Click on any one of the converted data line and see how the data is going. If you are satisfied that everything is going fine, then Click on Go back button(F3) TWICE, which will take you to initial screen. You will be automatically taken to “Create Batch Input Session”. Click
Ctrl+F8 or press “Execute” Button. Select “Keep Batch input Folder(s)? Just Click on Execute Button (F8). One Batch input session will be created. The system will state that “1 batch inputfolder with 8 transactions created” will be issued. Say OK. (Click Right),which will take you to initial screen. Click Ctrl+F8 or Press on Execute Button. Now you
are in SM35 Screen. Select the line that is being created to upload andpress Execute (F8) button as shown above. Select “Background” Radio Button. Check in: Extended log Expert Mode Dynpro Standard Size As shown above and the click on “Process” button. See the log and click on Line, if there are any problems in your log. Click on back button
(F3) to come out of the session FOUR TIME, which will take youto Easy Access Screen. Go to Report“S_ALR_87012086” Now You are Viewing the vendor records that you are uploaded. You can also followthe same steps for Change also. Please let me know if you have any doubts.