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

Asynchronous and Synchronous

Former Member
0 Likes
796

hi,

pls differentiate Asynchronous and Synchronous and which one is better thank u

4 REPLIES 4
Read only

Former Member
0 Likes
562

Hi,

Please explain your requirement??

Thanks

Naren

Read only

0 Likes
562

in BDC we r using in that what is they r

Read only

Former Member
0 Likes
562

Hi

PerfomanceWise always Asynchronous-Process is better. Hope you know that it will not next Work-process to complete and before itself Commit work will Update the databse. But Synchronous is more stable it will wait for the next work-process to complete then only the Commit work will take place. So the process is always slow.

hope you understood.

Reward All Helpfull Answers......

Read only

Former Member
0 Likes
562

A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.

S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors

one simple example : You are creating sales order from file and also you want to update header text of sales order.

when you want to update sales order header text,you need to use save_text function module ,here you need to pass sales order number.

when you use call transaction update 'A', data will update transaction level and it goes to the next record,here it will not wait for database .

when you use call transaction update 'S',data will update transaction level and it will update database then it goes next record.

if you want to update header text,then you need to use sync update

database commit -

comitt work - it will update data in database sucessfully

roll back - it will not update in database.

Reward Points if it is helpful

Thanks

Seshu