Question: why lsmw is used in sap?
Answer: LSMW is a tool that supports the transfer of data from non-SAP systems ("Legacy Systems") to SAP R/3 systems. ... Furthermore, the LSM Workbench provides a recording function that allows generating a "data migration object" to enable migration from any required transaction.