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

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

book

Article ID: 85047

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

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 appears 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 appears 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 configured incorrectly or traffic closed against the SAP Application Server in the associated port ( by default 3600).

Resolution

First of all, verify that the SAPMS port is opened from the Server where the Manager for SAP has been configured.

This can be checked via a simple telnet command such as

telnet <sapserver> 3600 (or the used port) 

If the traffic is closed, ask the Network team to open it and that will fix the connectivity issue.

Else, 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

Example of error messages found in the dev_rfc.trc file generated by the SAP Manager that proved a port closed in the sapms server:

**** Trace file opened at 2021-08-20, 09:54:21 GMT
RFC Library Release: 721 Patch Level 50, Compiled on Aug 18 2018 04:11:42
 CPIC library: 721.2018.08.17 version 3, NI library: 40, Kernel Release: 721 Patch Level 0
 Current working directory: /appli/universe/COMPANY_NODE/bin/bin_sap, Program: uxagtsap
 Hardware: AMD/Intel x86_64 with Linux x86_64, Operating_system: Linux 4.18.0-193.56.1.el8_2.x86_64


Error during connect: 
ERROR       Unexpected function call
TIME        Fri Aug 20 09:54:11 2021
RELEASE     721
COMPONENT   NI (network interface)
VERSION     40
RC          -24
MODULE      nixxhs.cpp
LINE        295
DETAIL      NiIHSBufInit: already initialized
COUNTER     1

Error during connect: 

Error during connect: 

Error during connect: