How to Create LSMW in SAP Explained in Simple Steps | LSMW for Condition Records in SAP SD Module

Опубликовано: 21 Октябрь 2024
на канале: All About SAP
93,900
724

#AllAboutSAP #LSMW #BulkMasterData

Please subscribe to #AllAboutSAP for more SAP Videos
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)

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.

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

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.

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.

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.

Source: https://www.guru99.com/what-is-sap-ls...