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
917

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

4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
698

Hi Rajnish

In Sessions method, we've Asynchrounous Processing and Synchronous Updation.

As you know about Asynchronous and Synchronous, what does it mean that Asynchronous means that after transferring the data in the screen, the system doesn't wait for result from first rather it directly commits to next screen, whereas in Synchronous, the system doesn't go for next screen unless it is successful of previous screen. So, i can say Error analysis and Analysation is well and good in case of Synchronous than Asynchronous.

Coming to your point, Sessions method is 2 step dialog process. Here by the first step, data transfers to sessions, then it'll commit to database after user operates the session i.e. nothing but Synchronous Updation.

where Call transaction is single step dialog process, here data directly commits data to database.

If u finds it helpful, reward me plz.

Thanks

Suren

Read only

Former Member
0 Likes
698

Hi Rajneesh,

No Confusion rgarding this.

1.Call transaction is sync in processing and sync/asyn update

2.Session is async in processing and sync in update

To Explain about this clearly,Session processes records completely and finally updated them into DB.Encountered errors are skipped and only valid errors are updated into DB.(If this has sync processing,then all records cannot be handled)

In the same way call transaction processes record by record and passes each record on to the screen and if it is valid it will be uploaded into DB.

Award points if useful

Regards,

Ravee...

Read only

manubhutani
Active Contributor
0 Likes
698

Hi..

In call trans, u need to specify whether sync or asynch.

Meaning - in sync next record transaction will be done after successful updation in the database for the previous record.

Asyn - it will return to next transaction,whether updation is completed or not for the previous record.

In session method , processing is asynchronous as session is made first, then on executing this session updates the database.

Updation is synchr, coz first updation of first record occurs,then for another,not before that.

Please reward points