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
731

HAI,

IN CALLTRANACTION WHAT IS MEANT <b>LOCAL UPDATE</b>.

WHAT IS THE DIFF BETWEEN LOCAL ,SYNCHRONOUS, ASYNCHRONOUS UPDATE

ASHOK KUMAR

1 ACCEPTED SOLUTION
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
705

Hi

Hi.

<b>A mode itself indicates asynchronus update means donot wait for execution of Commit work...the mode u r using is correct..

Asynchronous update.

Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified.</b>

Regards,

Sree

6 REPLIES 6
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
706

Hi

Hi.

<b>A mode itself indicates asynchronus update means donot wait for execution of Commit work...the mode u r using is correct..

Asynchronous update.

Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified.</b>

Regards,

Sree

Read only

Former Member
0 Likes
705

Hi Ashok,

You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes:

<b>A 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>S 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.

<b>L Local updating</b>. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)

Thanks,

Reward If helpful.

Read only

Former Member
0 Likes
705

hi ashok,

L Local updating

the update data is not stored in the database, but in ABAP/4 Memory difference is that it is not performed in a separate process, but in the same process as the calling program

processing does not continue until all the update requests have been performed. In the standard setting, the normal update task is always active.

S Synchronous updating.

In this mode, the called transaction waits for any updates that it produces to be completed

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 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.

regards,

Read only

Former Member
0 Likes
705

Hi Ashok,

Here is some info about the UPDATE option for CALL TRANSACTION from the SAP help:

... UPDATE upd

Effect

The UPDATE addition determines the processing mode for batch input processing. You can specify a character-type object for upd. Its possible content and its effect are displayed in the following table. Without use of one of the additions UPDATE or OPTIONS FROM, the effect is the same as if upd had the content "A".

upd Effect

"A" Asynchronous update. Updates of called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition was not specified.

"S" Synchronous processing. Updates of the called programs are executed in the same way as if in the COMMIT WORK statement the AND WAIT addition had been specified.

"L" Local update. Updates of the called program are executed in such a way as if the SET UPDATE TASK LOCAL statement had been executed in it.

Other As for "A".

Note

This option is not available for execution of actual batch input sessions. There the update is always synchronous.

In synchronous method incase if there is any change in the table all the related tables will be changed accordingly and then sy-subrc will be returned.In asynchronous method in case if there is any change in the table the s-subrc will be immediatel returned and then the related tables will be updated. the diffrence between these two is in asynchronous even if the related tables are not updated the sy-subrc will still be returned as 0.

Regards,

Younus

<b>Reward Helpful Answers:-)</b>

Read only

Former Member
0 Likes
705

Hi Ashok,

Local Update: For Example: A program asks the system to perform a certain task end than either waits or doesn't wait for the task to finish..

Synchronous: Processing the program waots control returns to the programme only when the task has been completed.

Asychronous: Process the program does not wait for the system returns control after mempry logging the required for execution..

Thanks,

Satya Kumar..

Read only

Former Member
0 Likes
705

Hi Ashok,

Local Update: For Example: A program asks the system to perform a certain task end than either waits or doesn't wait for the task to finish..

Synchronous: Processing the program waits control returns to the programme only when the task has been completed.

Asychronous: Process the program does not wait for the system returns control after memory logging the required for execution..

Thanks,

Satya Kumar..