<?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>Question Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474091#M3801271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to give the following submit after the commit work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;WORK&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;SUBMIT &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;RSCONN01 &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;MODE &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;'INT' &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;John K.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 12:09:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-07-16T12:09:58Z</dc:date>
    <item>
      <title>FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaq-p/10474076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of a workflow for PPM , I am using this Function module to send email. But this FM is getting dumped and no information received by the WF and hence it remains in process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump details are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Short text of error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; COMMIT WORK during ON COMMIT or ON ROLLBACK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Calls trace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33 METHOD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_DPR_TRANSACTION_MANAGER====CP&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_DPR_TRANSACTION_MANAGER====CM009&amp;nbsp;&amp;nbsp;&amp;nbsp; 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_DPR_TRANSACTION_MANAGER=&amp;gt;ON_TRANSACTION_FINISHED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 32 METHOD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_SYSTEM_TRANSACTION_STATE===CP&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_SYSTEM_TRANSACTION_STATE===CM001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_SYSTEM_TRANSACTION_STATE=&amp;gt;RAISE_TRANSACTION_FINISHED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 31 FORM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPMSSY0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPMSSY0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 464&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_AFTER_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 30 FUNCTION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPLSOI1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LSOI1U32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 172&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SO_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 29 FUNCTION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAPLSOI1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LSOI1U25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 10:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaq-p/10474076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T10:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474077#M3801257</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;you should use the workflow log to determine the content of the parameters that you are sending to this task and method. Then either in SWO1 (if it is a BOT Method) or in se24 (Class method) you can then debug it to find out where it is going awry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474077#M3801257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T12:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474078#M3801258</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;Already did that , took the parameter values from the workflow task container and executed the BOR method in debug, no dump and email received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while within the workflow every time this step is being encountered and this FM is being called&amp;nbsp; its getting dumped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;LS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474078#M3801258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474079#M3801259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Who is the actual user which executes this method? If it is WF-BATCH then make sure that this user has a valid email address, it doesn't have to exist just as long as it conforms to mail address conventions i.e. &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xxx@zzz.com"&gt;xxx@zzz.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 13:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474079#M3801259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T13:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474080#M3801260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method is being executed by the WF-BATCH. The email address of the receiver is being provided in the binding to the BOR method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 06:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474080#M3801260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T06:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474081#M3801261</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;Try to use SO_NEW_DOCUMENT_ATT_SEND_API1 with/without COMMIT WORK = SPACE/X and check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474081#M3801261</guid>
      <dc:creator>anjan_paul</dc:creator>
      <dc:date>2014-06-26T09:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474082#M3801262</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;Already tried that. No email is being sent when its used without comit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 10:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474082#M3801262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T10:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474083#M3801263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's complaining that you are performing a commit inside a larger transaction. The COMMIT_WORK parameter must be off (default). If, as you say, no mail gets sent then it would seem to me some transaction logic is broken. You could either try to work out why, or the &lt;SPAN style="text-decoration: line-through;"&gt;lazy&lt;/SPAN&gt; simple way is to add a manual COMMIT WORK after the call to your FM. Ideally do this as late as possible before handling control back to workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474083#M3801263</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2014-06-26T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474084#M3801264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called the email FM without commit and commited immediately after it but the result is again the same dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any More Suggestions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 14:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474084#M3801264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-27T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474085#M3801265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I meant was to do the commit as late as possible, not immediately afterwards. I don't know your application process, but what the dump says is that something at a higher level is in control of a transaction and you're throwing a spanner in the works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if it doesn't sent the mail without a COMMIT then something is not right in your transaction handling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the code where you're sending the mail in a dedicated method or does it do other stuff? The COMMIT should be right at the end of the method. Or, perhaps the workflow is a task being run synchronously, or something...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read the call stack of the dump it could tell you more, perhaps there is a Z-object higher up and you may need to look there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 16:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474085#M3801265</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2014-06-27T16:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474086#M3801266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are quite right. Although Logically it does not make sense. The Business Process is that A Workflow activity want to do something with an &lt;STRONG&gt;entity X&lt;/STRONG&gt; and if it is not able to do it then another activity sends an email and the result is the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it seems that the Entity X was not cleanly rollbacked. I am using the standard Function module to perform the change to the Entity and it must Rollack it as well if not successful, I hope atleast.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advisable to use explicit Rollback ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;LS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 10:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474086#M3801266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-16T10:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474087#M3801267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you have just about answered your own question &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes, if something started a transaction and it was not completely terminated (either complete or rollback) then another COMMIT will cause upset.&lt;/P&gt;&lt;P&gt;I am not fully in the picture, but what it sounds like is that you are trying to send the mail within the same LUW. So perhaps what is happening is that it's busy rolling back and you're trying to do new stuff?&lt;/P&gt;&lt;P&gt;If so, the a better strategy may be to complete the failure within the WF step, model an exception and send the mail in a separate step. This makes it clearer in the WF log and easy for anyone to see where the mail originated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps, &lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 10:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474087#M3801267</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2014-07-16T10:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474088#M3801268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are two different Workflow Steps/tasks. One step attempts to change an entity and the other&amp;nbsp; sends an email afterwards if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is after the first step or at the end of the first step , should i write an explicit rollback or may be commit , so that it finishes off cleanly and the next step should send the email ? I am using a standard function module in the first step so i was hoping i need not to take care about any commit or rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had already tried a wait for few minutes after the first step, still the result was the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474088#M3801268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-16T11:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474089#M3801269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is interesting... (translation: I haven't a clue &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wait a few minutes and it still fails then it's unlikely to be a delayed write - unless your system is struggling performance-wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try a COMMIT WORK AND WAIT at the end of the first step to see if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does a standard sendmail step work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other code in the method or just the send mail stuff?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474089#M3801269</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2014-07-16T11:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474090#M3801270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its interesting &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok i try with commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard email task used to work but because of complex email requirements, i changed it to the activity one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is just creating the email content and then calling the FM to send the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 11:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474090#M3801270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-16T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474091#M3801271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to give the following submit after the commit work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;WORK&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;SUBMIT &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;RSCONN01 &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;MODE &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;'INT' &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;John K.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 12:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474091#M3801271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-16T12:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM SO_NEW_DOCUMENT_ATT_SEND_API1 mail problem</title>
      <link>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474092#M3801272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;linda smith wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The standard email task used to work but because of complex email requirements, i changed it to the activity one.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So it's got to be something in your email code. Perhaps copy the basics from the standard email task and perform your changes incrementally, or remove as much as possible from your code to start with just a blank email and then add bits back in - just to see what causes it to break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Maybe you're calling a Z method that calls another Z method in another class that then calls a FM that starts a new DB transaction you're not aware of or something distant like that. I'm sure you get the idea...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 13:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fm-so-new-document-att-send-api1-mail-problem/qaa-p/10474092#M3801272</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2014-07-16T13:50:22Z</dc:date>
    </item>
  </channel>
</rss>

