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: 

Function Module used to get email address from distribution lists

Former Member
0 Kudos

Hi experts,

can anyone please help me about what is the function module used to get email address from distribution list.

thank you

regards

vijay

7 REPLIES 7

Former Member

Hi Vijay,

Just go through the following link:

Hope this will help.

Regards,

Nitin.

Former Member

HI,

Check this code...

call function 'SO_DLI_READ_API1'

exporting

dli_name = soid-objnam

shared_dli = 'X'

tables

dli_entries = i_distlist

exceptions

dli_not_exist = 1

operation_no_authorization = 2

parameter_error = 3

x_error = 4

others = 5.

if sy-subrc ne 0.

else.

loop at i_distlist.

if i_distlist-member_adr is initial.

move i_distlist-member_nam to i_user-bapibname.

call function 'BAPI_USER_GET_DETAIL'

exporting

username = i_user-bapibname

importing

address = wa_address

tables

return = i_return.

move wa_address-e_mail to wa_receiver-receiver.

append wa_receiver to i_receiver.

else.

move i_distlist-member_adr to wa_receiver-receiver.

append wa_receiver to i_receiver.

endif.

endloop.

endif.

0 Kudos

Hello Avinash,

I have a similar requirement, i.e., getting email address from participant list

It is of type SCSPART

Is there any function module to get email ids from the participant list?

Please suggest me some solution.

Regards

DNR Varma.

Former Member
0 Kudos

hi,

use 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send a document through mail.

'HR_FBN_GET_USER_EMAIL_ADDRESS' Get the email address according to SAP user ID

Former Member
0 Kudos

Check this code...

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.

Edited by: krupa jani on Dec 1, 2008 11:49 AM

Former Member
0 Kudos

hi,

Check function module SO_DLI_LIST_READ and tables SOID, SODM, SOUD.

may be it can solve ur problem ..

regards,

prashanti

0 Kudos

thank you