book
Article ID: KB0086805
calendar_today
Updated On: 01-14-2017
Description
Resolution:
There is no possibility of Deadlock in SAP Adapter. In fact, to avoid the deadlock we have kept COMMIT_TIMEOUT. For any transaction, if BAPI_TRANSACTION_COMMIT will not get invoke, the COMMIT TIMEOUT will occur and will release the connection and then this connection will be available for other BAPI calls.
Also for multiple BAPI scenario it is better to use Dynamic logon as a solution, as there will be several invocations in Transaction and the completion of whole transaction time will vary lot. Because of this, there are chances of COMMIT getting timeout. If user chooses higher value for COMMIT_TIMEOUT, then there are chances of Connection get blocked by this transaction for longer time.
With Dynamic Logon, connection will be controlled by calling process and it will have more control when to call COMMIT and when to do close connection.
Issue/Introduction
Can a deadlock occur due to Explicit commit?