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: 

diff b/w synchronous & asychronous

Former Member
0 Kudos

hi,

what is the difference between sychronous and asychronous processing.

what is the difference between sychronous and asychronous updating.

and what is the diff between processing and updating.

i mean sychronous & asychronous process is same in

processing and updating.

what is the local update in call transaction.

thanks in advance.

vsreddy.

5 REPLIES 5

Former Member
0 Kudos

Hi VSR,

Meaning of synchronous and Asynchronous remains same everywhere in SAP. Either a process or update. Normally update is referred to database and process is referred to LUW/s.

Synchronous means 'all or none' i.e. Either everything is updated or nothing is updated.

Asynchronous means failure in one part doesn't affect on others.

Simplest and practical example that we use 'S' or 'A' mode in BDC.

If the bach is of 1000 documents to be posted, and we call transaction with <b>'S' mode. Failure in let's say, 343th document will not even post previous 342</b> documents, neither will go ahead.

If we use <b>'A' mode, all 1000 records except 343rd</b> record will be updated. i.e total 999 records will be updated.

All SAP processes of documentation posting is synchronous process. Where the other status related updates are Asynchronous processes.

You can revert if more doubts are there...

Regards,

Audy

Former Member
0 Kudos

Hi Sudhakar,

The difference between Synchronus, Asynchronus updating is simple.There are UPDATE, DIALOg work processes to accomplish specified task.

In synchronus Updating ,It will wait for work process to to finish the update .Before completing this update it willnot start another one.

In Asynchronus update, The program does not wait for the work process to finish the update (Asynchronous Update).

It is vwry important in Dialog programming. Because for each dialog step there will be an implicit database COMMIT WORK. If u use this Synchronus updating ,u can write all the updating statements in logical SAP LUW. Then all the update statements executed at one time when the COMMIT WORK statement executd.SO It will update all-OR-none .

In a local update, the update program is run by the same work process that processed the request.You switch to local update using the ABAP statement SET UPDATE TASK LOCAL.

Regds,

Vinsa.R

0 Kudos

Check these threads

Regards

- Gopi

Former Member
0 Kudos

In batch session interface: - Asynchronous processing means Transfers data for multiple transactions - Synchronous database update means during processing, no transaction is started until the previous transaction has been written to the database.

In CALL TRANSACTION: - Synchronous processing means 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.

Best Regards,

Vibha Deshmukh

*Plz mark useful answers

Former Member
0 Kudos

CALL TRANSACTION method you can do either Asynchronous or synchronous.Session by default is Synchronous.

When you use Asynchronous ,once the master table gets affected the Sy-subrc would be returned ' 0'(zero).In ase of synchronous only hwne all relevant table gets affected the Sy-subrc would be set to zero.

Do reward points if it was useful.

Message was edited by:

sudha kumarappan