You are on page 1of 132

BDC

LSMW K.N.SANJAY
SAP
TRAINEE
BDC = ?
BDC (BATCH DATA COMMUNICATION) is a
procedure which is used to transfer or upload data
from NON-SAP SYSTEM to SAP SYSTEM.

BDC is a standard technique for transferring


LARGE sets of data which is available in
ELECTRONIC form.
ADVANTAGES OF BDC
 NO MANUAL INTERACTION is required
during data transfer.

 BDC ensures DATA INTEGRITY.

 The transaction flow is simulated and the data


is transferred as if it were entered online.

 We canEASILY make CHANGES and RECTIFY


ERRORS according to our client needs.
BASIC BDC FLOW :

SAP TRANACTION
DATA TRANSFER
METHODS
 Method 1 - >CALL TRANSACTION

 Method 2 - > BATCH INPUT SESSION

 Method 3 - > DIRECT


 SESSION METHOD.

1) synchronous processing.
2) can transfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.

 CALL TRANSACTION.

1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
DISPLAY MODE UPDATE MODE
BDCDATA
BDCMSGCOLL
BDC session function modules

• BDC_OPEN_GROUP
• BDC_INSERT
• BDC_CLOSE_GROUP
T-CODE :-> SHDB

Click on new recording


RECORDING NAME

TCode

PRESS ENTER
T – CODE : -> PA30.

MENTION PERNR FOR DATA


TRANSFER

Select info type


Select subtype which you want
click on
upload data and hit enter button
create
enter value for data fields to be
Record and transfer and save
Click save press F3

Coding
generated
from BDC
recorder .
Creating ABAP Report based on recording

SELECT Y0UR CLICK ON PROGRAM


RECORDED MODE IN SHDB TOOL BAR
TYPE PROGRAM
NAME

SELECT FIELD
CONTENTS AS
“TRANSFER
FROM
RECORDING”
Coding
process
BASIS BDC RECORDED REPORT PROGRAM:
DAT = TABULATOR SPACE
PLACE LOOP AFTER PERFORM OPEN_GROUP
PERSS F8
ASSING PATH TO IMPORT LEGACY DATA

click Tabulator space


Press enter
Press enter button
to u get the legacy
data
Extracted legacy data

Press enter button


till u get the next
legacy data
Extracted legacy data

Press enter button


till u get the next
legacy data
Extracted legacy data

Press enter button


to display return
code
Press F3
SESSION BYTES
TRANSFERRED
T-code: SM35
T-CODE :-> SE11 , TABLES : -> PA0006
BDC program without using INCLUDE PROGRAM
LEGACY DATA
T-CODE : SM35

SELECT SESSION
AND CLICK ON
PROCESS
Click
Process to
execute
session
from any of
the
processing
mode
LSMW
[LEGACY SYSTEM MIGRATION
WORKBENCH]
LSMW = ?
 R/3-based tool.
 LSMW also supports conversion of
data.
 Imported into the SAP R/3 system via
batch input, direct input, BAPIs or
IDocs.
 recording function allows to generate a
“data migration object”.
ADVANTAGES OF LSMW

 Because not much technical(ABAP)


effort are required.
 Greatly reduces the amount of
development time.
MAIN FUNCTIONS

1> Read data

2> Convert data

3> Import data


Key Building Blocks for LSMW

 Project
 Sub Project
 Object
A) Structure Relationships
B) Field Assignments
T-CODE : LSMW

click on create button

Create project , subproject ,


object
Press F8 button to
execute
Press F8

To define the project,


subproject and the
required (business) object
and to create recording
function to create a user-
specific
Maintaining Object Attributes 

Click on recording
overview
Create recording :

Enter recording name


Enter transaction code
Mention pernr to
transfer data

Select info type


Select subtype

click
Save.

enter data fields to be


Record and transfer
Field Default values
names

Double click
Enter field name

Delete default value and press enter


Enter field name

Double
click
Enter field name

Double
click
Save and press F3

Default
values
are
removed
PRESS
F3
Click save and press F3

Recording is saved with the recording name


specified
We define the structures
and fields of the project.
These describe the
transfer file and must have
the same format in the
export program. You then
relate the structures and
fields of the SAP system to
those of the project.
MAINTAIN SOURCE STRUCTURE :

CLICK ON CREATE BUTTON ENTER STRUCTURE NAME


CLICK ON SAVE AND PRESS F3
MAINTAIN SOURCE FIELDS :

CLICK ON TABLE MAINTENANCE

PLACE CURSOR ON STRUCTURE


Assign field-name, type,
length as of in info type.
Click save and
press F3
Maintain structure relations:

Saves and press F3


Assigning field mapping
and conversion rule for
recorded fields
Maintain field mapping and conversion rule :

Select recorded fields and


click on source fields
Double click on source fields
Repeat the steps for
other recorded field
Click on save and press F3
The system generates
the conversion program
from the structure and
field relationships as well
as the conversion rules.

SKIP 6 th STEP
data conversion file is
generated out of the
project data to be migrated
SPECIFY FILES :

click on create button

Place a cursor on a LEGACYDATA


ASSINGN LEGACY DATA PATH

Select delimiter which you


have used in legacy data
Click save button and press F3
Assigns the files
already defined to
the source structures
ASSIGN FILES :

Save the legacy text to


structure
And press F3
Read data :

Press F8
press F3

READED
DATA
DISPLAY READ DATA:

PRESS ENTER
press F3

Imported legacy data


The file of read
data is transferred
to the file of
converted data
during migration
CONVERT DATA :

PRESS F8
press F3

CONVERTED DATA
DISPLAY CONVERTED DATA:

PRESS ENTER
press F3

Legacy text
data
Preparation for data
import by means of
the standard batch
input program
CREATE BATCH INPUT SESSION:

CLICK ON BATCH INPUT


FOLDERS
AND PRESS F8
Press enter
PRESS F8
CLICK ON PROCESS

SELECT SESSION
SELECT PROCESSING MODE
PRESS ENTER
Press enter button
to u get the legacy
data
Updated legacy text
Press enter button
to u get next
legacy data
Updated legacy text
Press enter button
to u get next
legacy data
Updated
Press enter button
legacy text to get next
screen
QUESTIONS ? / ?

THANK YOU..

You might also like