12-01-2008 10:21 AM
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
12-01-2008 10:24 AM
12-01-2008 10:26 AM
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.
08-11-2011 2:44 PM
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.
12-01-2008 10:26 AM
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
12-01-2008 10:31 AM
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
12-01-2008 10:37 AM
hi,
Check function module SO_DLI_LIST_READ and tables SOID, SODM, SOUD.
may be it can solve ur problem ..
regards,
prashanti
04-15-2009 12:11 PM