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

re: mail

Former Member
0 Likes
1,499

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
Read only

Former Member
0 Likes
1,461

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 = '[email protected]'.

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

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

9 REPLIES 9
Read only

suresh_datti
Active Contributor
0 Likes
1,461

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

Read only

0 Likes
1,461

Hi,

Can you what is the id of for my requirement.

rgd

p.kp

Read only

Former Member
0 Likes
1,461

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.

Read only

Former Member
0 Likes
1,461

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 = '[email protected]'.

translate RECLIST-RECEIVER to lower case.

RECLIST-REC_TYPE = 'U'.

append RECLIST.

RECLIST-RECEIVER = '[email protected]'.

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

Read only

0 Likes
1,461

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

Read only

Former Member
0 Likes
1,461

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

Read only

0 Likes
1,461

Hi

Thank you amith

Read only

Former Member
0 Likes
1,462

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 = '[email protected]'.

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

Read only

Former Member
0 Likes
1,461

Hi,

Pls award points if u found any answer helpful.

regards,

amit m.