<?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: Commiting two things simultaneously in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688945#M1669769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;To elaborate&amp;nbsp; in program looks like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;call proxy method&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; if sy-subrc eq 0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Call&amp;nbsp; the FM that updates the DB table, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if sy-subrc eq 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit work. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(I can't write table modifcation logic inside my program, as there are many other programs doing same this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think when the FM call&amp;nbsp; returns back to my program SAP does a commit itself,I can't rollBack DB entry.so problem happens modification happens first then the proxy is commited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I need both the things to be dependent on each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 03:37:00 GMT</pubDate>
    <dc:creator>former_member607643</dc:creator>
    <dc:date>2012-04-12T03:37:00Z</dc:date>
    <item>
      <title>Commiting two things simultaneously</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688943#M1669767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I do have a proxy call and table update(using RFC function module) in my program. I want&amp;nbsp; make it both commit at one time and if any issues happen in either table updation or proxy call both should be rolled back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My FM is RFC one returning some flag value, I can't make it update FM i believe.&lt;/P&gt;&lt;P&gt;Suggest me some ways&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688943#M1669767</guid>
      <dc:creator>former_member607643</dc:creator>
      <dc:date>2012-04-11T20:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Commiting two things simultaneously</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688944#M1669768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujit,&lt;/P&gt;&lt;P&gt;Not sure about the entire scenario, but what i would do is, bring them into one SAP LUW, meaning i will create a new FM/Proxy, and call the current proxy and FM sequentially, and on successful execution of both proxy and FM, i will perform a commit, otherwise i will run a rollback command.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Reg&lt;/P&gt;&lt;P&gt;Pras&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 03:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688944#M1669768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-12T03:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Commiting two things simultaneously</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688945#M1669769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;To elaborate&amp;nbsp; in program looks like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;call proxy method&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; if sy-subrc eq 0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Call&amp;nbsp; the FM that updates the DB table, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if sy-subrc eq 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commit work. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(I can't write table modifcation logic inside my program, as there are many other programs doing same this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think when the FM call&amp;nbsp; returns back to my program SAP does a commit itself,I can't rollBack DB entry.so problem happens modification happens first then the proxy is commited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I need both the things to be dependent on each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 03:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688945#M1669769</guid>
      <dc:creator>former_member607643</dc:creator>
      <dc:date>2012-04-12T03:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Commiting two things simultaneously</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688946#M1669770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujit,&lt;/P&gt;&lt;P&gt;Try to write a new single wrapper FM in the target system, which will have the logic to call the proxy and FM and have a single commit work based on the requirement. Later, you can use the new FM to call from another system using RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There by you achieve dependency and also the rollback on failure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 03:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commiting-two-things-simultaneously/m-p/8688946#M1669770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-12T03:57:18Z</dc:date>
    </item>
  </channel>
</rss>

