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

diff between call transaction and batch input session

Former Member
0 Likes
1,197

Hi all,

I have some doubt regarding bdc.

1. what is the main difference between call transation and bathc input sessin. when we will use what. how to decide what we have to use when.

2. Pls provide me program how to upload material master data using MM01. means flat file and and editor programe using views in mm how to write a programe to use views in mm in the programe.

Pls provide some ex.

bai.

5 REPLIES 5
Read only

Former Member
0 Likes
774

Hi Pavan,

SESSION METHOD Vs CALL TRANSACTION

1. Data is not updated in database table unless Session is processed/ Immediate updation in database table.

2. No sy-subrc is returned./ Sy-subrc is returned.

3. Error log is created for error records. /Errors need to be handled explicitly

4. Updation in database table is always synchronous/ Updation in database table can be synchronous Or Asynchronous.

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

Former Member
0 Likes
774

Hi,

Session method.

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.

Call transaction.

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

Check these link:

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

Regards,

Priyanka.

Read only

Former Member
0 Likes
774

Hi Pavan ,

Call Transaction is faster method to upload data into SAP system , but it is generally used when the number of records is less because it is synchronous and it can handle only one record at a time , where as batch processing is asynchronous and used when the amout of data is large.

Advantage with batch processing is that error handling is simpler and better in it.

Regards

Arun

Read only

sonu_p2
Active Participant
0 Likes
774

Hi Pavan,

session method:

1.Data is not updated in database tabel unless session is processed.

2.no sy-subrc is returned.

3.Error log is created for error records.

4.updataion in database table is always synchronous.

call transaction method:

1.Immediate updation in database table.

2.sy-subrc is returned.

3.Errors need to be handled explicitly.

4.Updation in database table can be synchronours or asynchronous.

You can use the Both methods,

instead of explaining everything, i will suggest a way to you, just goto SHDB(Recording) and do the recording for that trasaction code, after completing the recording, save the recording and in the Initail screen of SHDB, you have a pushbutton called PROGRAM, select your recording and press the PROGRAM, so a Program will be generated, just execute that Program, you will get a selection screen, there you see this Program will have an option to run in Call transaction method and Session method, so see the code and understand it ..

<b>Reward points if helpful :-)</b>

Cheers,

Sachin

Read only

Former Member
0 Likes
774

Pavan,

Find below some of the differences between Call Transaction & Batch Input.

Call transaction:

1.Synchronous Processing

2.You can update the database both synchronously and asynchrounously.

3.Transfer of data for individual transaction

4.No batch input session is created.

5.Faster than other batch input techniques.

6.No automatic error log and restart capability is available here.

7.Not recommended for bulk data transfer

Session.

1.Asynchronous Processing

2.Synchronous database updates

3.Transfer of data for multiple transaction

4.Batch input sesssion is created here.

5.Automatic error handling and efficient restart capability incase of error transaction.

6.SAP's standard approach for data transfer

7.Highly recommended for Bulk data transfer.

8.Execution is slower than CALL TRANSACTION.

Direct Input

1.No screen are processed

2.No session is created

3.Data is transferred using standard FM

4.Restart capability is available incase of error provided that the transaction is executed in background

Just check this thread.

Don't forget to reward if useful...