Ansicht
Dokumentation

03740 - FW: ABAP to snd msg to specific user ID

03740 - FW: ABAP to snd msg to specific user ID

RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

FW: ABAP to snd msg to specific user ID

I do not have the called module 'ThUsrInfo' in my system. Is this a
function module or ... ? Does anyone have a copy of this? Please
don't tell me it is only an AS/400 object because this is not an
AS/400 installation.

--- In SAP on System iZy..., Mike Pastor <mpastorZb...> wrote:
-----Original Message-----
> From: Robert Clay [mailto:rclayZk...]
> Sent: Tuesday, May 23, 2000 10:49 AM
> To: 'sap400Zm...'
> Subject: ABAP to snd msg to specific user ID
>
>
> Here's a little ABAP to send a message to a specific user:
>
> REPORT ZBC_PRIVATE_MESSAGE .
> **********************************************************
> * This program sends a message in a popup window to the
> * screens of the logged on user. This method is better
> * than the SAP system message function, because the popup
> * window appears immediately (no dialog step is required),
> * and better than the express mail method (the user can
> * not avoid it because there is no dialog step).
> **********************************************************
>
> PARAMETERS:
> P_MSG(128) DEFAULT ' ' LOWER CASE,
> P_CLIENT LIKE SY-MANDT DEFAULT SY-MANDT,
> P_USER LIKE SY-UNAME DEFAULT SY-UNAME.
>
> DATA: OPCODE_SEND_POP_UP(1) TYPE X VALUE 31,
> MSG_LENGTH LIKE SY-INDEX,
> LOC_CUT_BLANKS TYPE X VALUE 1.
>
> DESCRIBE FIELD P_MSG LENGTH MSG_LENGTH.
>
> CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_SEND_POP_UP
> ID 'CLIENT' FIELD P_CLIENT
> ID 'USR' FIELD P_USER
> ID 'MSG' FIELD P_MSG
> ID 'MSG_LEN' FIELD MSG_LENGTH
> ID 'CUT_BLANKS' FIELD LOC_CUT_BLANKS.
>
> IF SY-SUBRC = 0.
> WRITE:/ 'Message delivered to ', P_USER, 'successfully.'.
> ELSE.
> WRITE:/ 'User does not exist!'.
> ENDIF.
>
> ***************************************************************
> I set up the selection texts like this:
>
> P_CLIENT Client
> P_MSG Message to send (45 chars max)
> P_USER User ID to send to
> *****************************************************************
>
> Regards,
>
> Robert Clay
> Database/Systems Administrator
> Kerr Drug
> 2522 South Tri-Center Blvd.
> Durham, North Carolina 27713
> Telephone: 919-544-3896 Fax: 919-544-3796
> rclayZk...
>


Durban Tours - Südafrika Safari

ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2901 Date: 20240425 Time: 100525     sap01-206 ( 3 ms )