DUAS: SAP jobs abort - "Unable to connect to the SAP system"

Document ID : KB000085047
Last Modified Date : 01/10/2018
Show Technical Document Details
Issue:
Dollar Universe with Manager for SAP.

SAP Uprocs abort when launched via Dollar Universe as SAP Manager is not able to connect the to the target SAP system defined in uxjcs.ini


The following kind of errors appear in sapjcs.log ( sap manager 4.4.x):
# uxsap_open_comm # SAP system [COMPANY/X/*]: RfcOpenEx fails 
# uxsap_connect # uxsap_open_comm error: unable to open the RFC handle 
# uxsap_bapi_connect # Unable to connect to SAP system [COMPANY/X/*]: uxsap_connect returned error -1 
# uxsap_bapi_connect # urfc_RfcCallReceive fails to open a XMI session, look at the log file: dev_rfc 
# uxsap_bapi_connect # Maximum retry connection reached: 3 
# uxsap_bapi_connect # Cannot create connection on SAP system [COMPANY/X/*] 


On version 6, the following kind of errors appear in universe.log:
|INFO |X|SAP|pid=p.t| uxsap_load_sys_file| Load the list of SAP systems from the file /dollar_universe_folder/data/nodefiles/uxjcs.ini
|ERROR|X|SAP|pid=p.t| uxsap_open_comm    | SAP system [*/*/*]: RfcOpenEx fails
|ERROR|X|SAP|pid=p.t| uxsap_connect      | uxsap_open_comm error: unable to open the RFC handle
|INFO |X|SAP|pid=p.t| uxsap_connect      | RFC connexion fails for SAP system [*/*/*]
|ERROR|X|SAP|pid=p.t| uxsap_bapi_connect | Unable to connect to the SAP system SAP_SERVER_NAME for [*] [*] [*]: uxsap_connect returned error -1
|ERROR|X|SAP|pid=p.t| uxsap_bapi_connect | urfc_RfcCallReceive fails to open a XMI session, look at the log file: dev_rfc


In Job Log of the SAP Uproc:
===================== SUBMISSION ERROR ===================== 
Unable to connect to the SAP system SAP_Server_Name for [*] [*] [*] 
============================================================ 

 
Environment:
Dollar Universe with Manager for SAP
Cause:
Cause type:Configuration
Root Cause: uxjcs.ini file incorrectly configured.
Resolution:
Configure correctly the file uxjcs.ini ( in folder <dollar_universe/data/nodefiles) and point it to the correct SAP system.
Then restart the SAP Manager to take into account the modification.

Examples:

- For non-load balancing configuration, you need to give the TargetHost a value, and not to declare the Group, R3Name, MessageServerHost entries.

- For load balancing configuration, you do not need to give any value to the TargetHost entry, but you need to enter values for the Group, R3Name and MessageServerHost entries.

Furthermore, the GatewayHost:and the TargetServer need to have the same number.
Example:
TargetServer: 00
GatewayHost: wblccs00


or

TargetServer: 01
GatewayHost: wblccs01


 
Additional Information:
Documentation of the configuration of the uxjcs,ini available here