<?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: COMMIT CL_BCS e-mail in BACKGROUND TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489702#M1931956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I need to do some test, I'll try to do it in the evening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2016 08:35:03 GMT</pubDate>
    <dc:creator>LukaszPegiel</dc:creator>
    <dc:date>2016-01-13T08:35:03Z</dc:date>
    <item>
      <title>COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489689#M1931943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building custom wrapper class to send e-mails. Inside it uses &lt;STRONG&gt;CL_BCS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Problem is, that there is need to COMMIT after cl_bcs&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;send( ). But &lt;STRONG&gt;direct COMMIT is not possible&lt;/STRONG&gt; in most user exits and BADIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually this is solved by RFC module which contains whole sending part of code and called IN BACKGROUND TASK. But now I want to create simple and reusable way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking about simple RFC module with input of TYPE REF TO cl_bcs. Inside just call -&amp;gt;send, commit and return result. But RFC module can not have TYPE REF TO parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;Is there any elegant method how to commit CL_BCS SEND to not interfere with user exits/BADI update task? Any tips, ideas..? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 09:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489689#M1931943</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-12T09:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489690#M1931944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489690#M1931944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-12T10:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489691#M1931945</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;try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: transaction_mgr type ref to if_os_transaction_manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: transaction type ref to if_os_transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transaction_mgr = cl_os_system=&amp;gt;get_transaction_manager( ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transaction = transaction_mgr-&amp;gt;get_current_transaction( ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transaction-&amp;gt;set_mode_update( oscon_dmode_direct ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch cx_root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set update task local.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; your code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this in some user exits &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 10:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489691#M1931945</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-01-12T10:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489692#M1931946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This is new to me and very interesting. And probably will do the job &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Let me try it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is SAP HELP for this if anybody also interested:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw73ehp1/helpdata/en/49/e7afcb39d9088de10000000a421937/content.htm" title="http://help.sap.com/saphelp_nw73ehp1/helpdata/en/49/e7afcb39d9088de10000000a421937/content.htm"&gt;Components of the Transaction Service - ABAP - Object Services - SAP Library&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489692#M1931946</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-12T11:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489693#M1931947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but there is no helpful info for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 11:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489693#M1931947</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-12T11:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489694#M1931948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Usually this is solved by RFC module which contains whole sending part of code and called IN BACKGROUND TASK.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;IMHO, this is a better solution! You are decoupling (SoC) the sending Email functionality from the BAdI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489694#M1931948</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2016-01-12T12:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489695#M1931949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice idea to use Transaction OS &lt;SPAN __jive_emoticon_name="cool" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/74/images/emoticons/cool.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always had this idea to use them, but never quite got a chance to!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't the SET_MODE_UPDATE method be &lt;TT&gt;OSCON_DMODE_LOCAL&lt;/TT&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489695#M1931949</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2016-01-12T12:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489696#M1931950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In my cases because of &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; font-size: 13px;"&gt;compatibility mode I could not use OSCON_DMODE_LOCAL, but the output is the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489696#M1931950</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-01-12T12:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489697#M1931951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sending e-mail functionality can be in separate BAdi implementation (if supported). And in separate new BAdi method. Or in some other Z*class. Is not it enought for "SoC"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is separation of LUW/update, so my e-mail commit will not interfere with place where is e-mail called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 14:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489697#M1931951</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-12T14:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489698#M1931952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will have to study this little bit more. Having problem with compatibility mode.&lt;/P&gt;&lt;P&gt;Getting exception: "You cannot set the update mode to "local" in compatibility mode".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying this (steps as time goes):&lt;/P&gt;&lt;P&gt;lets say in user exit/BAdI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- UPDATE ztab. "not commited&lt;/P&gt;&lt;P&gt;- call ZCL_EMAIL send method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inside:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - set OSCON_DMODE_LOCAL throws exception&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - CL_BCS mail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - COMMIT WORK.&lt;/P&gt;&lt;P&gt;- end of call ZCL_EMAIL send method&lt;/P&gt;&lt;P&gt;- here ztab should not be updated yet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489698#M1931952</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-12T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489699#M1931953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use direct mode when you go to the code of cl_os_transaction method IF_OS_TRANSACTION~SET_MODE_UPDATE then you'll notice that when you'll choose direct mode then it will work same as local.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489699#M1931953</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-01-12T15:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489700#M1931954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not it does not throw exception with &lt;SPAN style="color: #333333; font-size: 12px;"&gt;OSCON_DMODE_DIRECT. But does not help with commit (ztab update is commited with ZCL_MAIL inner commit).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489700#M1931954</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-13T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489701#M1931955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite sure that all CL_BCS supporters are following this thread with much interests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of it IMHO it would be very helpful if a blog post or a document will be posted with working sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this will help to promote the use of CL_BCS instead of using SO_NEW_DOCUMENT_ATT_SEND_API1...&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489701#M1931955</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-01-13T07:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489702#M1931956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I need to do some test, I'll try to do it in the evening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489702#M1931956</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-01-13T08:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489703#M1931957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thanks a lot. I am testing too.&lt;/P&gt;&lt;P&gt;Tried logic which is in DEMO_TRANSACTION_SERVICE program: create_transaction(), start(), end(), but no success...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One new thing I found: &lt;STRONG&gt;add_attachment&lt;/STRONG&gt; method of bcs_document also commits.&lt;/P&gt;&lt;P&gt;So whole e-mail construction from start to send needs to be separated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489703#M1931957</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-13T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489704#M1931958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried several times and it seems it was working for me as I have only one update/delete/insert statement, so in fact I could only call simply 'set update task local' in this case without using transaction manager. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read cl_os_transaction documentation few times now and it seem that 'commit work' commits changes of all level of transaction manager, means top level + subtransactions so it will not help in your case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I think there is no other case but running the RFC module in background task or update task as &lt;A __default_attr="167632" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Suhas Saha" href="https://community.sap.com/"&gt;&lt;/A&gt; has mentioned , so your wrapper class would need to have some FG to call FM with specified parameters to be able to recreate the cl_bcs object after FM call. I know it's quite annoying, but at the moment seems the only way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But anyway I'll keep on trying....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489704#M1931958</guid>
      <dc:creator>LukaszPegiel</dc:creator>
      <dc:date>2016-01-13T20:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489705#M1931959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for effort! Yea it seems bad. I searched prior starting this topic, and found only RFC way &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means to pack whole thing into RFC, all interfaces (subject,recipients,attachment table, etc.) &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Since whole cl_bcs e-mail creating needs to be separated (not only last COMMIT after -&amp;gt;send() ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 07:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489705#M1931959</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-14T07:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489706#M1931960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So far only discovered option to encapsulate cl_bcs e-mail logic in different LUW is &lt;STRONG&gt;RFC&lt;/STRONG&gt; (and calling it &lt;STRONG&gt;in destination 'NONE'&lt;/STRONG&gt;, background etc..). &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some examples I found in standard code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRM_EMAIL_SEND_EMAIL - RFC&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S31"&gt;* -&amp;gt; call mail sending via RFC to create a new 'comittable' LUW&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'CRM_EMAIL_SEND_EMAIL' &lt;/SPAN&gt;DESTINATION &lt;SPAN class="L0S33"&gt;'NONE'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S33"&gt;---&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S31"&gt; * logic in an RFC module as a commit work needs to be carried out in order&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S31"&gt;* to send a send request from BCS. The RFC creates a new LUW which ensures&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S31"&gt;* - no interference with application data which is waiting to be commited&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S31"&gt;* - no interference with 'object pool' applications like the one order, where&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp; commit logic is changed&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCS_TEST23 - demo program, b&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;ut it uses "old" SO function:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"Sending on-commit through RFC"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESTINATION &lt;SPAN class="L0S33"&gt;'NONE'&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489706#M1931960</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-19T09:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489707#M1931961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a combination of using "ABAP Objects Share Memory Enable (SHMA)" as the carrier of the pay load (email content + local cl_bcs to do the actual sending) and a very simple update function that will call a method for the send will do the trick .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not try it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 10:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489707#M1931961</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-01-19T10:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: COMMIT CL_BCS e-mail in BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489708#M1931962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that &lt;STRONG&gt;cl_document_bcs-&lt;/STRONG&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;add_attachment( )&lt;/STRONG&gt; commits LUW too (in FM SDOK_COMMIT). And maybe some other methods... So there goes simple function &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 12:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-cl-bcs-e-mail-in-background-task/m-p/11489708#M1931962</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2016-01-19T12:17:07Z</dc:date>
    </item>
  </channel>
</rss>

