SAP LSMW stands for Legacy System Migration Workbench. It is a tool provided by SAP (Systems, Applications, and Products) that allows you to migrate data from non-SAP systems to SAP systems.
The LSMW tool provides a structured approach to extract, transform, and load data into SAP systems. It is commonly used during system implementations, data migrations, or system upgrades when data needs to be transferred from legacy systems to SAP.
Creation of Transaction Code from LSMW
There are two other ways to create Tcodes for any LSMW conversion object.
1. Creating Custom Program: A custom program can be created using function module "/SAPDMC/LSM_OBJ_STARTER". After creation of the custom program, a transaction code can be created using that program.
Related Transaction Code:
- Program creation : SE38
- Transaction creation: SE93
Sample ABAP Program:
CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
EXPORTING
PROJECT = 'ZLSMW_PROJECT'
SUBPROJ = 'ZLSMW_SUBPROJECT'
OBJECT = 'ZLSMW_OBJECT'
* X_CALLED_FROM_DXWB = ' '
* EXCEPTIONS
* NO_SUCH_OBJECT = 1
* OTHERS = 2
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
2. Creating Parameter Transaction: Second method to create a Tcode for LSMW is using the steps below provided.
- Create Z-Tcode with Parameter Transaction(SE93).
- In the default values for area, give transaction 'LSMW' and check the box for 'skip initial screen'.
- In the name of screen field area section, provide the following.
/SAPDMC/LSSCREEN-SUBPROJ = <ZSub-Project
/SAPDMC/LSSCREEN-OBJECT = <Zobject>
- Save and Activate
Comments
Post a Comment