2010 May 19 8:43 AM
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
2010 May 19 8:47 AM
hi,
try this fm populate message and put in condition.
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
TABLES
i_message_tab = it_msg1.
2010 May 19 9:00 AM
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
2010 May 19 9:40 AM
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
2010 May 19 9:42 AM
Can you give us an example? It's difficult to me to understand your request
2010 May 19 9:48 AM
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 ?
2010 May 19 9:51 AM
2010 Jun 30 6:39 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |