<?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: Send e-mail without commiting LUW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677096#M1945410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using SUBMIT with AND RETURN to handle the email logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 12:12:23 GMT</pubDate>
    <dc:creator>Ryan-Crosby</dc:creator>
    <dc:date>2016-05-05T12:12:23Z</dc:date>
    <item>
      <title>Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677080#M1945394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having problem with sending e-mail in user exit (EXIT_SAPLV60B_008). E-mail is not sent without commit.&lt;/P&gt;&lt;P&gt;Steps in user exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF problem_exist.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - send e-mail (wrapped in simple Z RFC module)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - MESSAGE TYPE 'E'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: "send e-mail" logic (tried both CL_BCS and SO_NEW_DOCUMENT_ATT_SEND_API1) works OK if it is commited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;a) CALL FUNCTION func DESTINATION 'NONE' - synchronous RFC triggers a database commit in the calling program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;b) CALL FUNCTION func IN BACKGROUND TASK - transactional RFC needs commit in calling program to start&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;c) &lt;SPAN class="qtext"&gt;CALL FUNCTION func STARTING NEW TASK task - asynchronous RFC triggers a database commit in the calling program&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;d) &lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3849047"&gt;CL_BCS_MESSAGE&lt;/A&gt; - has 2 ways:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - DESTINATION 'NONE' = same as a)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - IN UPDATE TASK = update is not completed because of MESSAGE TYPE 'E'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;Any ideas are welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;SPAN class="qtext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 11:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677080#M1945394</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-04T11:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677081#M1945395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your question if it is working okay with SO_NEW_DOCUMENT_ATT_SEND_API1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677081#M1945395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-04T13:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677082#M1945396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works ok only if it is commited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is - how to send e-mail and NOT commit user uxit "LUW" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 14:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677082#M1945396</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-04T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677083#M1945397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should already be a job setp up to trigger email via program &lt;SPAN style="color: #000000; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px;"&gt;RSCONN01 if not you can ask BASIS to run it at regular intervals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You already mentioned calling function module in background task but there is a addition to it &lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px;"&gt;AS SEPARATE UNIT , since you mentioned the function module is a RFC , you can try with this option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 18:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677083#M1945397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-04T18:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677084#M1945398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe keep data in shared memory and run job to send a mails from it every 5 minutes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 18:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677084#M1945398</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-05-04T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677085#M1945399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you also&amp;nbsp; checked if exporting data to cluster tables also commits current LUW ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 18:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677085#M1945399</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-05-04T18:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677086#M1945400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It wont create "Send request" in spool without commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not see how "AS SEPARATE UNIT" might help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 05:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677086#M1945400</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-05T05:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677087#M1945401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. This might be the option.&lt;/P&gt;&lt;P&gt;But I would like to keep a job as last option (for now only one).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 06:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677087#M1945401</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-05T06:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677088#M1945402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other way could be to create a web service and call it from user-exit. But I do not know if calling web service will not trigger commit as well. This is just a thought.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 06:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677088#M1945402</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-05-05T06:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677089#M1945403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;your question: how to send e-mail and NOT commit user uxit "LUW"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;you are within Billing Document Save exit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;EM&gt;IF problem_exist.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - send e-mail (wrapped in simple Z RFC module)&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - MESSAGE TYPE 'E'&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;EM&gt;ENDIF.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;If you don't want to use the RSCONN* JObs, you might need to some how trigger an implicit commit. Does your functionality allow for it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 06:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677089#M1945403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-05T06:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677090#M1945404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to send an email, then send an error message, why is it an issue that there's some database commit? Why don't you just rollback before sending the message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 07:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677090#M1945404</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-05-05T07:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677091#M1945405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid doing commit (and rollback) in user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I will try it:&lt;/P&gt;&lt;P&gt;IF problem_exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROLLBACK WORK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEND_EMAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMIT WORK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MESSAGE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 08:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677091#M1945405</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-05T08:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677092#M1945406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To avoid the database commit, maybe you can try the &lt;STRONG&gt;internal statement&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION '...' DESTINATION 'NONE' KEEPING LOGICAL UNIT OF WORK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As explained in the &lt;A href="http://help.sap.com/abapdocu_702/en/abapcall_function_destination_int.htm"&gt;ABAP doc&lt;/A&gt;, you only risk a system shut down :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, there's no fully-satisfying solution. Remember to retain the KISS principle for exceptional/complex situations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 10:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677092#M1945406</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-05-05T10:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677093#M1945407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you want to send an email in certain situations when creating an accounting document. If you want to send the email if the document is posted successfully, then the calling program will do the COMMIT WORK - which is, indeed, needed to send the email.&lt;/P&gt;&lt;P&gt;If you want to send the email when the posting fails, I do not see the necessity to do it in the userexit. You should have the results in the calling program. Here you can send via CL_BCS and issue COMMIT WORK preferredly through function BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that there is a fundamantal difference between (implicit) database commit and an ABAP COMMIT WORK (as issued by &lt;SPAN style="font-size: 13.3333px;"&gt; function BAPI_TRANSACTION_COMMIT).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-size: 13.3333px;"&gt; (implicit) database commit as triggered by any interruption a there are screen displays or RFC calls or end of current transaction or program run will commit all pending (done in current LUW process) to the database. It will not affect any update tasks registered by call function in update task or perform on commit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-size: 13.3333px;"&gt; ABAP COMMIT WORK (as issued by &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; function BAPI_TRANSACTION_COMMIT) will release all &lt;SPAN style="font-size: 13.3333px;"&gt;update tasks registered by call function in update task or perform on commit for processing. This will also send you mail.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to send your mail in any case from the userexit, you may call function starting new task. In the called function you can send the mail and do the &lt;SPAN style="font-size: 13.3333px;"&gt;COMMIT WORK. But here you do not know if the calling transation is completed successfully and thus commited to database or if it has failed and thus been rolled back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope my explanation can be understood - feel free to ask.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 10:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677093#M1945407</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-05-05T10:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677094#M1945408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand your explanation &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; thank you.&lt;/P&gt;&lt;P&gt;My scenario is that I stop creating document in user exit with MESSAGE 'E', which works OK. Right before this message I need send e-mail. But there is no implicit commit after that, which would commit e-mail. I think there is "implicit rollback" caused by error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for STARTING NEW TASK:&lt;/P&gt;&lt;P&gt;"Asynchronous RFC triggers a database commit in the calling program." (quote from ABAP keyword help)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I will stick with this approach:&lt;/P&gt;&lt;P&gt;ROLLBACK&lt;/P&gt;&lt;P&gt;MAIL&lt;/P&gt;&lt;P&gt;COMMIT&lt;/P&gt;&lt;P&gt;MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I hoped that there is some nice and simple way to send mail and not doing commits/rollbacks in user exit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 11:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677094#M1945408</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-05T11:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677095#M1945409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would rather not experiment with this : )&lt;/P&gt;&lt;P&gt;Yes, KISS solution is the one I search for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 11:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677095#M1945409</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-05-05T11:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677096#M1945410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using SUBMIT with AND RETURN to handle the email logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 12:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677096#M1945410</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2016-05-05T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677097#M1945411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right before the message (knowing it will cancel the transaction) call function starting new task. The implicit commit does no harm.&lt;/P&gt;&lt;P&gt;In the called function send bcs mail and commit work (for the own LUW).&lt;/P&gt;&lt;P&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 12:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677097#M1945411</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-05-05T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677098#M1945412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you trigger workflow from your error message, through which you can send an email?&lt;/P&gt;&lt;P&gt;Use transaction SWUY to achieve the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 12:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677098#M1945412</guid>
      <dc:creator>rajad</dc:creator>
      <dc:date>2016-05-05T12:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail without commiting LUW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677099#M1945413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there my be even more ways &lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like write a file on the application server, run a recurring job to frequently read the file and raise an event to start another job to process a unix script on a remote server that can send unix mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure, you willnever have any maintenance problems &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 16:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-e-mail-without-commiting-luw/m-p/11677099#M1945413</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-05-05T16:45:09Z</dc:date>
    </item>
  </channel>
</rss>

