<?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: How to commit 'API_RE_CN_CHANGE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194769#M468313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PL take a look at the source code of the method FINALIZE_OBJECT_CHG in the class CL_RECA_BAPI_SERVICES. the following piece of code in that method is what looks like storing the changes into the database.. may be you can copy the same logic..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      IF mf_update_task_local = abap_true.
        SET UPDATE TASK LOCAL.
      ENDIF.

      CALL METHOD io_busobj-&amp;gt;store
        EXPORTING
          if_in_update_task = mf_in_update_task
        EXCEPTIONS
          error             = 1
          OTHERS            = 2.
      IF sy-subrc &amp;lt;&amp;gt; 0.
        io_msglist-&amp;gt;add_symsg( ).
        cf_error = abap_true.
      ELSE.
        ef_stored = abap_true.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2007 14:26:47 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2007-04-25T14:26:47Z</dc:date>
    <item>
      <title>How to commit 'API_RE_CN_CHANGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194768#M468312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using API_RE_CN_CHANGE to change a real estate contract(Flexible - Realestate). while doing so i am not able to  &amp;lt;i&amp;gt;Commit&amp;lt;/i&amp;gt; this change to database. This happens despite the fact that I am using statement COMMIT WORK (also tried using BAPI_TRANSACTION_COMMIT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to commit these changes to database while using BAPI_RE_CN_CHANGE but not if API_RE_CN_CHANGE is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason i prefer API_RE_CN_CHANGE over BAPI_RE_CN_CHANGE is because i need values in buffer too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So could any one suggest a way to commit changes done to a real estate contract (Transaction code - RECN) via API_RE_CN_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mukundhan KN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 14:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194768#M468312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T14:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to commit 'API_RE_CN_CHANGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194769#M468313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PL take a look at the source code of the method FINALIZE_OBJECT_CHG in the class CL_RECA_BAPI_SERVICES. the following piece of code in that method is what looks like storing the changes into the database.. may be you can copy the same logic..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      IF mf_update_task_local = abap_true.
        SET UPDATE TASK LOCAL.
      ENDIF.

      CALL METHOD io_busobj-&amp;gt;store
        EXPORTING
          if_in_update_task = mf_in_update_task
        EXCEPTIONS
          error             = 1
          OTHERS            = 2.
      IF sy-subrc &amp;lt;&amp;gt; 0.
        io_msglist-&amp;gt;add_symsg( ).
        cf_error = abap_true.
      ELSE.
        ef_stored = abap_true.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 14:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194769#M468313</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-04-25T14:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to commit 'API_RE_CN_CHANGE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194770#M468314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuble suggestion. it worked.&lt;/P&gt;&lt;P&gt;To be precise, the SET UPDATE TASK LOCAL statement did not get effect in the custom code that we write. it hold credit only when called from the call that it belongs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence i created an object for type IF_RECN_CONTRACT using class method CF_RECN_CONTRACT=&amp;gt;FIND. And after changing contracts using API_RE_CN_CHANGE, i called the method 'STORE' of interface IF_RECN_CONTRACT. and that solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely your suggestion was the trigger to enable thought process in this direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Mukundhan KN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 15:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-commit-api-re-cn-change/m-p/2194770#M468314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-25T15:06:25Z</dc:date>
    </item>
  </channel>
</rss>

