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

ParameterTypeDescriptionRequired
CLIENTSY-MANDTClientYes
USERSY-UNAMEUser nameYes
MESSAGESM04DIC-POPUPMSGMessage textYes
MESSAGE_LENSY-INDEXMessage length—
CUT_BLANKSSY-LANGUCut 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.

Request a custom report