Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

pop up message to different users.

Former Member
0 Likes
1,198

In an internal table i ve populate all the user ID's of users with Po field 'EBELN'.

Please assist me HOW i ve to forword a popup message with appending PO number to particular user. Which fuction module is appropiate for that ? Please Assist.

Regards

Saroj

In an internal table i ve populate all the user ID's of users with Po field 'EBELN'.

Please assist me HOW i ve to forword a popup message with appending PO number to particular user. Which fuction module is appropiate for that ? Please Assist.

Regards

Saroj

7 REPLIES 7
Read only

Former Member
0 Likes
1,135

hi,

try this fm populate message and put in condition.

CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'

TABLES

i_message_tab = it_msg1.

Read only

Former Member
0 Likes
1,135

Hi,

Loop on itab of users.

For user specific pop-ups you can use this FM..

CALL FUNCTION 'TH_POPUP'
  EXPORTING
    CLIENT               = '100'   " client
    USER                 = wa-user  " user
    MESSAGE              = 'test'  " Pass your PO number here
*   MESSAGE_LEN          = 0
*   CUT_BLANKS           = ' '
* EXCEPTIONS
*   USER_NOT_FOUND       = 1
*   OTHERS               = 2
          .

endloop.

Howard

Read only

0 Likes
1,135

Hi Howard,

Thanks for your Suggestion....

I ve already implement that fuction module and message is going to different user. But problem is that How i concatenatec PO number which is in internal table in "Message"

thanks in advance

Saroj

Read only

0 Likes
1,135

Can you give us an example? It's difficult to me to understand your request

Read only

0 Likes
1,135

I ve populate the Po field(ebeln) and User name(uname) field in an internal table. i want send the popup message to the respective users with Po(Ebeln) pending with against them. Which fm is appropriate ?

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,135

You can check fm TH_POPUP

Read only

Former Member
0 Likes
1,135

Saroj:

Although you asked one month ago, I hope that this will still serve.


DATA: l_msg      LIKE sm04dic-popupmsg VALUE 'Test message',
DATA: SERVER_LIST TYPE STANDARD TABLE OF MSXXLIST WITH HEADER LINE.
DATA: it  ...   "You internal table  populate all the user ID's of users with Po field 'EBELN'

*GET ALL Name Servers in your company, if you have balaced instalation.
  CALL FUNCTION 'TH_SERVER_LIST'
    TABLES
      list = server_list.


  LOOP AT server_list.
    LOOP AT it WHERE send = 'X'.
      IF it-send = 'X'.
        flag_snd = 'X'.
        CALL FUNCTION 'TH_POPUP' DESTINATION server_list-name
             EXPORTING
                  client         = it-mandt
                  user           = it-bname
                  MESSAGE        = l_msg
*                      MESSAGE_LEN    = L_LENGTH
*                     CUT_BLANKS     = ' '
             EXCEPTIONS
                  user_not_found = 1
                  OTHERS         = 2.
      ELSE.
        "No user has been selected, flag_snd remaining INITIAL.
      ENDIF.
    ENDLOOP.
  ENDLOOP.


  IF flag_snd IS INITIAL.
    MESSAGE ID 'AT' TYPE 'E' NUMBER '315' WITH   "Big error! No user has been selected.
          'No user has been selected'.
    EXIT.
  ENDIF.

Regards, José Luis

Edited by: Aguirre Eguiluz Jose Luis on Jun 30, 2010 12:46 PM