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

BDC

Former Member
0 Likes
534

hi,

Could anyone explain about Synchronous Processing,Synchronous database update,Asynchronous Processing,Asynchronous database update.Please reply ASAP.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
500

Hi Govind,

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.

Concept-wise a synchronous call waits for the response of the FM before proceeding for the next step in the logic. An asynchronous call however, doesnt wait for the response of the FM, as soon as the call is made it continues with the rest of the logic.

So in a Sync

Call FM1 --->>> waits until the FM is processed

Do something

Async

Call FM1 --->>> Doesnt wait for FM and continues with logic

Do something

GO THROUGH THIS LINK

http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm

Regards,

Priyanka.

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
500

Hi,

<b>Asynchronous updating.</b> 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.

Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.

If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.

<b>Synchronous updating</b>. 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.

Regards

Sudheer

Read only

Former Member
0 Likes
500

Hi,

Firstly Process means when you can written some code the execution of this code and populating data in the screen fields is called processing.

Updating means after data is entered in the screen fields it must update the database table.so it is called update.

Sychronous means if you have given data for first transaction until completion of its next transaction does not start.

Asynchronous means if you have started first transaction data system does not wait for the resulet from the first transaction and it immediately starts next transaction data to process or update.

Thanks,

shyla

Read only

Former Member
0 Likes
500

Hi..,

<b>Processing is Synchronous and asynchronous means...

In call transaction U fill the data and process the transaction at one place i.e in the Program onli.. So it is synchronous...

But in case of SESSION Method u fill the data in one place and Process the transaction in another Place i.e in SM35.. So these two processes are separated out here.. so ASYNCHRONOUS Processing...</b>

In case of Updating..

<i>Asynchronous updating.</i> 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.

Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not.

If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.

<u>Synchronous updating.</u> 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.

reward if it is helpful..

sai ramesh

Read only

Former Member
0 Likes
501

Hi Govind,

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.

Concept-wise a synchronous call waits for the response of the FM before proceeding for the next step in the logic. An asynchronous call however, doesnt wait for the response of the FM, as soon as the call is made it continues with the rest of the logic.

So in a Sync

Call FM1 --->>> waits until the FM is processed

Do something

Async

Call FM1 --->>> Doesnt wait for FM and continues with logic

Do something

GO THROUGH THIS LINK

http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm

Regards,

Priyanka.