‎2021 Apr 01 4:03 PM
Hello guys,
i have an query about BDC ,
why BDC session method allows synchronous update
please share information.
Thanks
Vikash
‎2021 Apr 01 4:32 PM
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?
‎2021 Apr 01 5:28 PM
‎2021 Apr 02 7:28 AM
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
‎2021 Apr 02 1:41 PM