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

Is Session Method has Asyn. processing while database update is Sync ?

Former Member
0 Likes
728

Hi SAP-ABAP Experts .

Friends , How it is possible that 'Session Method has Asynchronous processing while database update is

Synchronous ' , May u plz eloborate it .

I am thinking if processing is Asynchronous then database update should be Asynchronous .

How it is Synchronous ?

Best Regards : Rajneesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
708

Hi,

Synchronous

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.

AsynchronousWith 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.

Regards,

Shiva

7 REPLIES 7
Read only

Former Member
0 Likes
708

In session Method there is Asynchronous processing - Transfers data for multiple transactions but Synchronous database update i. e. during processing, no transaction is started until the previous transaction has been written to the database.

I hope it helps.

Let me know if any doubts.

Best Regards,

Vibha

Please mark all the helpful answers

Read only

0 Likes
708

Dear Vibha ,

Session Method has Asynchronous processing - Because it can Transfers data for multiple transactions or some other reasons ???

It has Synchronous database update because during processing, no transaction is started until the previous transaction has been written to the database .

but what about call transection :

Peoples says it has Synchronous processing and Asynchronous database update , may u plz tell me why this is ???

Best regards : rajneesh .

Read only

0 Likes
708

Hi,

CALL TRANSACTION tcod ... MODE mode

The specified processing mode can accept the following values:

'A' Display screen

'E' Display screen only if an error occurs

'N' No display

If the addition MODE is not specified, the processing mode is set to 'A' .

The MODE Parameter

You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes:

A Display all. All screens and the data that goes in them appear when you run your program.

N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished.

E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.

Have a look at below link for details:

Using CALL TRANSACTION USING for Data Transfer

I hope it helps.

Thanks,

Kumar

Read only

0 Likes
708

IN Call Transaction method, we have Synchronous processing - Transfers data for a single transaction and Synchronous and asynchronous database updating both are possible The program specifies which kind of updating is desired.

I hope it helps.

Best Regards,

Vibha

Please mark all the helpful answers

Read only

0 Likes
708

Thanks Vibha .

It is pretty Clear now .

Thanks for removing my confusion .

kindly regards : rajneesh

Read only

0 Likes
708

Thanks Shiva .

It is pretty Clear now .

Thanks for removing my confusion .

kindly regards : rajneesh

Read only

Former Member
0 Likes
709

Hi,

Synchronous

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.

AsynchronousWith 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.

Regards,

Shiva