# TH_POPUP — Send Popup Message to User

> Sends a short system message as a popup window to the SAP GUI screen of a user logged on in the given client. It is used to warn specific users when long-running processes finish or before maintenance. If the user has no session at that moment, the USER_NOT_FOUND exception is raised; the message is not persistent and is not logged.

- 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-popup/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CLIENT | SY-MANDT | Client | Yes |
| USER | SY-UNAME | User name | Yes |
| MESSAGE | SM04DIC-POPUPMSG | Message text | Yes |
| MESSAGE_LEN | SY-INDEX | Message length | - |
| CUT_BLANKS | SY-LANGU | Cut blanks | - |

## Exceptions

- USER_NOT_FOUND: User not found

## Call template (ABAP)

```abap
CALL FUNCTION 'TH_POPUP'
  EXPORTING
    client = lv_client
    user = lv_user
    message = lv_message
  EXCEPTIONS
    user_not_found = 1
    OTHERS = 2.
```


