Application Development 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: 

what is the difference between synchronus & asynchronus methods?

Former Member
0 Kudos

some ques related bdc, plz reply them,

1.what is the difference between synchronus & asynchronus methods?

2.call transaction uses synchronus or synchronus method?

3.session method uses synchronus or synchronus method?

4.Can you call a bdc from a report program?

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

1. Synchronus method updates the database and creates the document number and then gives you back the message.

Asynchronus method gives you the message like "document is generated" and simuntenoulsy updates the database and cretes the document.

2. You have to specify the by CALL TRANSACTION 'MM01' using BDCDATA UPDATE 'S'.

3. Session method uses the Synchornus method

4. Yes We can

Regards,

Naimesh Patel

Former Member
0 Kudos

1A.Asynchronous Method:

Your program doesn't wait for the called transaction to be completed.As soon as your program calls a transaction it will start carrying out other works.This will result in faster execution.

Synchronous Method:

Your program wait for the called transaction to be completed.Unless the called transcation is completed your program wont resume processing.Processing will be slow compared to asynchrounous approach.

2A. Sync and Async.

3A. sync.

4A. Yes, you can.

Regards,

Satish

Former Member
0 Kudos

hi

<b>1.what is the difference between synchronus & asynchronus methods?</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>2.call transaction uses synchronus or synchronus method?</b>

BY DEFAULT IT IS Asynchronus METHOD YOU CAN CHOOSE synchronus OR Asynchronus

<b>3.session method uses synchronus or synchronus method?</b>

IT USES synchronus METHOD AND WE DON'T HAVE OPTION TO CHANGE IT

<b>4.Can you call a bdc from a report program?</b>

You can use the Report RSBDCSUB which is a Report program to Process all the sessions, you can call this report program using Submit as we do to call any report program.

<b>Reward if usefull</b>