BASIS
Function module
RFC
Used the same way in S/4HANA
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.
- Function group
- THFB
- Remote-enabled (RFC)
- Yes
- Type
- Function module
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)
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_POPUP'
EXPORTING
client = lv_client
user = lv_user
message = lv_message
EXCEPTIONS
user_not_found = 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.