Service "?" unkown

Cause

Connections to the SAP® system can be established via

  • dispatcher
  • gateway
  • message server

For these there are defined TCP/IP ranges starting from 00 to 99 and corresponding to the instance number (xx in the following):

  • Dispatcher 32xx
  • Gateway 33xx
  • Message Server 36xx

If one of the above errors occurs, the file %windows%\system32\drivers\etc\services contains no corresponding entries for the SAP® ports.

Solution

service "?" unknown

The error can be corrected if the entries for dispatcher and gateway are appended to the services file.

You must therefore insert the entries as follows:

  • sapdp 3200/tcp, sapdp 3201/tcp, sapdp 3202/tcp, ...
  • sapgw 3300/tcp, sapgw 3301/tcp, sapgw 3302/tcp, ...

The file must be saved with a blank line at the end. If this does not happen, the entry in the last line will not be used and this error will still occur although the necessary entry is present in the file.

service 'sapms<SID>' unknown

The error can be corrected if the entries for the message server are appended to the services file.

The entries must be structured as follows:

  • sapms<SID> 36xx/tcp, where xx stands for the instance numbers from 00 to 99.
You can find the SID and the instance number in your SAP® Logon.

Example:

As an example for the SID PRD the entry would look like this: sapmsPRD 36xx/tcp

Connect to message server failed / Connect to SAP gateway failed

The error occurs if the wrong port has been specified.

In contrast to the above error messages, there is an entry in services, but the wrong port is specified.

Determine port
  1. Transaction SMMS requires administrator rights.
  2. Log in to your SAP® system
  3. Enter transaction SMMS.
  4. Select the respective server and click on Details (Ctrl+Shift+F6)
  5. Search for the log MS_LOGON_RFC
  6. The port is located one line below it


How did we do?


Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)