BDC Step-by-Step. Applies to: Summary. Author Bio SAP ABAP

Similar documents
SAP BI Generic Extraction Using a Function Module

Reverse Transport Mechanism in SAP BI

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

LSMW: Upload Master Data using Batch Input Recording

Step by Step Guide for Language Translation Tool

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Restricting Search Operators in any Search View

Working with SAP BI 7.0 Data Transfer Process (DTP)

ABAP How To on SQL Trace Analysis

SAP FI - Automatic Payment Program (Configuration and Run)

Deploying Crystal Reports on Top of a SAP BI Query

ALE Settings, for Communication between a BW System and an SAP System

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Deleting the User Personalization done on Enterprise Portal

How to Assign Transport Request for Language Translation?

Display Options in Transaction SE16

Creating Transaction and Screen Variants

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

This article demonstrates in a step-by-step process to write ABAP Reports that use BAPI function modules.

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

Quick Viewer: SAP Report Generating Tool

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Embedding Crystal Reports inside ECC ALV Reports

How to Modify, Create and Delete Table Entries from SE16

SAP CRM Campaign Automation

SPDD & SPAU Adjustments Handbook

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Web Dynpro ABAP: ALV and Table in Popup Window

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

Release Strategy Enhancement in Purchase Order

How to Create an ecatt?

Guidelines for Effective Data Migration

ALV List with Radio Buttons

Step by Step guide of Report-to- Report Interface in BW Reporting

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

ABAP Debugging Tips and Tricks

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

Creating New Unit of Measure in SAP BW

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

SAP BW 7.3: Exploring Semantic Partitioning

SAP CRM-BW Adapter an Overview

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

SAP CRM Middleware Configurations

Creating Content Using SO10 Objects and Text Symbols

SAP Workflow in Plain English

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

Converting and Exporting Data in XML Format

Understanding DSO (DataStore Object) Part 1: Standard DSO

First step to Understand a Payroll Schema

Web Dynpro: Multiple ALV Grids and Layouts in ALV

How to Load Data from Flat Files into BW PSA

Merge PDF files in ABAP

Table of Content. SAP Query creation and transport Procedure in ECC6

Multi Provider Creation Based on Sales and Planning Info Cubes

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

ABAP Proxy Interfacing

Configuration of Enterprise Services using SICF and SOA Manager

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

Integration of SAP R/3 with BO Universe Using Data Federator Connector

Invoice Collaboration: Self Billing Invoice

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Connecting to SAP BW with Microsoft Excel PivotTables and ODBO

SAP CRM 7.0 E2C Setup: CRM via Toolset

Inventory Management (0IC_C03) Part - 3

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

How to Generate Stack Xml for Ehp4 and Above Upgrade

Automating Invoice Processing in SAP Accounts Payable

Currency Conversion using Variables in SAP BI -Reporting

Dynamic Authorization Concept and Role Assignment in BI

Step by Step Guide to Create a Generic Datasource Based on Infoset Query Populated Via External Program

BW Performance Monitoring

Direct Subcontracting Process (SAP SD & MM)

Creation and Configuration of Business Partners in SAP CRM

Extractor in R/3 and Delta Queue

Data Extraction and Retraction in BPC-BI

Mandatory Field Check in Web Dynpro- ABAP

Compounding in Infoobject and Analyzing the Infoobject in a Query

Sales Commission Calculation & Settlement Handling through Order Processing

Inventory Management in SAP BW

Configuring HTTPs Connection in SAP PI 7.10

SAP NetWeaver Developer Studio 7.30 Installation Guide

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

EzyScript User Manual

Process Controlled Workflow SRM 7.0 (Using BRF)

Customer Exit Variables in SAP BW/BI Reports First day of the Current/Previous Month

Query OLAP Cache Optimization in SAP BW

Integrating SAP CRM with the SAP R/3 HR module

Order Split Usage in Production Orders

Step By Step Procedure to Create Logical File Path and Logical File Name

Different Types of Alerts for Process Chains. Table of Content

Splitting the Custom Container & Display more than one ALV

Case Study of a Segregation of Duties Project

Solution Manager Service Desk an End-to-End Helpdesk Solution

Integrated Testing Solution Using SAP Solution Manager, HP-QC/QTP and SAP TAO

Transcription:

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. 2007 SAP AG 1

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 BDC Step-by-Step 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 2007 SAP AG 2

Data Transfer Methods BDC Step-by-Step 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. 2007 SAP AG 3

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

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. 2007 SAP AG 5

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 2007 SAP AG 6

2007 SAP AG 7

2007 SAP AG 8

2007 SAP AG 9

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: 2007 SAP AG 10

1. Create an internal table for above fields in the report after Include bdcrecx1. BDC Step-by-Step 2. Next call upload function after start-of-selection 2007 SAP AG 11

3. Put Loop after perform open group BDC Step-by-Step Close loop using Endloop. 4. Now replace the constants in perform statement within loop by internal table name 2007 SAP AG 12

With field name. Make the values used in recording in. Then Save, Activate BDC Step-by-Step This is your data in MS-Excel. This order must be in the Internal table of ABAP report. 2007 SAP AG 13

Unformatted Excel BDC Step-by-Step 2007 SAP AG 14

Select Text Now Give respected Length for each fields. By placing Cursor in each column, Right Click, Select Column Width. 2007 SAP AG 15

Since LIFNR are 16 give that width. BDC Step-by-Step After that save the excel file. And save a copy as Formatted text space delimited 2007 SAP AG 16

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. 2007 SAP AG 17

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. 2007 SAP AG 18

Testing BDC Step-by-Step FK03 -> Give Vendor no, Comp code. Enter. Select desired radio button and enter 2007 SAP AG 19

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. 2007 SAP AG 20