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

why BDC session method allows synchronous update

vikash_pathak
Participant
0 Likes
1,037

Hello guys,

i have an query about BDC ,

why BDC session method allows synchronous update

please share information.

Thanks

Vikash

4 REPLIES 4
Read only

Sandra_Rossi
Active Contributor
974

Because you may wish to do synchronous update. It corresponds to the synchronous update of COMMIT WORK AND WAIT - it means that COMMIT WORK will be executed as COMMIT WORK AND WAIT. Or maybe your question is why using COMMIT WORK AND WAIT?

Read only

matt
Active Contributor
974

Good luck with the interview.

Read only

tom_wan
Product and Topic Expert
Product and Topic Expert
0 Likes
974

Hi Vikash

My understanding is: it gives you the possibility to control how the update function modules in the update task will be run.

Instead of "no chance to control this", isn't good for us that "have the chance to control it"?

It is similar with BAPI, you can use BAPI_TRANSACTION_COMMIT parameter WAIT to control it.

For example,

step1:you call transaction A in batch input mode, transaction A updates DB table X with update module.

step2:you have a subsequent coding to read the data(created by step1 ) of table X

Then you have to use synchronous update(COMMIT AND WAIT).

To understand Update Techniques in ABAP:

https://help.sap.com/doc/saphelp_nw70/7.0.31/en-us/41/7af4cba79e11d1950f0000e82de14a/frameset.htm

Asynchronous updating is useful when the response time from the transaction is critical, and the database updates themselves are so complex that they justify the extra system load of logging them in VBLOG. If you are running a transaction in a background work process, asynchronous update offers no advantages.

Synchronous updating: Use this type of update whenever the changed data is required immediately.

Regards

Tom

Read only

RaymondGiuseppi
Active Contributor
974

Or why call two transaction in sequence in a BDC using result of first transaction or a common locked object in the second one. How did the interview go?