Online Tutorials & Training Materials | STechies.com
Register Login

Differences between Call Transaction and Session Method in BDC

|| || 4

Differences between Call Transaction and Session Method in BDC
Stechies

Call Transaction vs Session Method

In session method we transfer data from internal table to database table though sessions.

Call Transaction is a techniques similar to session method, while batch input is a two step procedure, call transaction does both steps online one right after the other, we can restart the system.

Syntax : CALL TRANSACION USING MODE UPDATE Messages into

SESSION METHOD CALL TRANSACTION METHOD
 

SESSION METHOD CALL TRANSACTION METHOD
Data is not updated in database tables Immediate Updating in Database
unless session processed table.
No Sy - Subrc is returned Sy - Subrc is returned
Error Log is created for error records Error need to be handled explicitly
Updation in databse table is always Synchronomous Updation in databse table is Asyncronomous


Read Here for More SAP ABAP Interview Questions


Comments

  • Sonia Barwar
    16 Nov 2017 5:17 pm

    Batch Input Vs. Call Transaction

    • In Batch input many transactions can be executed, where as in Call transaction only one transactioin can be executed.
    • Batch input is a background process, Call transaction can be either background or foreground .
    • Batch input is Synchronous process, Call transaction is both Asynchronous & Synchronous.
    • Batch input Sessions cannot be runed parallel.
    • Log file is generated automaticly in Batch input, errors can be found through BDCMSGCOLL.
    • Batch input works for multiple applications where as call transactions doen't work
    • Batch input has an implicit log file with it. where as call transaction doesn't have
    • Batch input has sy-subrc check with the database where as call transaction doesn't have so call transaction is fast.
  • Nitesh Singh
    16 Nov 2017 5:21 pm

    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.

  • Nitesh Singh
    20 Nov 2017 3:57 pm

    We can use two methods to perform Batch Data Communication(BDC):

    Call Transaction Method: In Call Transaction method we call the transaction in BDC program itself. If we want this program is executed by some one else then we need to expose the code to him. Call Transaction Method Works in Foreground. No Display Mode is equal to Background Processing in call transaction method. Call Transaction Method can handle only one Application at a time. In Call Transaction Method no Log File by Default. We have to design Log File by using BDCMSGCOLL. Call Transaction Method Updates the Database Asynchronously. 

    (Note: Asynchronous updation is Faster than Synchronous)
     
    Batch Session Method: On the other hand in batch session method we create a session which can be executed at any time by any authorized person without exposing the code of the program. Session Method works in Background and as well as in Foreground. Session Method can handle Multiple Applications at a time. Session Method holds Log File by Default. Session Method Updates the Database Synchronously. 

  • 22 Nov 2017 1:34 pm

    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

Related Articles

0.0147 seconds.