Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 13 Next »

Problem

NLINK cannot connect to SAP system.

Solution - Common Errors

Missing User Id / Password

If you see the following error, check your user id / password values:

CALL_FUNCTION_SIGNON_INCOMPL
CoNNector:: SAP XXX CoNNector: Unable to log on to destination YYYY.
Error message:
KEY=CALL_FUNCTION_SIGNON_INCOMPL
Message= Incomplete logon data..

Wrong Client

If you see the following error:

  • double-check your user id and password (passwords are case-sensitive)
  • verify that your user id exists in the client you are trying to connect to

 

RFC_LOGON_FAILURE
Key 'RFC_LOGON_FAILURE': Message 'Name or password is incorrect (repeat logon)'

Service Unknown / GWSERV not found

In some cases (mostly on VM machines that are not part of a domain) the IDoc or RFC Listener connections fail to register properly, even if the proper GWSERV parameter is specified:

RFC_COMMUNICATION_FAILURE
External System: 
CoNNector:: SAP IDOC CoNNector: Could not connect to SAP system. Will retry. SAP47U_IDOC: 
KEY=RFC_COMMUNICATION_FAILURE 
Message= 
ERROR       service ’?’ unknown 
TIME        Fri Sep 10 14:32:59 201 
RELEASE     711 
COMPONENT   NI (network interface) 
VERSION     39 RC          -3 
DETAIL      NiErrSet 
COUNTER     2
 
or
 
External System: 
CoNNector:: SAP IDOC CoNNector: Could not connect to SAP system. Will retry. SAP47U_IDOC: 
KEY=RFC_COMMUNICATION_FAILURE 
Message= 
ERROR       service ‘sapgw01’ unknown 
TIME        Fri Sep 10 14:32:59 201 
RELEASE     711 
COMPONENT   NI (network interface) 
VERSION     39 RC          -3 
MODULE      nixxhsl.cpp 
LINE        665 
DETAIL      NiHsLGetServNo: service name cached as unknown 
COUNTER     1

To get around the issue specify the actual port in the GWSERV parameter, e.g., GWSERV=3301 instead of GWSERV=sapgw01.

WSAENOBUFS: No buffer space available

When trying to register RFC Listener or IDOC, the connection gets disconnected almost immediately. Get entries in log file similar to the following:

"SAP RFC Listener CoNNector: Successfully connected to SAP system." 

 

"CoNNector:: SAP RFC Listener CoNNector: Unable to connect to SAP. Will retry."
KEY=RFC_COMMUNICATION_FAILURE
Message=
ERROR    internal error
TIME    WWW MMM DD HH:MM:SS 201
RELEASE  NNN
COMPONENT  NI(network interface)
VERSION  NN
RC            -1
MODULE        nixxi.cpp
LINE    2781
DETAIL    NiIConnectSocket
SYSTEM CALL connect
ERRNO    10055
ERRNO TEXT WSAENOBUFS: No buffer space available
COUNTER  66722

This can be caused by SAP Gateway security rule that blocks requests from an external RFC Server. 

Invalid Parameter

If you see the following error, check the format, spelling and completeness of the parameters in your SAPNWRFC.INI file. Refer to the sample file for correct entries.

RFC_INVALID_PARAMETER
Key 'RFC_INVALID_PARAMETER': 
Message 'Parameter ASHOST, GWHOST or MSHOST is missing.'

Cannot Launch SAPGUI for Debugging

When trying to step into ABAP code for debugging, get an error ”SYSTEM_PREPARE_ATTACH_GUI not found”.

To use RFC with SAPGUI, the new library needs at least the following support packs to be installed:

  • SAP_BASIS     46C     SAPKB46C58
  • SAP_BASIS     620     SAPKB62066
  • SAP_BASIS     640     SAPKB64025
  • SAP_BASIS     700     SAPKB70020
  • SAP_BASIS     701     SAPKB70103
  • SAP_BASIS     710     SAPKB71008
  • SAP_BASIS     711     SAPKB71102

If you can connect from the NLINK machine via SAPGUI but not via NLINK, and you see the following error, check that ports 33xx are open.

Key 'RFC_COMMUNICATION_FAILURE':
Message ' LOCATION    CPIC (TCP/IP) on local host with Unicode 
ERROR       partner '111.22.333.44:33xx' not reached

The following ports must be open (where ## is the SAP system number):

  • GUI (dispatcher, sapdp##): 32##
  • RFC (gateway, sapgw##): 33##
  • Load Balancing (message server, sapms##): 36##

Solution - Basic Checks

  1. Can the NLINK Server machine ping the SAP Server on the network?
    Open a Windows command window and try to “ping” the network IP address of the SAP Server. For example, “ping 10.1.1.127”.
    If there is no network connectivity then it will be impossible to connect. Contact your systems administrator if this test fails.
  2. Does the sapnwrfc.ini exist?
    Double-check that a sapnwrfc.ini file is located in the proper location and it is saved with UTF-8 encoding.
  3. Are the sapnwrfc.ini parameters for the selected SAP destination correct?
    Double-check that the information entered into the sapnwrfc.ini file is correct, properly spelled, and properly formatted.
    Make sure the correct parameters are configured depending on the connection type. For example, a direct connection to an SAP “Application Server” requires different parameters than a connection to a “Load Balancing Server”.
    Refer to the sample documentation included in the default file.
  4. Is the SAP R/3 Server actually running?
    Sometimes, SAP servers are taken down for maintenance or otherwise temporarily unavailable. Check with the SAP administrator that the SAP server is currently available for connection.

Solution - Advanced Checks

  1. When you run the connection test in NLINK are you seeing the message “Invalid UserId/Password” or is it something like “Password logon no longer possible – too many failed attempts”?
    If it is the latter, then this is indicating that the UserId is locked by SAP. The local SAP administrator will need to reset the UserId.
  2. As a last step, it is possible to generate some detailed SAP trace logs to help diagnose the problem.
    Edit the sapnwrfc.ini file (for whichever SAP system you are trying to connect to) and set “RFC_TRACE=1” (the default is RFC_TRACE=0).
    SAP runtime library trace files may be in Windows Systems folder. If you run the test with SAP trace you will see 2 (or more) in that logs folder. The local SAP administrator can take a look at these log files to see if there is any issue. The SAP trace logs will be named "rfc*.trc" and dev_rfc.trc. 
Notes Regarding SAP Trace Settings
Remember to set RFC_TRACE=0 once connection testing is completed because SAP trace logs can very quickly become very large and should not be enabled during normal runtime operations.

The DEFAULT section of the sapnwrfc.ini file includes a directive for settings the trace file directory, RFC_TRACE_DIR. However, this value is not always honored by the SAP library. Look for trace files in the C:\windows\system32 directory also.

 

 

  • No labels