SlideShare a Scribd company logo
1 of 20
Download to read offline
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 1
BDC Step-by-Step
Applies to:
SAP ABAP
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 important work during SAP implementation projects.
Author(s): Renjith Kumar. P
Company: PRICOL Technologies
Created on: 21 January 2007
Author Bio
P. Renjith Kumar is SAP BI Consultant with PRICOL Technologies. He has extensive cross-functional
experience and has been with end-to-end SAP implementations as ABAP Consultant.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 2
Table of Contents
Overview: How It Works .................................................................................................................. 2
Steps in data transfer....................................................................................................................... 2
Data Transfer Methods.................................................................................................................... 3
Step-by-Step Process...................................................................................................................... 3
Task 1: Recording............................................................................................................................ 3
Task 2: Creating ABAP Report based on recording done............................................................... 6
Task 3: Writing ABAP report to do data transfer ........................................................................... 10
Testing ........................................................................................................................................... 19
Disclaimer and Liability Notice....................................................................................................... 20
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: Create 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
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 3
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 fast 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
Press New Recording, Give Recording name, Give Transaction, And Press Start Recording.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 4
2. You will get the following screen, Give the selection screen inputs as below, finally
Save.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 5
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.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 6
Task 2: Creating ABAP Report based on recording done
Now select your Recording and press Create program icon.
You will be asked to fill the following selection screens
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 7
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 8
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 9
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 10
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:
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 11
1. Create an internal table for above fields in the report after Include bdcrecx1.
2. Next call upload function after start-of-selection
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 12
3. Put Loop after perform open group
Close loop using Endloop.
4. Now replace the constants in perform statement within loop by internal table name
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 13
With field name. Make the values used in recording in “. Then Save, Activate
This is your data in MS-Excel. This order must be in the Internal table of ABAP report.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 14
Unformatted Excel
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 15
Select ‘ Text ‘
Now Give respected Length for each fields. By placing Cursor in each column, Right Click, Select Column
Width.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 16
Since LIFNR are 16 give that width.
After that save the excel file. And save a copy as Formatted text space delimited
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 17
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
Now in next screen Give the .prn file you saved previously. ( .prn must be selected )
Then press Transfer.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 18
You will get following screen, Just Check for correct order of data, if yes, Press Enter
Next Screen comes, Press Enter.
The vendor created. And system shows log. If small errors you can select that from F4 help and run the
report.
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 19
Testing
FK03 -> Give Vendor no, Comp code. Enter. Select desired radio button and enter
BDC Step-by-Step
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 20
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 damages 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.

More Related Content

What's hot

Sap Upgrade Project Brief
Sap Upgrade Project BriefSap Upgrade Project Brief
Sap Upgrade Project Briefvpallapothu
 
Preparing for SAP EHP Upgrade
Preparing for SAP EHP UpgradePreparing for SAP EHP Upgrade
Preparing for SAP EHP UpgradeTony de Thomasis
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdfpimporn
 
ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study SAP Technology
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed NotesAkash Bhavsar
 
Sap Busines Suite At IBM event
Sap Busines Suite At IBM eventSap Busines Suite At IBM event
Sap Busines Suite At IBM eventShekhar Bhartiya
 
Enhancement packages for sap erp what's new in logistics and operations
Enhancement packages for sap erp what's new in logistics and operationsEnhancement packages for sap erp what's new in logistics and operations
Enhancement packages for sap erp what's new in logistics and operationsaminab
 
Korea Koso PLM and Supply Chain
Korea Koso PLM and Supply ChainKorea Koso PLM and Supply Chain
Korea Koso PLM and Supply ChainAras
 
Sap technology & application evolution
Sap technology & application evolutionSap technology & application evolution
Sap technology & application evolutionAshwani Khatri
 
SAP INTRO
SAP INTROSAP INTRO
SAP INTRODr.Ravi
 
SAP Business Blueprint Auto-Generation
SAP Business Blueprint Auto-Generation SAP Business Blueprint Auto-Generation
SAP Business Blueprint Auto-Generation Worksoft
 
Sap upgrade
Sap upgradeSap upgrade
Sap upgradeRam K
 
Introduction to sap erp
Introduction to sap erpIntroduction to sap erp
Introduction to sap erpbabloo6
 
Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130SAP Technology
 
SAP Change Control Management & TR import automation tool
SAP Change Control Management & TR import automation toolSAP Change Control Management & TR import automation tool
SAP Change Control Management & TR import automation toolJustAcademy
 
ERP Case Study - Warehouse Management System
ERP Case Study - Warehouse Management SystemERP Case Study - Warehouse Management System
ERP Case Study - Warehouse Management SystemSharad Srivastava
 

What's hot (19)

Sap Upgrade Project Brief
Sap Upgrade Project BriefSap Upgrade Project Brief
Sap Upgrade Project Brief
 
Preparing for SAP EHP Upgrade
Preparing for SAP EHP UpgradePreparing for SAP EHP Upgrade
Preparing for SAP EHP Upgrade
 
Sap Overview pdf
Sap Overview pdfSap Overview pdf
Sap Overview pdf
 
ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study ASE Semantic Partitions- A Case Study
ASE Semantic Partitions- A Case Study
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
 
Sap Busines Suite At IBM event
Sap Busines Suite At IBM eventSap Busines Suite At IBM event
Sap Busines Suite At IBM event
 
SAP Project Systems with Success Factors
SAP Project Systems with Success FactorsSAP Project Systems with Success Factors
SAP Project Systems with Success Factors
 
Enhancement packages for sap erp what's new in logistics and operations
Enhancement packages for sap erp what's new in logistics and operationsEnhancement packages for sap erp what's new in logistics and operations
Enhancement packages for sap erp what's new in logistics and operations
 
Korea Koso PLM and Supply Chain
Korea Koso PLM and Supply ChainKorea Koso PLM and Supply Chain
Korea Koso PLM and Supply Chain
 
Sap technology & application evolution
Sap technology & application evolutionSap technology & application evolution
Sap technology & application evolution
 
Sap overview
Sap overviewSap overview
Sap overview
 
SAP INTRO
SAP INTROSAP INTRO
SAP INTRO
 
SAP Business Blueprint Auto-Generation
SAP Business Blueprint Auto-Generation SAP Business Blueprint Auto-Generation
SAP Business Blueprint Auto-Generation
 
Sap upgrade
Sap upgradeSap upgrade
Sap upgrade
 
Introduction to sap erp
Introduction to sap erpIntroduction to sap erp
Introduction to sap erp
 
Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130Configuring and using SIDB for ASE CE SP130
Configuring and using SIDB for ASE CE SP130
 
SAP Change Control Management & TR import automation tool
SAP Change Control Management & TR import automation toolSAP Change Control Management & TR import automation tool
SAP Change Control Management & TR import automation tool
 
What is erp
What is erpWhat is erp
What is erp
 
ERP Case Study - Warehouse Management System
ERP Case Study - Warehouse Management SystemERP Case Study - Warehouse Management System
ERP Case Study - Warehouse Management System
 

Viewers also liked

Top Images 2008
Top Images 2008Top Images 2008
Top Images 2008ehpryor
 
Adjectif qualificatif corrigés
Adjectif qualificatif corrigésAdjectif qualificatif corrigés
Adjectif qualificatif corrigésYolandavera3
 
Norwayshow
NorwayshowNorwayshow
Norwayshowehpryor
 
Pamukkale1
Pamukkale1Pamukkale1
Pamukkale1ehpryor
 
(E book)american accent training
(E book)american accent training(E book)american accent training
(E book)american accent trainingSrinivas Dukka
 
tugas logika
tugas logikatugas logika
tugas logikajahrotun
 
where I live
where I livewhere I live
where I liveAnna2008
 
Hiding The Lockheed Plant
Hiding The Lockheed Plant Hiding The Lockheed Plant
Hiding The Lockheed Plant ehpryor
 
1 geomorphology climatology_partial
1 geomorphology climatology_partial1 geomorphology climatology_partial
1 geomorphology climatology_partialSrinivas Dukka
 
spoken english for telugu people 14 pages
spoken english for  telugu people 14 pagesspoken english for  telugu people 14 pages
spoken english for telugu people 14 pagesSrinivas Dukka
 

Viewers also liked (18)

Top Images 2008
Top Images 2008Top Images 2008
Top Images 2008
 
abap book1
abap book1abap book1
abap book1
 
Adjectif qualificatif corrigés
Adjectif qualificatif corrigésAdjectif qualificatif corrigés
Adjectif qualificatif corrigés
 
Norwayshow
NorwayshowNorwayshow
Norwayshow
 
Pamukkale1
Pamukkale1Pamukkale1
Pamukkale1
 
(E book)american accent training
(E book)american accent training(E book)american accent training
(E book)american accent training
 
tugas logika
tugas logikatugas logika
tugas logika
 
MBIA Letter
MBIA LetterMBIA Letter
MBIA Letter
 
Saude Prudente
Saude PrudenteSaude Prudente
Saude Prudente
 
Cobol case study
Cobol case studyCobol case study
Cobol case study
 
where I live
where I livewhere I live
where I live
 
Ssc pdf_cgl_syll
 Ssc pdf_cgl_syll Ssc pdf_cgl_syll
Ssc pdf_cgl_syll
 
Hiding The Lockheed Plant
Hiding The Lockheed Plant Hiding The Lockheed Plant
Hiding The Lockheed Plant
 
2 climatology
2 climatology2 climatology
2 climatology
 
1 geomorphology climatology_partial
1 geomorphology climatology_partial1 geomorphology climatology_partial
1 geomorphology climatology_partial
 
Women
Women Women
Women
 
Traffic Graphics
Traffic GraphicsTraffic Graphics
Traffic Graphics
 
spoken english for telugu people 14 pages
spoken english for  telugu people 14 pagesspoken english for  telugu people 14 pages
spoken english for telugu people 14 pages
 

Similar to Backup%20 domain%20controller%20(bdc)%20step by-step(1)

Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creationyoung moon woo
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsHicham Khallouki
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bishabari76
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by stepPhani Kumar
 
How to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selectionHow to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selectionValko Arbalov
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serverskrishna RK
 
SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfKoushikGuna
 
_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdfssuserfe1f82
 
Sap query creation and transport procedure in ecc6
Sap query creation and transport procedure in ecc6Sap query creation and transport procedure in ecc6
Sap query creation and transport procedure in ecc6bluechxi
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC Syam Sasi
 
Creating new unit of measure in sap bw
Creating new unit of measure in sap bwCreating new unit of measure in sap bw
Creating new unit of measure in sap bwRajat Agrawal
 
How to find_information_on_sap_eam
How to find_information_on_sap_eamHow to find_information_on_sap_eam
How to find_information_on_sap_eamNguyen Hai
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXTKang YAyan
 
Using infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewerUsing infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewerShailendra Surana
 
Using infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewerUsing infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewerbsm fico
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewerotchmarz
 
Trigger bi process chain from ecc
Trigger bi process chain from eccTrigger bi process chain from ecc
Trigger bi process chain from eccObaid shaikh
 
2017 04-05-de-email-s4hana-bickenbach
2017 04-05-de-email-s4hana-bickenbach2017 04-05-de-email-s4hana-bickenbach
2017 04-05-de-email-s4hana-bickenbachKrishnagoud Dasari
 

Similar to Backup%20 domain%20controller%20(bdc)%20step by-step(1) (20)

Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
 
How to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selectionHow to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selection
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
 
Lsmw
LsmwLsmw
Lsmw
 
SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
 
_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf
 
Sap query creation and transport procedure in ecc6
Sap query creation and transport procedure in ecc6Sap query creation and transport procedure in ecc6
Sap query creation and transport procedure in ecc6
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC
 
Creating new unit of measure in sap bw
Creating new unit of measure in sap bwCreating new unit of measure in sap bw
Creating new unit of measure in sap bw
 
How to find_information_on_sap_eam
How to find_information_on_sap_eamHow to find_information_on_sap_eam
How to find_information_on_sap_eam
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
 
Using infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewerUsing infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewer
 
Using infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewerUsing infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewer
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
Query
QueryQuery
Query
 
Trigger bi process chain from ecc
Trigger bi process chain from eccTrigger bi process chain from ecc
Trigger bi process chain from ecc
 
2017 04-05-de-email-s4hana-bickenbach
2017 04-05-de-email-s4hana-bickenbach2017 04-05-de-email-s4hana-bickenbach
2017 04-05-de-email-s4hana-bickenbach
 

Backup%20 domain%20controller%20(bdc)%20step by-step(1)

  • 1. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 1 BDC Step-by-Step Applies to: SAP ABAP 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 important work during SAP implementation projects. Author(s): Renjith Kumar. P Company: PRICOL Technologies Created on: 21 January 2007 Author Bio P. Renjith Kumar is SAP BI Consultant with PRICOL Technologies. He has extensive cross-functional experience and has been with end-to-end SAP implementations as ABAP Consultant.
  • 2. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 2 Table of Contents Overview: How It Works .................................................................................................................. 2 Steps in data transfer....................................................................................................................... 2 Data Transfer Methods.................................................................................................................... 3 Step-by-Step Process...................................................................................................................... 3 Task 1: Recording............................................................................................................................ 3 Task 2: Creating ABAP Report based on recording done............................................................... 6 Task 3: Writing ABAP report to do data transfer ........................................................................... 10 Testing ........................................................................................................................................... 19 Disclaimer and Liability Notice....................................................................................................... 20 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: Create 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
  • 3. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 3 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 fast 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 Press New Recording, Give Recording name, Give Transaction, And Press Start Recording.
  • 4. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 4 2. You will get the following screen, Give the selection screen inputs as below, finally Save.
  • 5. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 5 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.
  • 6. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 6 Task 2: Creating ABAP Report based on recording done Now select your Recording and press Create program icon. You will be asked to fill the following selection screens
  • 7. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 7
  • 8. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 8
  • 9. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 9
  • 10. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 10 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:
  • 11. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 11 1. Create an internal table for above fields in the report after Include bdcrecx1. 2. Next call upload function after start-of-selection
  • 12. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 12 3. Put Loop after perform open group Close loop using Endloop. 4. Now replace the constants in perform statement within loop by internal table name
  • 13. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 13 With field name. Make the values used in recording in “. Then Save, Activate This is your data in MS-Excel. This order must be in the Internal table of ABAP report.
  • 14. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 14 Unformatted Excel
  • 15. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 15 Select ‘ Text ‘ Now Give respected Length for each fields. By placing Cursor in each column, Right Click, Select Column Width.
  • 16. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 16 Since LIFNR are 16 give that width. After that save the excel file. And save a copy as Formatted text space delimited
  • 17. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 17 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 Now in next screen Give the .prn file you saved previously. ( .prn must be selected ) Then press Transfer.
  • 18. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 18 You will get following screen, Just Check for correct order of data, if yes, Press Enter Next Screen comes, Press Enter. The vendor created. And system shows log. If small errors you can select that from F4 help and run the report.
  • 19. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 19 Testing FK03 -> Give Vendor no, Comp code. Enter. Select desired radio button and enter
  • 20. BDC Step-by-Step SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 20 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 damages 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.