# 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.

- Modules: BASIS
- Type: Function module
- Function group: THFB
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/th-server-list/

## 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)

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


