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: 

session and call transaction doubt

Former Member
0 Kudos

1. Which is synchronous and which is asynchronous among session method and call transaction method and what is the reason behind it??

1 ACCEPTED SOLUTION

Former Member
4 REPLIES 4

Former Member
0 Kudos

Hi

- synchronous method: it means after CALL TRANSACTION is finished the calling program is waiting for the database is updated really,

- asynchronous method: the calling program doesn't wait for updting, so it'll go on while the dabase is being updated.

So the system uses asynchronous method by default, because it's faster, u should use synchronous method only if you need to read the new data inserted/updated by CALL TRANSACTION.

Max

Former Member

Former Member
0 Kudos

For batch session, processing is asynchronous, while database updates using this method are synchronous.

Call transaction, processing is synchronous, and database updates can be either async or sync (you can specify in your call using UPDATE 'A' or 'S').

You will find detailed information on the differences between batch session and call transaction in the document link below.

http://help.sap.com/saphelp_46c/helpdata/en/fa/097097543b11d1898e0000e8322d00/frameset.htm

Former Member
0 Kudos

Hi,

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.

Regards,

Bhaskar