Application Development 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: 

WHAT is the difference between - direct input method and call transaction

Former Member
0 Kudos

in BDC diff between direct input method and call trasaction method

6 REPLIES 6

Former Member
0 Kudos

Hi,

Call Transaction:

Speed.

Synchronous process.

SYnc. and Async both update possible.

Error handling thro Message structure BDCMSGCOLL.

Single Transaction.

Batch Input Session:

Slow.

Asynchronous process.

SYnc. update possible.

Error log is created in the SM35.

Multiple Transaction possible.

Direct Input.

Without calling the screens but all the validations should be done and only for master datas upload.

Check these Links out

Thanks,

Reward If Helpful.

Former Member
0 Kudos

The most important aspects of the batch session interface are: - Asynchronous processing - Transfers data for multiple transactions - Synchronous database update During processing, no transaction is started until the previous transaction has been written to the database. - A batch input processing log is generated for each session - Sessions cannot be generated in parallel

The most important aspects of the CALL TRANSACTION USING interface are: - Synchronous processing - Transfers data for a single transaction - Synchronous and asynchronous database updating both possible The program specifies which kind of updating is desired. - Separate LUW for the transaction The system performs a database commit immediately before and after the CALL TRANSACTION USING statement. - No batch input processing log is generated.

please reward points.

Thank you,

Gangula Vikram

Former Member
0 Kudos

Hi

http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm

http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/

<b>direct</b>

1) synchronous processing.

2) can tranfer large amount of data.

3) processing is slower.

4) error log is created

5) data is not updated until session is processed.

<b>Call transaction.</b>

1) asynchronous processing

2) can transfer small amount of data

3) processing is faster.

4) errors need to be handled explicitly

5) data is updated automatically

<b>Check these link:</b>

http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm

http://www.sap-img.com/abap/question-about-bdc-program.htm

http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/

http://www.planetsap.com/bdc_main_page.htm

<b>Reward if usefull</b>

Former Member
0 Kudos

Hi,

Direct input method:

1.It doesnot create sessions and stores data directly into the corresponding database tables.

2.Performance is improved in direct input method, as it uses more FM to execute

consistency checks.

3.It can run in back ground to restart it incase of errors.

Call transcation:

1.Entire batch input process takes place online in the program.

2.Synchronous processing.

3.Transfer of data for single transcation is possible and no input processing log is maintained.

4.All the messages are populated in a table having structure similar to BDCMSGCOLL.

regards,

Sandhya.

Former Member
0 Kudos

Hi,

Direct input method:

1.It doesnot create sessions and stores data directly into the corresponding database tables.

2.Performance is improved in direct input method, as it uses more FM to execute

consistency checks.

3.It can run in back ground to restart it incase of errors.

Call transcation:

1.Entire batch input process takes place online in the program.

2.Synchronous processing.

3.Transfer of data for single transcation is possible and no input processing log is maintained.

4.All the messages are populated in a table having structure similar to BDCMSGCOLL.

regards,

Sandhya.

hymavathi_oruganti
Active Contributor
0 Kudos

BDC is Batch Data Communication where data is transferred from legacy system to SAP system. Different methods of BDC are

1. Call Transaction Method.

2. Session Method

3. Direct Input method.

In all the above methods you have to prepare a flat file containing the data in the required format to be uploaded to the SAP system. You need to call the function ' UPLOAD' to do this. Then the contents of the flat file have to copied to your internal table and then u need to call the transaction through which you want to update the database. You internal table should also have the information relating to the structure BDCDATA which is having the details like the module pool program name, screen no. The basic concept of updating the database is same in all the 3 methods but only the method differs.

In session method after the data transfer program is coded, in order to process that particular session you have to go to TC: SM 35 to process the session.

Direct input method have some standard programs that have to executed.....

Direct input programs are available in versions older than 4.6c too.

In which case we opt for direct input or batch input depends upon the situation.

in batch input also we can opt either session method or call transaction. which should be opt depends upon the situation. example.

if we need to update data in two transactions and upon the success of first we need to update second, then as session method will not return sy-subrc, we will opt call transcation.

if u want to call a transaction using itab (like bdctab) , then we go for call transaction as it will be faster.

With call transaction the system process the data more quickly than with batch input sessions. Unlike batch input sessions, CALL TRANSACTION USING does not automatically support interactive correction or logging functions.

So, if u need interactive correction then we opt session method.

generally if large data is to be processed, session method id opted.

Batch Input usually are used to transfer large amount of data. For example you are implementing a new SAP project, and of course you will need some data transfer from legacy system to SAP system. If there is no standard batch input program, direct input program, you would need to write your own data transfer program and it is going to be batch input program.