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

Regarding User-ids

Former Member
0 Likes
395

Hello,

Whenever we click a save button in solution-manager in crm_dno_monitor,one pop-up screen will come with some user-ids.These User-ids contains email adresses of lotus-notes.What i need is,whenever we click the ok-button on that screen the mail should trigger to those mail-ids.for sending mail im using SO_NEW_DOCUMENT_SEND_API1 function-module.But to extract the mail-ids of those users what can i do,how can i acheive this.

Thanks in advance.

Regards,

Asmitha.

2 REPLIES 2
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
365

Hi

Alternately you can use the below peace of code:

form email_mat_master .

data: l_id type string.

loop at s_email.

g_email = s_email-low.

l_id = syst-sysid.

concatenate k_sap l_id k_ucb into g_sender.

call function 'EFG_GEN_SEND_EMAIL' exporting

i_title = 'KPI Report - Status'(046)

i_sender = g_sender

i_recipient = g_email

i_flg_commit = k_x

i_flg_send_immediately = k_x

tables

i_tab_lines = it_tab_soli

exceptions

not_qualified = 1

failed = 2

others = 3.

if sy-subrc <> 0.

write:/ sy-subrc.

endif.

if s_email-low ne space.

g_flag_email = 1.

endif.

endloop.

endform. " email_mat_master

<b>Here for g_sender. you can define your own Email Address otherthan SAP.</b>

Regards,

Sree

Read only

Former Member
0 Likes
365

Hi asmitha,

U can use the table PA0105 for fetching the Mail address for the respective user ID as follows.

Step1: Fetch the value of PERNR from PA0105 by providing the subty = 0001and USRID = user ID U already know.

Step 2: Provide the PERNR fetched from above and subty = 0010 to PA0105. Now U will get the MAil ID in USRID field.