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 Session Method

Former Member
0 Likes
507

Hi Everybody,

Why Session Method(BDC) is used to upload large amount of data, whereas Call Transaction(BDC) is used to upload less amount of data?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
474

Hi Satyajit,

Session method: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous.

Call Transaction method: The records are immediately added to the database table. sy-subrc is returned to 0 if succesful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous.

Reg,

Siva

3 REPLIES 3
Read only

Former Member
0 Likes
475

Hi Satyajit,

Session method: The records are not added to the database until the session is processed. sy-subrc is not returned. Error logs are created for error records. Updation in database table is always Synchronous.

Call Transaction method: The records are immediately added to the database table. sy-subrc is returned to 0 if succesful. Error logs are not created and hence the errors need to be handled explicitly. Updation in database table is either Synchronous or Asynchronous.

Reg,

Siva

Read only

Former Member
0 Likes
474

Hi Satyajit,

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

In u2018Call Transactionu2019, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling. It can also be used for real-time interfaces and custom error handling & logging features.

Batch Input Sessions, the ABAP program creates a session with all the transactional data, and this session can be viewed, scheduled and processed (using Transaction SM35) at a later time. The latter technique has a built-in error processing mechanism too.

Reg

Siva

Read only

Former Member
0 Likes
474

Hi,

as per your question ,generally its depence on the developer ,and why you go for session method ,if the large data is there background job schedule and error log is created automatically in sm35.

calltransaction method:its also depends on the developer ,we have write the logic for error log .

finally first time you are uploading the data through sap database session method is used as per my knowledge.

check below link for overview of bdc

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&;

Regards,

Madhu