Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2012 at 03:39 AM

    Hi,

    Rather than attaching a task in the email why don't you trigger a workflow which will take care of it.

    Regards,

    Sayan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 03, 2012 at 06:06 AM

    Hello Bhaumik,

    Can you explain us bit more on the scenario. You can send a mail to outlook using ABAP Class. But what is the need here to act that as a TASK. Are you going to have any actions which will take place in that task. If So, why can't you create a simple workflow with Mail and Activity Step for handling the task and sending mail.

    Regards

    Nizamudeen SM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2012 at 04:35 AM

    Hi,

    If you want to go ahead with workflows please follow the link. It might help

    http://technet.microsoft.com/en-us/library/gg998764.aspx

    Regards,

    Sayan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.