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 distribution list

Former Member
0 Likes
3,455

hi to all,

In transaction-SO23 i created distribution list. in recipient column i entered the E-Mail address, i selected the Recipient Type via internet.The name of distribution list is saved in table SOOD.

I want to know in which table the E-mail address stored. This requirement is for,if the user gives the Distribution name in the selection screen then program has to send E-Mails to the listed addresses in the distribution list.

Thanx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,593

Hi Sun

The email address is present in table ADR6.

For this you will get an address number and person number

Use the address number in USR21 to get the user.

Award points if found useful.

Regards

Inder

hi to all,

In transaction-SO23 i created distribution list. in recipient column i entered the E-Mail address, i selected the Recipient Type via internet.The name of distribution list is saved in table SOOD.

I want to know in which table the E-mail address stored. This requirement is for,if the user gives the Distribution name in the selection screen then program has to send E-Mails to the listed addresses in the distribution list.

Thanx

4 REPLIES 4
Read only

LucianoBentiveg
Active Contributor
0 Likes
2,593

Yon don't need to know every single mail in distribution list. In table receivers of function module SO_NEW_DOCUMENT_SEND_API1, you have column REC_TYPE wich allows 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

Use 'C'.

Regards.

Read only

Laxmana_Appana_
Active Contributor
0 Likes
2,593

Hi,

No need to find the E-mail ID in the distribution list , if you pass receiver, rec_type parameters to the structure somlreci1 in FM : SO_NEW_DOCUMENT_ATT_SEND_API1 , it automatically send mails to all E-mails under distribution list.

Ex:

somlreci1-receiver = 'ZSHDIS'.<---- name of the shared distribution list.

somlreci1-rec_type = 'C'.

Regards

Appana

Read only

Former Member
0 Likes
2,594

Hi Sun

The email address is present in table ADR6.

For this you will get an address number and person number

Use the address number in USR21 to get the user.

Award points if found useful.

Regards

Inder

Read only

0 Likes
2,593

If you really need to get the email addresses under the distrubution list, then please use the following function module.



report zrich_0001.



data: idlient type table of sodlienti1 with header line.

parameters: dli_name type soobjinfi1-obj_name.


call function 'SO_DLI_READ_API1'
     exporting
          dli_name                   = dli_name
          shared_dli                 = 'X'
     tables
          dli_entries                = idlient
     exceptions
          dli_not_exist              = 1
          operation_no_authorization = 2
          parameter_error            = 3
          x_error                    = 4
          others                     = 5.


loop at idlient.
  write:/ idlient-member_adr.
endloop.

Regards,

Rich Heilman