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

Doubt in BDC Update

Former Member
0 Likes
698

Hi Friends!

I want to know shall we use update mode 'A' , Async when we using error handling in call transaction statement

eg: below mentioned code is right or wrong.

CALL TRANSACTION 'XD02' USING TAB_BDCDATA

MODE 'A' UPDATE 'A' MESSAGES INTO TAB_MESSAGE

Shall the Tab message table contains all the messages when we use update 'A'.

Thanks in Advance

Imran.

Hi Friends!

I want to know shall we use update mode 'A' , Async when we using error handling in call transaction statement

eg: below mentioned code is right or wrong.

CALL TRANSACTION 'XD02' USING TAB_BDCDATA

MODE 'A' UPDATE 'A' MESSAGES INTO TAB_MESSAGE

Shall the Tab message table contains all the messages when we use update 'A'.

Thanks in Advance

Imran.

6 REPLIES 6
Read only

Former Member
0 Likes
674

HI,

Absolutely the code is right. no problem

Regards,

Naveen

Read only

0 Likes
674

Hi!

I want to know we get messages into internal table when we update database using using Asynchronous mode in call transaction statement.

Read only

Former Member
0 Likes
674

hi,

Yes we can use it.

Message was edited by:

Roja Velagapudi

Read only

Former Member
0 Likes
674

yes the internal table contains all the messages.

Read only

0 Likes
674

Ok, then whats the diff b'tween Sync & Async Data base update in call transaction statement &&&&&

When to use Sync & Async Database update in call transaction statement.

Pls Reply Friends

Imran.

Read only

Former Member
0 Likes
674

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.

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.