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
| Parameter | Type | Description | Required |
|---|---|---|---|
| SERVICES | MSXXLIST-MSGTYPES | Service filter | — |
| SYSSERVICE | MSSYSSERVICE | System service | — |
| ACTIVE_SERVER | I | Active servers only | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| LIST | MSXXLIST | Server list | — |
| LIST_IPV6 | MSXXLIST_V6 | Server 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.