Batch Data Communication
2 posters
Page 1 of 1
Batch Data Communication
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.
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.
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-
3)Direct Input Method-
govind- Admin
- Posts : 54
Join date : 2012-01-31
Re: Batch Data Communication
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
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
Similar topics
» Can a transparent table exist in data dictionary but not in the data base physically?
» What are the problems in processing batch input sessions? How is batch input process different from processing online?
» Describe data classes and Master data in SAP
» What do you do with errors in BDC batch sessions?
» What are the differences between CALL TRANSACTION and BATCH INPUT SESSION ?
» What are the problems in processing batch input sessions? How is batch input process different from processing online?
» Describe data classes and Master data in SAP
» What do you do with errors in BDC batch sessions?
» What are the differences between CALL TRANSACTION and BATCH INPUT SESSION ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Mon Aug 20, 2012 4:37 pm by Admin
» Difference between Type and Like
Thu Jun 07, 2012 2:40 pm by Admin
» How to handle table control fields in Module Pool program?
Wed May 09, 2012 2:41 am by govind
» Three tables inner join in SAP
Thu May 03, 2012 4:47 pm by Uma_ABAP
» Creating table type in ABAP
Sat Apr 28, 2012 9:03 pm by Uma_ABAP
» Creating user defined types and structures in ABAP
Sat Apr 28, 2012 8:55 pm by Uma_ABAP
» Creating Dynamic Internal Table and Dynamic Field catalog in SAP-ABAP
Fri Apr 27, 2012 11:00 am by Admin
» Copy Custom PF-Status from Standard program to Custom Program in ALV
Thu Apr 26, 2012 9:52 pm by Uma_ABAP
» Calculate/find number of working days between two dates in SAP
Tue Apr 24, 2012 2:06 pm by Uma_ABAP