cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

former_member185879
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi cant we handle it with coding in WDA ? Like how we use simple FM for sending email. Cant we configure it to handle task sending in outlook. ??

Former Member
0 Kudos

Hi,

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

Regards,

Sayan