Batch Data Communication

Go down

Batch Data Communication

Post  govind on Mon Mar 12, 2012 6:37 pm

BDC is an Conversion method.

3 levels where data gets handled.

1)Presentation Level
2)Application Level
3)Database Level

GUI_UPLOAD and GUI_DOWNLOAD these function module used to hadle data from the presentation level. Or you can use class CL_GUI_FRONTEND_SERVICES in that you have two methods GUI_UPLOAD and GUI_DOWNLOAD.
To handle data at application level you must use DATASET statement.
Application Server Tcode-AL11.
Code:
 
OPEN DATASET < dataset_name > IN TEXT MODE ENCODING DEFAULT.
READ DATASET < dataset_name > INTO < work_area >.
TRANSFER < work_area > TO < dataset_name >.
CLOSE DATASET < dataset_name >.
TRANSFER is the only statement in ABAP that doesn't return 'SY-SUBRC'.
To update data at the database level we use three methods
1)Call Transaction Method-
Code:

CALL TRANSACTION ‘<T_CODE>’ USING IT_BDCDATA MODE ‘A/E/N’ UPDATE ‘S/A’ MESSAGES INTO IT_BDCMSGCOLL.
2)Session Method-
Use Function Modules
BDC_OPEN_GROUP
BDC_INSERT
BDC_CLOSE_GROUP
3)Direct Input Method-

govind
Admin

Posts : 54
Join date : 2012-01-31

Back to top Go down

Re: Batch Data Communication

Post  Admin on Sun Apr 15, 2012 12:27 pm

BDC is used to transfer data from SAP to SAP system or from a non-SAP system to SAP system.
It uses the normal Transaction codes to transfer the data.

This method is used to transfer large amount data that is available in electronic form.

There are two types of methods offered by SAP for BDC

First method is called the “Classical Method”. In this method, the data that is read by the BDC
program from a sequential dataset file is stored in a batch-input session. To run the transactions in
the session, you need to execute the session.

You can start and monitor the session from System -> Services -> Batch Input or have the
session run in the background.

This method uses the function module BDC_OPEN, BDC_INSERT and BDC_CLOSE to
generate the sessions

In the second method, BDC uses the ABAP statement CALL TRANSACTION USING statement
to run a transaction.

In this method, BDC does not create a session
Both the above methods need a common data structure for storing the instructions and data for
SAP transactions. This structure is defined as the BDCDATA in the dictionary

To transfer the data from the non-SAP system to an SAP System, you would have to write a
ABAP program that would export the data to a sequential dataset file. The data in this file should
be stored in a format acceptable to SAP batch input program

To transfer data from an SAP system to another SAP system you may use RFC or CPI-C.

The data transfer program should convert the data that has to transfer into the SAP system as
required by the SAP data structure or the transactions using it.

A conversion of the data types could be necessary at times. In case of data type mismatch,
convert the data types to type C.

Also the data transfer program should be able to export the data in SAP format to a sequential
file. The BDC program reads the data from this file during the upload of the data into the SAP
system

Admin
Admin

Posts : 92
Join date : 2012-01-26

http://mysaplab.forumotions.in

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum