Summary
This article demonstrates in a step-by-step process to write Backup Domain Controller (BDC) reports to do data transfer from legacy system, which is vital work during SAP implementation projects.

Table of Contents
Overview: How It Works……………………………………………………………………………
Steps in data transfer……………………………………………………………………………..
Data Transfer Methods……………………………………………………………………………
Step-by-Step Process……………………………………………………………………………..
Task 1: Recording………………………………………………………………………………….
Task 2: Making ABAP Report based on recording done……………………………
Task 3: Writing ABAP report to do data transfer…………………………………………
Testing………………………………………………………………………………………………..
Disclaimer and Liability Notice…………………………………………………………..…….

Overview: How It Works
BDC Reports are used to transfer data from legacy system into SAP system during SAP Implementation. Based on the functional requirements you have to now write a BDC report to upload the legacy data into SAP system.
To Perform Data transfer, we will perform 3 tasks:
Task 1: Do a recording for the transaction by supplying sample data.
Task 2: Make an ABAP report based on the recording done.
Task 3: Now write ABAP code to fetch data from legacy system and store into SAP
System.

Steps in data transfer
1. Analysis and cleanup of data in the non-SAP system
2. Extraction of data from the non-SAP system
3. Mapping the data in SAP format
4. Transferring the data to the SAP System
5. Checking the data

Data Transfer Methods
Call transaction
Asynchronous processing takes place and the transaction is called every time.
Session method
Synchronous processing takes place and a session is prepared, which is to be handled through SM35. Moreover, in Batch Input processing system log is maintained for every transaction. In Call transaction method messages have to be captured at runtime.
Direct input
This is an SAP supplied conversion program that allows very quick loading of certain objects. The disadvantage is that it is not customizable.

Step-by-Step Process
Task 1: Recording
1. Give transaction SHDB ( Transaction Recorder ), this is used to record our transaction

image thumb140 BDC Creation Steps

Press New Recording, Give Recording name, Give Transaction, And Press Start Recording.

image thumb141 BDC Creation Steps

2. You will get the following screen, Give the selection screen inputs as below, finally
Save.

image thumb142 BDC Creation Steps

image thumb143 BDC Creation Steps

image thumb144 BDC Creation Steps

3. The following screen comes when you save, this shows table name and filed name
Which stores the data given in respected selection screen of transaction. Next Press
F3 to come back.

image thumb145 BDC Creation Steps
Task 2: Making ABAP Report based on recording done
Now select your Recording and press Make program icon.

image thumb146 BDC Creation Steps

You will be questioned to fill the following selection screens

image thumb147 BDC Creation Steps

image thumb148 BDC Creation Steps

image thumb149 BDC Creation Steps

image thumb150 BDC Creation Steps

image thumb151 BDC Creation Steps

image thumb152 BDC Creation Steps

image thumb153 BDC Creation Steps

Using SE11 get the Length of the fields. It must be supplied in MS-Excel
Now we are going to Upload the following fields in
First Screen
Vendor No, Company Code, Account Group
Second Screen
Name, Search Parameter, Street, House No, City, Country Code, Region, PO Box
Language, Telephone

Final Screen
Recon Account, Cash Mgmt Group

Task 3: Writing ABAP report to do data transfer
Now Four Steps in ABAP Editor:

1. Make an internal table for above fields in the report after Include bdcrecx1.

image thumb154 BDC Creation Steps

2. Next call upload function after start-of-selection

image thumb155 BDC Creation Steps

3. Place Loop after perform open group

image thumb156 BDC Creation Steps
3. Place Loop after perform open group
Close loop using Endloop.

image thumb157 BDC Creation Steps

4. Now replace the constants in perform statement within loop by internal table name

With field name. Make the values used in recording in “. Then Save, Activate

image thumb158 BDC Creation Steps

image thumb159 BDC Creation Steps

This is your data in MS-Excel. This order must be in the Internal table of ABAP report.

Unformatted Excel

image thumb160 BDC Creation Steps

image thumb161 BDC Creation Steps

image thumb162 BDC Creation Steps

image thumb163 BDC Creation Steps

Now Give respected Length for each fields. By placing Cursor in each column, Right Click, Select Column Width.

image thumb164 BDC Creation Steps

Since LIFNR are 16 give that width.

image thumb165 BDC Creation Steps

After that save the excel file. And save a copy as Formatted text space delimited

image thumb166 BDC Creation Steps

Give OK, Yes, Then Close Excel by giving No.
Now come to ABAP editor and run the report, you will get the screen.
Select Call transaction Radio Button, and run in a mode. Press F8

image thumb167 BDC Creation Steps
Give OK, Yes, Then Close Excel by giving No.
Now come to ABAP editor and run the report, you will get the screen.
Select Call transaction Radio Button, and run in a mode. Press F8

image thumb168 BDC Creation Steps
Now in next screen Give the .prn file you saved previously. ( .prn must be selected )
Then press Transfer.

image thumb169 BDC Creation Steps

You will get following screen, Just Check for right order of data, if yes, Press Enter

image thumb170 BDC Creation Steps

Next Screen comes, Press Enter.

image thumb171 BDC Creation Steps

The vendor made. And system shows log. If small errors you can select that from F4 help and run the report.

Testing
FK03 -> Give Vendor no, Comp code. Enter. Select desired radio button and enter

image thumb172 BDC Creation Steps

image thumb173 BDC Creation Steps
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any hurts caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

share save 171 16 BDC Creation Steps

Related posts:

  1. Overview on steps to create LSMW
  2. Asset Master Data Upload
  3. SAP ABAP BDC Programs Questions 3
  4. SAP ABAP BDC Programs Questions 2
  5. SAP ABAP BDC Programs Questions 1
  6. ABAP Tutorial
  7. Sample Account Assignment in G/L Account
  8. SAP ABAP BDC , LSMW, Conversions Questions
  9. SAP ABAP Interview Questions part 2
  10. Creation of Planning Area in APO
PDF Printer    Send article as PDF