Skip to Content
avatar image
Former Member

Send mail to outlook with out hitting SOST

HI Experts,

I need help to achieve this functionality. In general we will send mails though sost to outlook. But my client want to trigger a new mail with the selected objects from the grid (But It should not go through SOST). Same as like an excel sheet generate from grid, In the similar way a new draft mail has to be generated. Later they will add any comments and send it to whomsoever they want.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 27, 2017 at 12:33 PM

    You can use method set_send_immediately of cl_bcs class (if you are sending e-mail using this class).

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vijaya Simha Chintarlapalli Reddy

      When we hit 'new email' in our microsoft outlook a new e-mail will be generate right. In the similar way when user hit the custom button a new mail has to be triggered with the selected content but it should not go from sost. something like html file (.eml file ). User can add address and edit content if necessary. later user can send it or save it to his mail drafts.

  • Jan 27, 2017 at 01:43 PM

    Build your mail as usual (CL_BCS) don't execute method cl_bcs->send but method cl_bcs->edit so displaying the mail so the user can edit it.

    Or use OLE to dialog with Outlook.Application.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      HI raymond Giuseppi,

      Seems like it will be helpful but will that generated mail triggered through SOST. i mean if user doesnt have any configurations made for them at sost still they can able to see the mail. I need to prepare a draft mail which should not go through sost. Later user can edit the content and add the receiver id's and then he will send. it should be like 'New mail' option in our microsoft outlook.

  • Jan 27, 2017 at 02:30 PM

    It looks like you want the OLE method... Check this link - Send mail using OLE. If you Google "ABAP Outlook OLE" there are several other discussions about this topic. Since this is a Microsoft API, searching for help with their Outlook API might give you more options too.

    PS - Maybe your question should have specified that you want an Outlook message window to popup, so that the user can view / modify the email before sending.

    Add comment
    10|10000 characters needed characters exceeded