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

Function Module to send emails to users

Former Member
0 Likes
587

Hi,

Please help me in finding a FM that will allow me to send emails to users if a field in the internal table is blank.

Please suggest.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
553

hi dolly,

below is the link of function modules...

in that link... check for function module to send email...[Link for function modules..|http://www.sap-img.com/abap-function.htm]

Reward if helpful..

regards,

Brijesh

3 REPLIES 3
Read only

Former Member
0 Likes
554

hi dolly,

below is the link of function modules...

in that link... check for function module to send email...[Link for function modules..|http://www.sap-img.com/abap-function.htm]

Reward if helpful..

regards,

Brijesh

Read only

Former Member
0 Likes
553

Hi

Use this

call function 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = doc_data " Subject

document_type = 'RAW'

put_in_outbox = 'X'

commit_work = 'X'

TABLES

object_header = obj_head " Header

object_content = obj_con[] " Body of mail

receivers = rec " reciver

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

document_type_not_exist = 3

operation_no_authorization = 4

parameter_error = 5

x_error = 6

enqueue_error = 7

others = 8.

rgds

Arun

Read only

Former Member
0 Likes
553

Hi,

first u need to write logic to check the internal table field is blank or not.

if the field is blank u need to trigger the function module.

try this to send the mails

ISR_FI_SEND_EMAIL

ISR_FI_SEND_EMAIL_NEW_USER

SO_NEW_DOCUMENT_SEND_API1

SO_OBJECT_SEND

reward if helpful

raam