2006 Oct 03 7:23 PM
Is there any FM that sends messgaes to distribution List of the Users(not to Individual Receipients) ..
2006 Oct 03 7:42 PM
hi
u can use any of the below fms..
<b>SO_NEW_DOCUMENT_ATT_SEND_API1
SO_NEW_DOCUMENT_SEND_API1</b>
Cheers,
Abdul Hakim
Its the same function module that sends the mail, you have to specify the dist. list name and change the user type. That should work.
regards,
Ravi
2006 Oct 03 7:26 PM
Its the same function module that sends the mail, you have to specify the dist. list name and change the user type. That should work.
regards,
Ravi
2006 Oct 03 7:42 PM
hi
u can use any of the below fms..
<b>SO_NEW_DOCUMENT_ATT_SEND_API1
SO_NEW_DOCUMENT_SEND_API1</b>
Cheers,
Abdul Hakim
2006 Oct 03 8:00 PM
Hi Vicky,
You can use function module <b>SO_DLI_READ</b> to get the list of members in the distribution list. There is internal table MEMBER returned.
Then you loop at internal table MEMBER, populate body for each member-memnam and call the function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send messages.
Hope this will help.
Regards,
Ferry Lianto
2006 Oct 03 8:00 PM
Hi,
Use the Function module <b>TH_POPUP</b> to send the messages to the user, if you want to send the message to all users, use the below code ..
REPORT Z_MESSAGE_TO_ALL.
PARAMETERS: MESSAGE(128) default ' Error ! Please logoff now ! '.
DATA: OPCODE TYPE X VALUE 2.
DATA: BEGIN OF USR_TABL OCCURS 5.
INCLUDE STRUCTURE UINFO.
DATA: END OF USR_TABL.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
ID 'TAB' FIELD USR_TABL-*SYS*.
LOOP AT USR_TABL.
CALL FUNCTION 'TH_POPUP'
EXPORTING
CLIENT = SY-MANDT
USER = USR_TABL-BNAME
MESSAGE = MESSAGE
* MESSAGE_LEN = 0
* CUT_BLANKS = ' '
EXCEPTIONS
USER_NOT_FOUND = 1
OTHERS = 2.
ENDLOOP.
Regards
Sudheer
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |