Sei sulla pagina 1di 28

New Financial

System Document
3/11/2012

LSMW Recording Method

Author
Alok
Samantaray

Document Control
LSMW Recording Method Page 1 of 28

Project

BSNL

Author(s)

Alok Samantaray

File Name

LSMW Recording Method

Document Location

Document Server

Created

8 JULY 2012

Last Edited

03 March 2015

Number of Pages

30
This document contains information, which is confidential
and proprietary by nature. It is intended for learning
purpose used by Learner. It may not be reproduced or
disclosed to any other party or utilized in any manner
other than that specifically contemplated herein.

Comments

New Financial
This document was
System
data collected by
Configuration
Document

prepared based on information and


Author from various Sources. It
represents suggestions, proposed products and services to
meet the requirements of the organization to the degree
that has been defined and understood at this time.

Document History

Enterprise
VersionStructure
Revision Date

Changed By

Revision Description

Vol. 1

Table of Contents

INTRODUCTION 4
LSMW Recording Method Page 2 of 28

1.1
1.2

Purpose of this document


4
Pre-requisite and Related Documents 4

LSMW RECORDING METHOD 5


2.1
Create Project/Subproject/Object- use t.code LSMW 6
2.2
Maintain Object Attributes
7
2.3
Maintain Source Structure
13
2.4
Create source field
14
2.5
Maintain Structure Relations 15
2.6
Maintain Field Mapping and Conversion Rules
16
2.7
Specify Files 18
2.8
Assign Files 23
2.9
Read Data
24
2.10
Display Read Data
25
2.11
Convert Data 26
2.12
Display Converted Data
26
2.13
Create batch Input session
27
2.14
Execute Batch input session 28
Document End 29

Section 1
LSMW Recording Method Page 3 of 28

Introduction
1.1 Purpose of this document
The purpose of the document is to enhance the knowledge on SAP migration tool -LSMW
batch recording method. It will help to know the SAP standard way to upload master data &
transaction data. It will Step-by-Step Guide for using LSMW to Update master data/financial
transaction Records. After you complete this entire document you can independently
upload transaction data & master data by using SAP standard method by LSMW.
Note! Browsing thru these 14 steps, you may get a feeling that this is a very lengthy and
time-consuming activity. However, for the purposes of demonstration, I have made it
detailed. Although it looks lengthy, actually it takes hardly few hours from start-to-finish!
After playing around with few simple LSMW scripts, you will find it so easy to change and
create more complex ones.

1.2 Pre-requisite and Related Documents


We should have raw data source to upload.
Types of Document

Document Name

Knowledge Document

LSMW recording method

LSMW Recording Method Page 4 of 28

Section 2

LSMW Recording Method

2.1 Create Project/Subproject/Object- use t.code LSMW

LSMW Recording Method Page 5 of 28

Filled up project, sub-project, object field without spacing but description fields
are freely definable with spacing up to certain extent of charter.

LSMW Recording Method Page 6 of 28

2.2 Maintain Object Attributes

LSMW Recording Method Page 7 of 28

LSMW Recording Method Page 8 of 28

LSMW Recording Method Page 9 of 28

LSMW Recording Method Page 10 of 28

LSMW Recording Method Page 11 of 28

LSMW Recording Method Page 12 of 28

2.3 Maintain Source Structure


Give a name and a description to the source structure for header (Figure 4) & for line
(Figure 5).

Figure 4

LSMW Recording Method Page 13 of 28

2.4 Create source field


In this step, you need to list what fields are present in the source structure. The easiest way
is to click on Table Maintenance icon to enter Fieldname, Type and Length for each field
as shown in Figure 4.

LSMW Recording Method Page 14 of 28

2.5 Maintain Structure Relations


You dont want to update any fields in these structures, you need to create a relationship
with source structures. In all, you need to create relationship for four target structures.
Create relationship between source structures for transaction data with these target
structures with icon Create Relationship

Keep Cursor on these four target structures and click on icon Create Relation and
structure relations are maintained as shown in Figure 22.

LSMW Recording Method Page 15 of 28

2.6 Maintain Field Mapping and Conversion Rules

LSMW Recording Method Page 16 of 28

2.7 Specify Files

LSMW Recording Method Page 17 of 28

In this step, we define how the layout of the input file is. The input file is a [Tab] delimited
with the first row as field names. It is present on my PC (local drive) as C:/header.txt. (See
Figure 13.)

LSMW Recording Method Page 18 of 28

LSMW Recording Method Page 19 of 28

LSMW Recording Method Page 20 of 28

LSMW Recording Method Page 21 of 28

Enter, Save & back

2.8 Assign Files


Execute step Assign Files (Figure 15) and the system automatically defaults the
filename to the source structure.

LSMW Recording Method Page 22 of 28

2.9 Read Data


In this step, LSMW reads the data (Figure 16) from the source file (from your PCs local
drive). You have the option to read only selected rows and convert data values to internal
format.

LSMW Recording Method Page 23 of 28

2.10

Display Read Data

This step (Figure 17) is optional. If required, you can review the field contents/value
for the rows of data read by double click on the row.

LSMW Recording Method Page 24 of 28

2.11

Convert Data

This is the step that actually converts the source data (in source format) to a target
format. Based on the conversion rules defined, source fields are mapped to target
fields.

2.12

Display Converted Data

When you convert data, LSMW automatically converts into the appropriate structure
layouts, as required by Standard program (RFBIDL00). (See Figure 27).

LSMW Recording Method Page 25 of 28

Note that if you had only one record in source file, the converted file has four records.
Earlier, creating this input file, so that the standard interface program can read it, was a big
nightmare, the primary reason being that it could have multiple record layouts. Even for a
simple conversion with one input record, you would have to create this complex file with
many record layouts. The advantage of LSMW is that it prepares these multi-layout files
automatically.

2.13

Create batch Input session

Once source data is converted in internal format, you can create a BDC session to process
the updates (Figures 28 and 29). Figure 28 Create BDC Session

LSMW Recording Method Page 26 of 28

2.14

Execute Batch input session

You can execute the BDC session by Run Batch input session. Executing a batch input
session is a standard SM35 transaction for managing BDC sessions. Once you have
successfully executed the batch input session, the financial document are updated in the
system. You can confirm this by viewing the FB03

LSMW Recording Method Page 27 of 28

Document End

LSMW Recording Method Page 28 of 28

Potrebbero piacerti anche