Skip to Content
0

Send mail to outlook with out hitting SOST

Jan 27, 2017 at 12:22 PM

237

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Tomas Buryanek Jan 27, 2017 at 12:33 PM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded

HI tomas,

if i use the above method. will it go without hitting sost. reason why am asking is.. From the grid whenever i hit a button a new draft mail has to be generated with the selected content. later i will add receiver address and some extra content to the mail body and send/save the mail manually

0

which FM or class are you currently using whats your exact requirement ? why do you want to change the receivr and mail body after hitting send ?

0
Vijaya Simha Chintarlapalli Reddy

Hi Vijaya,

i am not sending any mail. but when i hit the custom button automatically a new mail with the selected rows in the body has to appeared. Later user will add the receiver ids and click on the send button which we do in normal outlook process.

So here am looking to generate mail something like html format with all the content so later user will add the receivers and send to the others inbox.

0

But where does user want to see the email ?? If it is when he clicks on some button int he ALv output you can save the output in some internal table and give an option to select the receiver ID and subject

Thanks,

Vijay.

0
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.

0
Raymond Giuseppi
Jan 27, 2017 at 01:43 PM
0

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.

Regards,
Raymond

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
Raghu Govindarajan Jan 27, 2017 at 02:30 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded