Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC

Former Member
0 Likes
581

This lalitha .

I want to know data is transfered using BDC in real time .

please mail me the steps clearly .

ThankU .

4 REPLIES 4
Read only

Former Member
0 Likes
549

<b>What is BDC programming?-</b>

Transferring of large/external/legacy data into SAP system using Batch Input programming. Batch input is a automatic procedure referred to as BDC(Batch Data Communications).The central component of the transfer is a queue file which receives the data vie a batch input programs and groups associated data into “sessions”.

<b>What are the functional modules used in sequence in BDC?-</b>

These are the 3 functional modules which are used in a sequence to perform a data transfer successfully using BDC programming: BDC_OPEN_GROUP - Parameters like Name of the client, sessions and user name are specified in this functional modules. BDC_INSERT - It is used to insert the data for one transaction into a session. BDC_CLOSE_GROUP - This is used to close the batch input session.

<b>3. What should be the approach for writing a BDC program? </b>

ANS:-

STEP 1: CONVERTING THE LEGACY SYSTEM DATA TO A FLAT FILE to internal table CALLED "CONVERSION".

STEP 2: TRANSFERING THE FLAT FILE INTO SAP SYSTEM CALLED "SAP DATA TRANSFER".

STEP 3: DEPENDING UPON THE BDC TYPE i)call transaction(Write the program explicity)

ii) create sessions (sessions are created and processed.if success data will transfer).

<b>Hope this is helpful, Do reward points.</b>

Read only

Former Member
0 Likes
549

Hi Babu,

I given the BDC program in the below, if it is not match with ur requirement.

Do following steps:

1. go to transaction SHDB and do Recording of transaction MM01

2. Save the recording

3. Create Program using recording in the same transaction of SHDB.

4. Read input file and modify the field mapping.

Hope these steps will help you.

All the Best!

start-of-selection.

perform open_dataset using dataset.

perform open_group.

do.

read dataset dataset into record.

if sy-subrc <> 0. exit. endif.

perform bdc_dynpro using 'SAPLMGMM' '0060'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-AENNR'.

perform bdc_field using 'BDC_OKCODE'

'AUSW'.

perform bdc_field using 'RMMG1-MBRSH'

record-MBRSH_001.

perform bdc_field using 'RMMG1-MTART'

record-MTART_002.

perform bdc_field using 'RMMG1-AENNR'

record-AENNR_003.

perform bdc_field using 'RMMG1-MATNR'

record-MATNR_004.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(15)'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'MSICHTAUSW-KZSEL(01)'

record-KZSEL_01_005.

perform bdc_field using 'MSICHTAUSW-KZSEL(02)'

record-KZSEL_02_006.

perform bdc_field using 'MSICHTAUSW-KZSEL(03)'

record-KZSEL_03_007.

perform bdc_field using 'MSICHTAUSW-KZSEL(04)'

record-KZSEL_04_008.

perform bdc_field using 'MSICHTAUSW-KZSEL(05)'

record-KZSEL_05_009.

perform bdc_field using 'MSICHTAUSW-KZSEL(06)'

record-KZSEL_06_010.

perform bdc_field using 'MSICHTAUSW-KZSEL(08)'

record-KZSEL_08_011.

perform bdc_field using 'MSICHTAUSW-KZSEL(09)'

record-KZSEL_09_012.

perform bdc_field using 'MSICHTAUSW-KZSEL(12)'

record-KZSEL_12_013.

perform bdc_field using 'MSICHTAUSW-KZSEL(13)'

record-KZSEL_13_014.

perform bdc_field using 'MSICHTAUSW-KZSEL(14)'

record-KZSEL_14_015.

perform bdc_field using 'MSICHTAUSW-KZSEL(15)'

record-KZSEL_15_016.

perform bdc_dynpro using 'SAPLMGMM' '0070'.

perform bdc_field using 'BDC_CURSOR'

'MSICHTAUSW-DYTXT(01)'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_dynpro using 'SAPLMGMM' '0080'.

perform bdc_field using 'BDC_CURSOR'

'RMMG1-VKORG'.

perform bdc_field using 'BDC_OKCODE'

'=ENTR'.

perform bdc_field using 'RMMG1-WERKS'

record-WERKS_017.

perform bdc_field using 'RMMG1-LGORT'

record-LGORT_018.

perform bdc_field using 'RMMG1-VKORG'

record-VKORG_019.

perform bdc_field using 'RMMG1-VTWEG'

record-VTWEG_020.

perform bdc_dynpro using 'SAPLMGMM' '4004'.

perform bdc_field using 'BDC_OKCODE'

'=SP02'.

perform bdc_field using 'MAKT-MAKTX'

record-MAKTX_021.

perform bdc_field using 'MARA-MEINS'

record-MEINS_022.

perform bdc_field using 'MARA-MATKL'

record-MATKL_023.

perform bdc_field using 'MARA-MTPOS_MARA'

record-MTPOS_MARA_024.

perform bdc_field using 'BDC_CURSOR'

'MARA-GEWEI'.

perform bdc_field using 'MARA-BRGEW'

record-BRGEW_025.

perform bdc_field using 'MARA-GEWEI'

record-GEWEI_026.

perform bdc_field using 'MARA-NTGEW'

record-NTGEW_027.

perform bdc_dynpro using 'SAPLMGMM' '4004'.

perform bdc_field using 'BDC_OKCODE'

'=SP03'.

perform bdc_field using 'BDC_CURSOR'

'MAKT-MAKTX'.

perform bdc_field using 'MAKT-MAKTX'

record-MAKTX_028.

perform bdc_dynpro using 'SAPLCLCA' '0602'.

perform bdc_field using 'BDC_CURSOR'

'RMCLF-KLART'.

perform bdc_field using 'BDC_OKCODE'

'ENTE'.

perform bdc_field using 'RMCLF-KLART'

record-KLART_029.

perform bdc_dynpro using 'SAPLCLFM' '0500'.

perform bdc_field using 'BDC_CURSOR'

'RMCLF-STATU(01)'.

perform bdc_field using 'BDC_OKCODE'

'=NEUZ'.

perform bdc_field using 'RMCLF-CLASS(01)'

record-CLASS_01_030.

perform bdc_field using 'RMCLF-STATU(01)'

record-STATU_01_031.

perform bdc_dynpro using 'SAPLCLFM' '0500'.

perform bdc_field using 'BDC_CURSOR'

'RMCLF-PAGPOS'.

perform bdc_field using 'BDC_OKCODE'

'=ENDE'.

perform bdc_field using 'RMCLF-PAGPOS'

record-PAGPOS_032.

perform bdc_dynpro using 'SAPLSPO1' '0300'.

perform bdc_field using 'BDC_OKCODE'

'=YES'.

perform bdc_transaction using 'MM01'.

enddo.

perform close_group.

<b>Reward Points if Useful</b>

Regards

Gokul

Read only

Former Member
0 Likes
549

Hi

BDC stand for BATCH DATA COMMUNICATION

Through this concept we transfer the data into SAP R/3 System

Legacy System -


> R/3 System

Batch input is used to transfer large amounts of data into the

SAP system. In this topic, we will learn the basics of batch input.

There are 2 types of transfers Conversions and interfaces.

Conversions: This type of transfer refers to a one-time transfer from a legacy system to the SAP system. In this case, the “legacy” system is the old system that is being replaced by the SAP system.

Interfaces: This type of transfer refers to an ongoing transfer from a complementary system to the SAP system. In this case, the “complementary” system is a system that will run along side the SAP system.

<b>Use</b>

This is used for uploading the master data and different type of application data from legacy system to SAP R/3 system like as:-

Create Vendor using transaction (“FK01”),

Change Vendor using transaction (“FK02”)

Reading data from application server or presentation server

Presentation -


WS_UPLOAD

server 1

-- ABAP/4 PROGRAM

1

Application -


Read Dataset

server

<b>Dialog Program</b>

A dialog program conducts a dialog with the user. As a result of user input the program executes which in turn displays an output or changes the database in a consistent way.

A transaction code can be connected to dialog program which calls the corresponding program

Procedural steps in data migration

Data analysis

Generate SAP structure

Develop trasfer program

Create sequential file

Creat batch input Program

Process btach input data

Analyse results

The flat file will be created any time

before executing the BDC program

the will be trasferd based on the DAILOG PROGRAMING EXPLAINED above

<b>Reward if useful</b>