From 4ce3344ac1cdfa07cc55462be7299a3e5f84b143 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Mon, 3 Jun 2024 12:10:34 -0300 Subject: [PATCH] Commit was not working in SAP Connector Issue: 108854 --- java/src/main/java/com/genexus/sap/SessionManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/main/java/com/genexus/sap/SessionManager.java b/java/src/main/java/com/genexus/sap/SessionManager.java index 2eb5be035..46010d029 100644 --- a/java/src/main/java/com/genexus/sap/SessionManager.java +++ b/java/src/main/java/com/genexus/sap/SessionManager.java @@ -156,7 +156,7 @@ public void TransactionBegin() scopeName = String.valueOf( scopeObj); Log.info("GX SAP - Begin Transaction " + destinationName); JCoDestination destination = null; - if (scopeName.isEmpty()) + if (scopeName.isEmpty() || scopeName.equals("null")) destination = JCoDestinationManager.getDestination(destinationName); else destination = JCoDestinationManager.getDestination(destinationName, scopeName); @@ -182,7 +182,7 @@ public void TransactionCommit() JCoDestination destination = null; destinationName = (String)destinationObj; scopeName = String.valueOf(scopeObject); - if ( scopeName.isEmpty() ) { + if ( scopeName.isEmpty() || scopeName.equals("null") ) { destination = JCoDestinationManager.getDestination(destinationName); } else {