‎2007 Nov 13 11:50 AM
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
‎2007 Nov 13 11:53 AM
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.....
‎2007 Nov 13 11:54 AM
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
‎2007 Nov 13 12:25 PM
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>