01-02-2006 10:24 AM
Hi,
I want to send a mail to sapusers. I could able to send to single user. If i use the distribution list, it is not goign. what is the problem. Below code is for receiver type iam using.
MOVE: p_rece1 TO i_to-receiver,
'X' TO i_to-express,
'C' TO i_to-rec_type.
rgds
p.kp
01-02-2006 11:41 AM
Hi Paluri,
Please go through the following :
RECEIVERS Table
RECEIVER
Name of recipient.
The following entry categories are possible:
->SAP use name of the recipient
->SAPoffice name of the recipient
->Shared distribution list
->Fax number in the form of structure SADRFD
->Internet address in the form of structure SADRUD
->Remote SAP name in the form of structure SADR7D
->X.400 address in the form of structure SADR8D
ADR_TYPE
Type of RECEIVER entry.
The following values are permitted:
'B' : SAP user name (try this)
' ' : SAPoffice name (try this)
'C' : Shared distribution list (try this)
'F' : Fax number
'U' : Internet address
'R ' : Remote SAP name
'X' : X.400 address
REC_ID
If the recipient is a SAPoffice user, the user ID, instead of the recipient name in RECEIVER, can be entered in this field.
eg:
Entering names in the distribution list
RECLIST-RECEIVER = 'guido.geldsack@money.com'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
RECLIST-RECEIVER = 'lokesh'.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
Also refer the Function Module documentation.
Hope it helps...
Lokesh
01-02-2006 11:08 AM
Hi,
You also have to pass the Recipient List ID ie i_to-rec_id, to send the mail to a distribution list.
Regards,
Suresh Datti
01-02-2006 11:22 AM
01-02-2006 11:23 AM
01-02-2006 11:23 AM
Hi paluri krishna prasad,
Please try the following :
Data : RECLIST like SOMLRECI1 occurs 1 with header line.
Create receiver list
refresh RECLIST.
clear RECLIST.
RECLIST-RECEIVER = 'xyz@xyz.com'.
translate RECLIST-RECEIVER to lower case.
RECLIST-REC_TYPE = 'U'.
append RECLIST.
RECLIST-RECEIVER = 'abc@abc.com'.
translate RECLIST-RECEIVER to lower case.
RECLIST-REC_TYPE = 'U'.
append RECLIST.
In my case, It's working fine. Hope it also helpful to u.
Regards,
Digesh Panchal
01-02-2006 11:32 AM
Hi
In your statement MOVE: p_rece1 TO i_to-receiver, mka esure that p_rece1 is the name of the Distribution List.
Regards,
Suresh Datti
01-02-2006 11:35 AM
Hi paluri,
1. reclist-receiver = 'XYZ'.
reclist-rec_type = 'P'.
reclist-express = 'X'.
rec_type needs to be P
P = private distribution list.
'XYZ' is the name of your Distribution List.
2. Try the above. It works fantastic.
I tried just now at my end.
3. Rec type values.
P Private distribution list
C Shared distribution list
O SAPoffice user
B SAP user
U Internet address
X X.400 address
R SAP user in another SAP System
A External address
F Fax number
D X.500 Address
L Telex number
H Organizational unit/position
J SAP object
G Organization object/ID
1 9 Other Recipient Types
regards,
amit m.
Message was edited by: Amit Mittal
Message was edited by: Amit Mittal
01-02-2006 11:41 AM
01-02-2006 11:41 AM
Hi Paluri,
Please go through the following :
RECEIVERS Table
RECEIVER
Name of recipient.
The following entry categories are possible:
->SAP use name of the recipient
->SAPoffice name of the recipient
->Shared distribution list
->Fax number in the form of structure SADRFD
->Internet address in the form of structure SADRUD
->Remote SAP name in the form of structure SADR7D
->X.400 address in the form of structure SADR8D
ADR_TYPE
Type of RECEIVER entry.
The following values are permitted:
'B' : SAP user name (try this)
' ' : SAPoffice name (try this)
'C' : Shared distribution list (try this)
'F' : Fax number
'U' : Internet address
'R ' : Remote SAP name
'X' : X.400 address
REC_ID
If the recipient is a SAPoffice user, the user ID, instead of the recipient name in RECEIVER, can be entered in this field.
eg:
Entering names in the distribution list
RECLIST-RECEIVER = 'guido.geldsack@money.com'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
RECLIST-RECEIVER = 'lokesh'.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
Also refer the Function Module documentation.
Hope it helps...
Lokesh
01-02-2006 11:50 AM
Hi,
Pls award points if u found any answer helpful.
regards,
amit m.