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

Update modes in BDC

Former Member
0 Likes
27,058

may i know what are the different update modes in BDC,what is the siginificance...?

may i know what are the different update modes in BDC,what is the siginificance...?

8 REPLIES 8
Read only

prasanth_kasturi
Active Contributor
0 Likes
11,666

hi

synchronous and asynchronous local modes.

in synchronous update it waits for the acknowledment of the database after updating all the tables (MASTER AND CHILD TABLES). its a slower method of update. its generally used with session method

asynchronous : it waits for the acknowledment of the database after updating all only the master tables.

its faster method of update . its generally used for call-transaction method

In a more Elaborate manner its as follows

1.Synchronus Update.

Synchronous Update

In synchronous update, you do not submit update requests 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. The following diagram illustrates the synchronous update process:

2.Asynchronous Update

Asynchronous Update

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

L Local updating. 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.)

regards

prasanth

Read only

Former Member
0 Likes
11,666

Hi,

Synchronous Update mode: It means after all the tables linked with the master table are updated , then only the updation takes place.

Asynchronous Update mode: It means after the master table is updated , immediately the updation of that table takes place, it wont wait for any acknowledgement from other tables .

Read only

Former Member
0 Likes
11,666

Hi,

Synchronous and Asynchronous are for update.

Modes A, N, E are processing modes,

If you use 'A' : While processing it will take you to all the screens for that transaction.

If you use 'N' : While processing it will not take you to all the screens for that transaction(NO screens will be available).

If you use 'E' : While processing if any error occurs only that screens will be visible.

Regards,

shiva.

Read only

Former Member
0 Likes
11,666

Hi,

1.Synchronus Update.

Synchronous Update

In synchronous update, you do not submit update requests 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. The following diagram illustrates the synchronous update process:

2.Asynchronous Update

Asynchronous Update

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

<REMOVED BY MODERATOR>

Naresh.

Edited by: Alvaro Tejada Galindo on Apr 22, 2008 3:31 PM

Read only

Former Member
0 Likes
11,666

Hi Sekhar,

There are 3 type of Update modes , A , S and L

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.

Read only

Former Member
11,666

Hi,

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.

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.

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.

L Local updating. 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.)

Regards,

Satish

Read only

Former Member
0 Likes
11,666

Hi,

In BDC Session method and Call Transaction methods we can use

BDC we can update Synchronus and Asynchronus methods,

If you use any method we can use these modes A, E, N i.e.

A for All screens displays while updating it will shows all screens that means use interaction is mandatory

E for Error screens only displays

N for No screens displays

Thanks

Ganesh

Read only

Former Member
0 Likes
11,666

Hi,

There are 3 update modes in BDC call transaction.

1) Synchronous : For a transaction it is not necessary to update data into one table. there are so many tables which update on running a transaction. So incase of sync, the Parent table waits until all the child table are updated.

2)Asynchronous : In this case , the parent table doesn't wait for other child tables to update. hence it is much faster than sync update.

3)Local : Actually if u refer local update, the update functional modules doesnot register in the database instead they will get register in ABAP memory. Incase of SYNC and ASYNC they will be registered in a clustered table VBLOG.

This needs COMMIT WORK.

Moreover it doesnot go for UPDATE workprocess instead it uses the current work process.

<REMOVED BY MODERATOR>

Thanks and Regards.

Edited by: Alvaro Tejada Galindo on Apr 22, 2008 3:41 PM