Example: stock market

BDC Step-by-Step - Archive

BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 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.

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.

Tags:

  Abap

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of BDC Step-by-Step - Archive

1 BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 2 Table of Contents Overview: How It Works .. 2 Steps in data 2 Data Transfer Methods .. 3 Step-by-Step 3 Task 1: 3 Task 2: Creating abap Report based on recording 6 Task 3: Writing abap report to do data transfer .. 10 Testing .. 19 Disclaimer and Liability 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.

3 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 | BUSINESS PROCESS EXPERT COMMUNITY | 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.

4 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 4 2.

5 You will get the following screen, Give the selection screen inputs as below, finally Save. BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 6 Task 2: Creating abap Report based on recording done Now select your Recording and press Create program icon.

6 You will be asked to fill the following selection screens BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 7 BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 8 BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 9 BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 11 1.

7 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 | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 13 With field name. Make the values used in recording in . Then Save, Activate This is your data in MS-Excel.

8 This order must be in the Internal table of abap report. BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 14 Unformatted Excel BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 17 Give OK, Yes, Then Close Excel by giving No.

9 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 | BUSINESS PROCESS EXPERT COMMUNITY | 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 | BUSINESS PROCESS EXPERT COMMUNITY | 2007 SAP AG 19 Testing FK03 -> Give Vendor no, Comp code.

10 Enter. Select desired radio button and enter BDC Step-by-Step SAP DEVELOPER NETWORK | BUSINESS PROCESS EXPERT COMMUNITY | 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.