SAP Data Migration Methodology
SAP Data Migration Methodology
Methodology
created by Johnpaul Joseph on Apr 16, 2013 11:33 AM, last modified by Johnpaul
Joseph on Jul 8, 2015 9:56 AM
Version 2
inShare
Note: The terms SAP and R/3 are both use interchangeably to refer to
SAP R/3 system.
Big Five: When referring to the Big Five, it means Material Master,
Customer Master, Vendor Master, Bill Of Materials (BOM) and Routings.
Business Objects: To help in the analysis and transfer process, the
data are not treated as tables or field contents but rather as objects in
term of business operational. These are called Business Objects.
Business Object DC responsible: Responsible of the conversion
process (Legacy data source and integrity, mapping, conversion rules,
etc.) and for the respect of the planned schedule for his Business
Object.
Business Object Owner: The one that owns the information in the
everyday business. This is the person that will make the strategic
choices on functional requirements for the business object and that will
do the final validation of the converted data. Can be identified by
finding “The highest hierarchical person who will be directly and mostly
affected if the business object does not work”
Data Conversion & Data Migration: The data conversion process.
“Data conversion” and “Data Migration” terms are used
interchangeably in the document.
DC: Abbreviation for the data conversion process.
Domain: Functional domain within the project, like Finance, Sales,
Production, etc.
Flat File: A file format used to import data into SAP. The flat file is a
plain text file with a tab separator between fields. It can be easily
generated from Excel or Access.
Intermediate file: An Excel, Access or other type of file, which is
manually manipulated in a process between the LS extraction and the
flat file generation.
LSMW: Legacy System Migration Workbench. It is a SAP tool for
conversion that permits data loading using flat files extracted from the
Legacy System.
Cross reference table or X-Ref table: A table that shows the
relation between fields when one value is related to a parent field. For
example, the "Sales Organization" will be set accordingly to the
material type.
WBS: Work Breakdown Structure.
Overview:
Implementing SAP is an important challenge, both in terms of resources (people, money,
time) and in business process. A lot is at stake and, for most of you, failure is not an
option you can afford. To put all odds on your side, you need a good methodology. One
that will provide you with a realistic planning, a solid organization, a way to manage the
process and control tools to detect and correct slippage before it becomes a problem.
Data type
There are three types of data involved in a SAP system: master data, transactional data,
and historical data.
Master Data. Application master data tends to be more static once defined. Most
master data can be driven by the legacy applications. Examples include vendors,
customers, charts of accounts, assets, bills of materials, material masters, info records,
and so on.
Transactional Data. Transactional data is current and outstanding transaction
data that needs to be captured from the legacy system and defined to the SAP R/3
applications for business process completion. Examples include accounting documents,
open purchase orders, open sales orders, back orders, and so on.
Historical Data. Historical data needs to be brought over from the legacy system
to the SAP R/3 System for reference purposes. Examples include closed purchase orders,
closed sales orders, summary general ledger information, and so on.
Information to complete the conversion plan
Technical Methodology
A special case for Material Master
Material Master involves all the domains and may require anywhere from 20 fields to a
few hundreds depending on the complexity of your implementation. Some fields will be
used by different domains while others will be used by only one domain but its value will
have an impact on functionality used by another domain.
This is the most complex Business Object to document and, at the same time, it is the
one you must start with in you conversion process.
1st step : Selection of the fields by each domain
Get each domain with their consultants to go through the mapping file and look
at the fields for each material type.
The goal here is to see all the fields that are important and ask questions to
understand them. This is done separately by each domain and documented in different
mapping files.
At these points we are not interested about where the values will come from and
how will we get them. JUST GET THE MAPPING DONE and work on understanding what
material master is.
Each time a domain select a field for a specific material type, they must enter
their domain type in the list. Here are some (theoretical) examples of mapping from
MM, PP and SD
In Material Master, some fields can be entered / modified in different views. For
example, the field “Goods receipt processing time in days (MARC-WEBAZ)” exists in
views Purchasing, MRP2 and Quality management. When doing the rules and the load
program, the same field can’t be in different views. To solve this, proceed as follow:
See with all implicated domains who are the lead for the field and decide in which view
the field should be included.
Taking the example of the field “Goods receipt processing time in days (MARC-WEBAZ)”,
it can be decided among the domains to put it in the Purchasing view (and nowhere
else).
These are all the major views involved in Material Master Object:
Basic Data
Alternative UOM
Inspection Text
Classification
Sales Organization
Sales General Plant
Purchasing
Foreign Trade Import & Export
APO Master Data
MRP1 & 2
Quality Management
Accounting
For Eg: A mining Company has CSG’s like Cerro Matoso(CMSA),Met Coal
(MTCO),Base Metals (BASE) etc.,
Based on CSG’s the data need to be split up before loading through LSMW for valuation.
The split logic can be done by Loop Component in Business Objects Data Services
Get the distinct CSG’s in a dataflow.
Assign a variable for the sequence number for the max value and loop from the
initial.
G000 Note that SAP term “Security deposit” equal “Retention” in PRMS
Type of transaction
TYPE field in PRMS :
Partial PMT: “Pay.”
Credit Memo: “Cr M.”
Debit Memo: “Dr M.”
Invoice : “Inv.”
Non A/R cash: “Non AR”
Adjustments: “Adj”
G001 Any other type is an error.
Validation to apply both at extraction and load.
Partial PMT………. must be negative in PRMS, if not ERROR
Credit Memo………must be negative in PRMS, if not ERROR
Debit Memo……….must be positive in PRMS, if not ERROR
Invoice……………..must be positive in PRMS, if not ERROR
G002 Any other type is an ERROR.
LSM Load parameters
KTOPL - Chart of account : CA00
BUKRS – Company code: 0070
GSBER - Business Area : 0040
BUDAT – Posting Date : “05-31-02” or last day of last closed period.
OFFSET – Account (2) : REPRISECL
G003 SKPERR – Skip err : X
Legacy System Migration Workbench (LSMW):
LSMW is used for migrating data from a legacy system to SAP system, or from one SAP
system to another.
Apart from standard batch/direct input and recordings, BAPI and IDocs are available as
additional import methods for processing the legacy data.
The LSMW comprises the following main steps:
Read data (legacy data in spreadsheet tables and/or sequential files).
Convert data (from the source into the target format).
Import data (to the database used by the R/3 application.
But, before these steps, you need to perform following steps:
Define source structure: structure of data in the source file.
Define target structure: structure of SAP that receives data.
Field mapping: Mapping between the source and target structure with
conversions, if any.
Specify file: location of the source file
Methods used for data migration like BDC, LSMW and Call
Transaction
All the 3 methods are used to migrate data. Selection of these methods depends on the
scenario, amount of data need to transfer. LSMW is a ready tool provided by SAP and
you have to follow some 17 steps to migrate master data. While in BDCs Session method
is the better choice because of some advantages over call transaction. But call
transaction is also very useful to do immediate updation of small amount of data. (In call
transaction developer has to handle errors).
SO Bottom line is make choice of these methods based of real time requirements.
These methods are chosen completely based on situation you are in. Direct input
method is not available for all scenarios else, they are the simplest ones. In batch input
method, you need to do recording for the transaction concerned. Similarly, IDoc, and
BAPI are there, and use of these need to be decided based on the requirement.
Try to go through the some material on these four methods, and implement them. You
will then have a fair idea about when to use which.
Difference between lsmw & bdc
BDC- It is Batch data communication. It’s used for data conversion
from legacy system to SAP system. Only technical people can do it.
Tcode is SHDB.
LSMW- It is legacy system migration workbench. Its also used for data
conversion from legacy system to SAP system. But it is role of
functional consultant.
There are 14 steps in LSMW. As soon as you complete the one step, automatically it will
go to next step.
In general you can use LSMW. But if you want to transfer more than 40,000 data, then it
is not possible in LSMW. That time you can take help of BDC
LSMW data migration for sales order VA01 / XD01 customer.