Handling Multiple Recordings in LSMW
Handling Multiple Recordings in LSMW
Handling Multiple Recordings in LSMW
By Dhanalakshmi Dhivanand
Target Audience:
The readers must be able to create LSMW and they should be familiar with ABAP report
programming.
Purpose of this tutorial:
This Blog explains on how to use Multiple Recordings in LSMW. This is applicable for the
transactions which has multiple access sequences like VK11, TK11, etc. (Pricing Conditions,
Freight Conditions, etc.)
Introduction:
LSMW is the SAP provided plug-in, in which users can upload mass data. If the requirement
does not suit the standard available programs in SAP LSMW, users can create their own
recordings for the transactions through LSMW recording.
TCODE: LSMW
Create new Project, Sub Project and Object:
Main Screen:
Step 1: Maintain Object Attributes
Execute Maintain Object Attributes step and create the recording. In this example, let us create
Pricing conditions for the condition type, which has 2 access sequences.
Select Batch Input Recording radio button and click on the Overview button as shown in the
below screenshot.
From the appearing screen, click on the Create button to start with your recording.
Press Enter, you will get a pop up, where you can enter the transaction code.
Provide values and click on save in VK11 transaction for 1st access sequence.
Sample input is given in the below screen for recording.
When the transaction is saved, Batch input recording screen appears as shown in the below
screenshot.
Click on Default ALL button, you will get the corresponding FIELD name and description for the
recorded parameters. Save it.
Recording for the first Key combination (Radio Button) has been completed
The difference between 1st and 2nd access sequence is the number of fields. In the 2 nd access
sequence, Sales Document Type is the difference.
Click here to continue...
Click Default All to map the field name and description for all the recorded parameters.
Save it. Now recording is done for the second Key Combination(Radio Button)
Go back to the Object Attributes screen and enter the recording names in Recording field as
show in the below screenshot.
Click on the Table Maintenance button and add fields to the source structure.
Double Click on AUART field, in the appearing field editor, write the below code.
Place the cursor on source file and click on the Create Assignment button.
In this step, all the data will be read from Presentation server.
Execute it.
To ensure that all the data have been read properly, execute this step.
This step will actually executes the conversion program, which was done in field mapping step.
Click on Execute Button. The below application server path has the converted data.
According to the data, first access sequence is selected and data is filled in the screen as shown
in the below screenshot.
Sample Data:
Click here for the test data used.
Summary:
As a result of this tutorial, the user will be able to
Cond.Type
SELKZ
Val.From
ZSAL
X
1000
12/31/9999
ZSAL
X
1000
12/31/9999
VKORG
AUART
Val.To
ZCO
20
10
Amount UoM
Per
Unit
USD
MSC
12/29/2011
USD
MSC
12/29/2011