Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

abap report to send email in background

$
0
0

Hello,

 

This code works perfectly in foreground, but don't work in Background !!

 

DATA: out   TYPE ole2_object,
         outmail TYPE ole2_object.


CREATE OBJECT out 'Outlook.Application' .

   CALL METHOD OF out 'CREATEITEM' = outmail

   EXPORTING #1 = 0.

   SET PROPERTY OF outmail 'TO' = 'address@example.com'.

   SET PROPERTY OF outmail 'SUBJECT' = 'Sending emails'.

   SET PROPERTY OF outmail 'BODY' = 'this is how u do it using OLE'.

   CALL METHOD OF outmail 'SEND'.

   SET PROPERTY OF out 'Visible' = 1.

   FREE OBJECT out.



Any Help...?


Viewing all articles
Browse latest Browse all 8652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>