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: 

synchronous - Asynchronous

Former Member
0 Kudos

pls clear the following confusion:

in BDC terminology: is it correct that--

synchronous means - the present call is not processed until the previous one is processed. Asynchronous is opposite to this.

in case of database update, what does they mean?

In case of RFC, what does these two terms mean?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

synchronous mode

In synchronous update, you do not submit an update request using CALL FUNCTION... IN UPDATE TASK. Instead, you use the ABAP statement COMMIT WORK AND WAIT. When the update is finished, control passes back to the program. Synchronous update works in the same way as bundling update requests in a subroutine (PERFORM ON COMMIT). This kind of update is useful when you want to use both asynchronous and synchronous processing without having to program the bundles in two separate ways.

Asynchronous mode

A typical SAP system installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database. If, in a dialog work process, the function modules stored in interim storage through CALL FUNCTION ... IN UPDATE TASK are released for processing by means of the ABAP statement COMMIT WORK, the dialog work process will not wait for the update process to finish. This kind of update is called asynchronous update.

or

check this link.................

hope this may help you......

regards,

praveena.

3 REPLIES 3

Former Member
0 Kudos

Hi,

If you consider a TCODE then it may update many tables. FOr eg MM01 it will update MARA , MAKT etc.

So SYNCHRONOUS UPDATE means the PARENT TABLE will wait untill the CHILD tables are updated.

ASYNCHRONOUS mean the PARENT TABLE will not wait untill all the child tables are updated.

Reward points if helpful.

Thanks and regards.

Former Member
0 Kudos

hi,

synchronous mode

In synchronous update, you do not submit an update request using CALL FUNCTION... IN UPDATE TASK. Instead, you use the ABAP statement COMMIT WORK AND WAIT. When the update is finished, control passes back to the program. Synchronous update works in the same way as bundling update requests in a subroutine (PERFORM ON COMMIT). This kind of update is useful when you want to use both asynchronous and synchronous processing without having to program the bundles in two separate ways.

Asynchronous mode

A typical SAP system installation contains dialog work processes and at least one update work process. The update work processes are responsible for updating the database. If, in a dialog work process, the function modules stored in interim storage through CALL FUNCTION ... IN UPDATE TASK are released for processing by means of the ABAP statement COMMIT WORK, the dialog work process will not wait for the update process to finish. This kind of update is called asynchronous update.

or

check this link.................

hope this may help you......

regards,

praveena.

Former Member
0 Kudos

Hi.

Synchronous and Asynchronous methods, both are used to transfer date from one system to other system.

In synchronous method of transfering data, sender will send data to receiver but waits until it receives acknowledgement from receiver. Where in asynchronous method of transfering data sender need not waits for acknowledgement.

In case of database updation: In synchronous method of transfering SY-SUBRC will be set to ZERO only when CHECK table and all related tables get updated. Where in Asychronous method of transmssion SY-SUBRC will be set to ZERO once CHECK table updation is completed irrespective of related tables.

PLZ Award Points, If useful.

Regards.