Application Development 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: 

re: mail

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

suresh_datti
Active Contributor
0 Kudos

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

0 Kudos

Hi,

Can you what is the id of for my requirement.

rgd

p.kp

Former Member
0 Kudos

Hi Paluri,

Here are few links that ll help u.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

Dont forget to give pts if it helps ;>)

Regards,

Rakesh.

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi

Thank you amith

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Pls award points if u found any answer helpful.

regards,

amit m.