BASIS Function module RFC Used the same way in S/4HANA

TH_SERVER_LIST Get Application Server List

Lists the active application servers of the system with their host names and the services they offer (dialog, background, update, etc.) (the counterpart of SM51). Programs that pick servers for parallel processing and monitoring tools that run something on every server through RFC use it. With the SERVICES parameter you can filter servers that offer a specific service.

Function group
THFB
Remote-enabled (RFC)
Yes
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
SERVICESMSXXLIST-MSGTYPESService filter—
SYSSERVICEMSSYSSERVICESystem service—
ACTIVE_SERVERIActive servers only—

Tables parameters

ParameterTypeDescriptionRequired
LISTMSXXLISTServer list—
LIST_IPV6MSXXLIST_V6Server list (IPv6)—

Exceptions

  • NO_SERVER_LIST — No server list

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'TH_SERVER_LIST'
  TABLES
    list = lt_list
    list_ipv6 = lt_list_ipv6
  EXCEPTIONS
    no_server_list = 1
    OTHERS = 2.

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report