Skip to content

Commit 2c7f1e2

Browse files
committed
Commit was not working in SAP Connector
Issue: 108854
1 parent bfa25ac commit 2c7f1e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/main/java/com/genexus/sap/SessionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void TransactionBegin()
156156
scopeName = String.valueOf( scopeObj);
157157
Log.info("GX SAP - Begin Transaction " + destinationName);
158158
JCoDestination destination = null;
159-
if (scopeName.isEmpty())
159+
if (scopeName.isEmpty() || scopeName.equals("null"))
160160
destination = JCoDestinationManager.getDestination(destinationName);
161161
else
162162
destination = JCoDestinationManager.getDestination(destinationName, scopeName);
@@ -182,7 +182,7 @@ public void TransactionCommit()
182182
JCoDestination destination = null;
183183
destinationName = (String)destinationObj;
184184
scopeName = String.valueOf(scopeObject);
185-
if ( scopeName.isEmpty() ) {
185+
if ( scopeName.isEmpty() || scopeName.equals("null") ) {
186186
destination = JCoDestinationManager.getDestination(destinationName);
187187
}
188188
else {

0 commit comments

Comments
 (0)