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
440

in synchronous & asynchronous updates how are the records are updated

like in which method it is one by one record updating

and bunch of records recording

3 REPLIES 3
Read only

Former Member
0 Likes
420

synchronous means sy-subrc is returned once table and all related tables are updated....

but asynchronous means sy-subrc is returned once concerned table is updated...before related tables are updated.....

Read only

former_member386202
Active Contributor
0 Likes
420

Hi,

I synchronus method, becoz in synchronous programs waits to finish the update and in asynchronous program doesn't wait to finish the update.

Regards,

Prashant

Read only

Former Member
0 Likes
420

HI

<b>Synchronous versus Asynchronous</b>

<b>Synchronous</b>With synchronous updating, we can check SY-SUBRC to determine the success of the transaction and the actual update to the database.

DO.

………

PERFORM FILL_BDC_TAB.

CALL TRANSACTION ‘FK02’

USING BDC_TAB

MODE ‘N’

UPDATE ‘S’.

IF SY-SUBRC < > 0.

WRITE: /‘ERROR’.

ENDIF.

ENDDO.

<b>Asynchronous</b>With asynchronous updating, we can check SY-SUBRC to determine the success of the transaction only, not the actual update to the database.

DO.

………

PERFORM FILL_BDC_TAB.

CALL TRANSACTION ‘FK02’

USING BDC_TAB

MODE ‘N’

UPDATE ‘A’.

IF SY-SUBRC < > 0.

WRITE: /‘ERROR’.

ENDIF.

ENDDO.

<b>Reward if usefull</b>