<?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 Problem function module SO_NEW_DOCUMENT_ATT_SEND_API1 with commit work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957870#M1602504</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 upgrade Z programs of the SAP 4.6c and 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a function with to send mail, I used a standar function  SO_NEW_DOCUMENT_ATT_SEND_API1, in 4.6c, this function does not have the &lt;STRONG&gt;"commit_work"&lt;/STRONG&gt; parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have Z function (zhr_enviar_correo), the function execute in badi of the infotype 2001.([infotype view|http://img849.imageshack.us/img849/4189/infotype.jpg]) / ([Badi debugging wiew|http://img32.imageshack.us/img32/1740/badiinfo.jpg]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. the zhr_enviar_correo called the standar function SO_NEW_DOCUMENT_ATT_SEND_API1 ([Breakpoint in zhr_enviar_correo|http://img151.imageshack.us/img151/1629/sendapi1.jpg]) with commit_work = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the following breakpoint is in call standar function SO_DOCUMENT_SEND_API1 ([breakpoint in SO_NEW_DOCUMENT_ATT_SEND_API1|http://img850.imageshack.us/img850/2695/api1s.jpg])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I have a breakpoint in the commit work (&amp;lt;a target=iq4 href=http://img98.imageshack.us/img98/6333/commitw.jpg&amp;gt;breakpoint SO_DOCUMENT_SEND_API1&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. The debugging (F5) in "commit work"(previous step) continued(or returned) in Modul Pool (PAI) (&amp;lt;a target=iq5 href=http://img815.imageshack.us/img815/4562/commitwinf.jpg&amp;gt;breakpoint in MP20000&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. I press F8 (finish the execute), after, I review the SCOT tcode(SMTP) without "wait mail" (&amp;lt;a target=iq6 href=http://img857.imageshack.us/img857/9089/scotinf.jpg&amp;gt;SCOT tcode view&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. But, I execute with SE37 tcode, I put the mandatory parameter in my function zhr_envio_correo (&amp;lt;a target=iq=7 href=http://img191.imageshack.us/img191/591/se37.jpg&amp;gt;SE37 view&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. I follow the previous steps 2,3,4 until breakpoint commint work in SO_DOCUMENT_SEND_API (step 4), but I press F5 and commit work continued in different program, It continue in class CL_SEND_REQUEST_BCS in method ON_SAVE_REQUEST. (&amp;lt;a target=iq8 href=http://img215.imageshack.us/img215/6035/commitse37.jpg&amp;gt;Breakpoint in CL_SEND_REQUEST_BCS&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. I review the SCOT tcode and I view the "wait mail"  (&amp;lt;a target=iq9 href=http://img839.imageshack.us/img839/5748/scotse37.jpg&amp;gt;SCOT view (after SE37 run)&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. I try too with sending mail use CL_SEND_REQUEST class(other zprogram), but the result is the same, the commit work continue different depends the another program(in my case modul pool) or SE37 tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the post and answers,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2011 14:34:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-02T14:34:39Z</dc:date>
    <item>
      <title>Problem function module SO_NEW_DOCUMENT_ATT_SEND_API1 with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957870#M1602504</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 upgrade Z programs of the SAP 4.6c and 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a function with to send mail, I used a standar function  SO_NEW_DOCUMENT_ATT_SEND_API1, in 4.6c, this function does not have the &lt;STRONG&gt;"commit_work"&lt;/STRONG&gt; parameter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have Z function (zhr_enviar_correo), the function execute in badi of the infotype 2001.([infotype view|http://img849.imageshack.us/img849/4189/infotype.jpg]) / ([Badi debugging wiew|http://img32.imageshack.us/img32/1740/badiinfo.jpg]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. the zhr_enviar_correo called the standar function SO_NEW_DOCUMENT_ATT_SEND_API1 ([Breakpoint in zhr_enviar_correo|http://img151.imageshack.us/img151/1629/sendapi1.jpg]) with commit_work = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the following breakpoint is in call standar function SO_DOCUMENT_SEND_API1 ([breakpoint in SO_NEW_DOCUMENT_ATT_SEND_API1|http://img850.imageshack.us/img850/2695/api1s.jpg])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. I have a breakpoint in the commit work (&amp;lt;a target=iq4 href=http://img98.imageshack.us/img98/6333/commitw.jpg&amp;gt;breakpoint SO_DOCUMENT_SEND_API1&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. The debugging (F5) in "commit work"(previous step) continued(or returned) in Modul Pool (PAI) (&amp;lt;a target=iq5 href=http://img815.imageshack.us/img815/4562/commitwinf.jpg&amp;gt;breakpoint in MP20000&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. I press F8 (finish the execute), after, I review the SCOT tcode(SMTP) without "wait mail" (&amp;lt;a target=iq6 href=http://img857.imageshack.us/img857/9089/scotinf.jpg&amp;gt;SCOT tcode view&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. But, I execute with SE37 tcode, I put the mandatory parameter in my function zhr_envio_correo (&amp;lt;a target=iq=7 href=http://img191.imageshack.us/img191/591/se37.jpg&amp;gt;SE37 view&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. I follow the previous steps 2,3,4 until breakpoint commint work in SO_DOCUMENT_SEND_API (step 4), but I press F5 and commit work continued in different program, It continue in class CL_SEND_REQUEST_BCS in method ON_SAVE_REQUEST. (&amp;lt;a target=iq8 href=http://img215.imageshack.us/img215/6035/commitse37.jpg&amp;gt;Breakpoint in CL_SEND_REQUEST_BCS&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. I review the SCOT tcode and I view the "wait mail"  (&amp;lt;a target=iq9 href=http://img839.imageshack.us/img839/5748/scotse37.jpg&amp;gt;SCOT view (after SE37 run)&amp;lt;/a&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10. I try too with sending mail use CL_SEND_REQUEST class(other zprogram), but the result is the same, the commit work continue different depends the another program(in my case modul pool) or SE37 tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the post and answers,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 14:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957870#M1602504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-02T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function module SO_NEW_DOCUMENT_ATT_SEND_API1 with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957871#M1602505</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;After Function Module Call., use this.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;submit rsconn01 with mode = 'INT' . " this is to push immediately the mails manually &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 15:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957871#M1602505</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-06-02T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function module SO_NEW_DOCUMENT_ATT_SEND_API1 with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957872#M1602506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included your code, but result is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I run function with SE37 tcode, I view in the SCOT tcode, the mail is not in "wait", it appears in "finished" (&amp;lt;a target=iq1 href=http://img695.imageshack.us/img695/5861/scotsubmit.jpg&amp;gt;SCOT tcode&amp;lt;/a&amp;gt;).&lt;/P&gt;&lt;P&gt;- I run function with infotype 2001, I view in the SCOT tcode no change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your post and answer, buy my problem is not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 16:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957872#M1602506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-02T16:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function module SO_NEW_DOCUMENT_ATT_SEND_API1 with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957873#M1602507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember we had something similar once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that a COMMIT WORK from within a user exit or BAdI is strictly forbidden because it may lead to database inconsistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can wrap the mailing functionality (preferentially CL_BCS) in a function module including COMMIT WORK and call this function module STARTING NEW TASK  or DESTINATION NONE so that it runs in its own LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helped for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 18:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957873#M1602507</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-06-02T18:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem function module SO_NEW_DOCUMENT_ATT_SEND_API1 with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957874#M1602508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is the same with your changes, but I founded sap note &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1 error en commit desde modulpool. (460999/2011)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  MOVE sy-oncom TO oncom.&lt;/P&gt;&lt;P&gt;  sy-oncom = 'S'.&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;  MOVE oncom TO sy-oncom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your posts and answer.&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-function-module-so-new-document-att-send-api1-with-commit-work/m-p/7957874#M1602508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-08T09:37:28Z</dc:date>
    </item>
  </channel>
</rss>

