Send instant message within SAP to a users PC desktop




Uses function module TH_POPUP to send instand message to any SAP user who is currently loged in. To get list of current sap users look at SAP transaction code SM04.

*...............................................................
*: Report:  ZSENDMESS                                          :
*:                                                             :
*: Author:  www.SAP Development                                   :
*: Date  :  2004                                               :
*: Description: Send instant message to SAP users PC           :
*:.............................................................:
REPORT  ZSENDMESS.
PARAMETERS: p_user type sy-uname,  "SAP Username
            p_mess type SM04DIC-POPUPMSG. "Actual Message text
CALL FUNCTION 'TH_POPUP'
  EXPORTING
    CLIENT               = sy-mandt
    USER                 = p_user
    MESSAGE              = p_mess
*   MESSAGE_LEN          = 0
*   CUT_BLANKS           = ' '
  EXCEPTIONS
    USER_NOT_FOUND       = 1
    OTHERS               = 2.

Return to bespoke ABAP programs


Related Articles

Commented CALL FUNCTION Pattern
Improved ABAP Pretty Print program to beautify your code
Bespoke ABAP program (download employee data)
Most drawn lottery numbers ABAP program for SAP system
ABAP lottery numbers report for SAP system - User guide
Bespoke ABAP program (select staff by postcode)
Bespoke ABAP program (select staff by postcode)
Execute SQL statements on the fly in Open or Native SQL