Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW basics

manubhutani
Active Contributor
0 Likes
715

Hi Guru's

1.)can anybody tell me can we create another sub projecvt under a project

and under which scenario

2.) where to declare global data.

3.) where to do the coding for lsmw events like begin_of_transaction

4.) can i do recording of two transactions

5.) if i need to decide the transaction aftyer reading record, how can i do that?

max points will be awrded

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
684

Hi Manu,

go through the following site.it will give you knowledge of lsmw.

http://www.saptechnical.com/Tutorials/LSMW/LSMWMainPage.htm

reward points if helpful.

5 REPLIES 5
Read only

Former Member
0 Likes
684

1. Of course, you can create as many sub-projects under an LSMW project as you wish. Typical use is to distinguish between modules, for example a sub-project for FI, another for HR and so on

2. Go to step 5. Maintain Field mapping, select Extras/Layout from the menu (or Layout button left of blue i button), and click everything ont the pop-up window. Then, you can declare global data by double clicking on GLOBALDATA_ area to enter the editor

3. Other events should appear (see above)

4.You can use as many recordings as you like

5. You can use 2 recordings, then enter code in BEGINOF_RECORD_ area to determine which one will be used. For example, if you do not want to use a certain recording, you can code it like this:

BEGINOF_RECORD (for first recording)

if <condition 1>.

skip_record.

endif.

BEGINOF_RECORD (for second recording)

if <condition 2>.

skip_record.

endif.

This will disregard the first recording completely when condition 1 is met, the same applies to the second for condition 2

Read only

Former Member
0 Likes
685

Hi Manu,

go through the following site.it will give you knowledge of lsmw.

http://www.saptechnical.com/Tutorials/LSMW/LSMWMainPage.htm

reward points if helpful.

Read only

Former Member
0 Likes
684

Hi,

1) We can create subprojects under same project .This situation occurs when you want to reuse the structures, fields and mappings.

For clear details about your questions go to the following link;

[http://saptechnical.com/Tutorials/LSMW/Routines/Page1.htm]

Reward points if helpful.

Thanks and Regards.

Read only

Former Member
0 Likes
684

hi manu,

SAP Data Migration with LSMW

No ABAP effort are required for the SAP data migration. However, effort are required to map the data into the structure according to the pre-determined format as specified by the pre-written ABAP upload program of the LSMW.

The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.

More and more medium-sized firms are implementing SAP solutions, and many of them have their legacy data in desktop programs. In this case, the data is exported in a format that can be read by PC spreadsheet systems. As a result, the data transfer is mere child's play: Simply enter the field names in the first line of the table, and the LSM Workbench's import routine automatically generates the input file for your conversion program.

The LSM Workbench lets you check the data for migration against the current settings of your customizing. The check is performed after the data migration, but before the update in your database.

So although it was designed for uploading of legacy data it is not restricted to this use.

We use it for mass changes, i.e. uploading new/replacement data and it is great, but there are limits on its functionality, depending on the complexity of the transaction you are trying to replicate.

The SAP transaction code is 'LSMW' for SAP version 4.6x.

For those with the older SAP version (4.7 and below), the data migration programs might not have been pre-loaded.

You can download the LSMW at no cost from SAPNet under Services, SAP Methodology and Tools, category Tools.

If you are an existing SAP customer with an OSS ID, you can access the SAP Service Marketplace to download the LSWM for your Basis teams to install to your SAP system: http://service.sap.com/lsmw

The LSM Workbench carries out the following tasks:

Reads the transfer data from one or more files (for example, spreadsheets, sequential files etc.)

Converts the data from the source format into the target format

Note that with background processing, the input file must not be located in the presentation server. Access to presentation server files is only possible when you are working online.

see the below links for more knowledge on it

http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/LSMW_tutorial.html

http://abapprogramming.blogspot.com/2008/03/abap-lsmw-direct-input-method.html

http://saptechnical.com/Tutorials/LSMW/LSMWMainPage.htm

thanks

karthik

reward me points if usefull

Read only

manubhutani
Active Contributor
0 Likes
684

hi

do we need to do the steps of reading data and following

every timew file data is changed?