Skip to Content
0
Former Member
May 03, 2012 at 01:12 AM

Send email notification as a task in the recipient's outlook from webdynpro

53 Views

HI Experts,

I have a requirement where I have to send email notification with only a simple specific body but the issue is that I need to send it as a 'TASK' in the recipients mailbox. And i dont need any attachment with the email.

Im using this FM -

What changes do i have to do to this FM so that I am able to send it as a task in the users outlook.

call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data = gd_doc_data
put_in_outbox = 'X'
* SENDER_ADDRESS = SY-UNAME
* SENDER_ADDRESS_TYPE = 'B'
commit_work = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
* SENDER_ID =
tables
packing_list = it_packing_list
* OBJECT_HEADER =
* contents_bin = it_attachment
contents_txt = it_message
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
receivers = it_receivers
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
.

if sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
SUBMIT rsconn01 WITH mode = 'INT'
AND RETURN.
endif.