<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sending an Email in with Delayed Delivery. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-an-email-in-with-delayed-delivery/m-p/819342#M42582</link>
    <description>&lt;P&gt;Please check this thread. I think it has your answer:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/752394" target="test_blank"&gt;https://archive.sap.com/discussions/thread/752394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below is copied from that link:&lt;/P&gt;&lt;P&gt;You can send the email in the future using the OO methods as well. Just not well documented but if you dig into the class itself, you'll find that CL_BCS has a public attribute called SEND_REQUEST which is of type CL_SEND_REQUEST_BCS. This class has a method to set the send time.&lt;/P&gt;&lt;P&gt;Example below, I'll set it 6 minutes from now.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_timestamp type timestamp. 
GET TIME STAMP FIELD lv_timestamp. 
lv_timestamp = CL_ABAP_TSTMP=&amp;gt;ADD( tstmp = lv_timestamp  secs = 360 ).
lr_cl_bcs-&amp;gt;SEND_REQUEST-&amp;gt;set_send_at( lv_timestamp ).
lr_cl_bcs-&amp;gt;send( space ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 17:45:35 GMT</pubDate>
    <dc:creator>mh97</dc:creator>
    <dc:date>2019-03-07T17:45:35Z</dc:date>
    <item>
      <title>Sending an Email in with Delayed Delivery.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-an-email-in-with-delayed-delivery/m-p/819341#M42581</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I have a Requirement of Sending the Emails With Delayed Delivery, Just Like Outlook,&lt;/P&gt;
  &lt;P&gt;I Have Z-Program that sends a Remainder Emails, In which User Sets the date and time for Receiving Emails. Different Users sets a different time for getting the emails. We run the Program at 6 AM, and the User keeps time for around 10 AM.&lt;/P&gt;
  &lt;P&gt;Now My Program should generate Emails at 6 AM and reside in SOST Until the 10 AM and then sends to the Corresponding Receipent.&lt;/P&gt;
  &lt;P&gt;I am Using CL_BCS Class for Sending the Email. &lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Kranthi&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 10:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-an-email-in-with-delayed-delivery/m-p/819341#M42581</guid>
      <dc:creator>kranthi_kiran5</dc:creator>
      <dc:date>2019-03-07T10:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sending an Email in with Delayed Delivery.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-an-email-in-with-delayed-delivery/m-p/819342#M42582</link>
      <description>&lt;P&gt;Please check this thread. I think it has your answer:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.sap.com/discussions/thread/752394" target="test_blank"&gt;https://archive.sap.com/discussions/thread/752394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below is copied from that link:&lt;/P&gt;&lt;P&gt;You can send the email in the future using the OO methods as well. Just not well documented but if you dig into the class itself, you'll find that CL_BCS has a public attribute called SEND_REQUEST which is of type CL_SEND_REQUEST_BCS. This class has a method to set the send time.&lt;/P&gt;&lt;P&gt;Example below, I'll set it 6 minutes from now.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_timestamp type timestamp. 
GET TIME STAMP FIELD lv_timestamp. 
lv_timestamp = CL_ABAP_TSTMP=&amp;gt;ADD( tstmp = lv_timestamp  secs = 360 ).
lr_cl_bcs-&amp;gt;SEND_REQUEST-&amp;gt;set_send_at( lv_timestamp ).
lr_cl_bcs-&amp;gt;send( space ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 17:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-an-email-in-with-delayed-delivery/m-p/819342#M42582</guid>
      <dc:creator>mh97</dc:creator>
      <dc:date>2019-03-07T17:45:35Z</dc:date>
    </item>
  </channel>
</rss>

