<?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 BAPI Function module with commit work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820915#M1314882</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 have called 2 BAPI functio modules one by one and said commit work after function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If first is succussful and 2nd one fails, will commit work save data to database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  COMMIT WORK  is written after 2 BAPI'S.&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2009 14:44:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-26T14:44:36Z</dc:date>
    <item>
      <title>BAPI Function module with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820915#M1314882</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 have called 2 BAPI functio modules one by one and said commit work after function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If first is succussful and 2nd one fails, will commit work save data to database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  COMMIT WORK  is written after 2 BAPI'S.&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt; Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 14:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820915#M1314882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Function module with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820916#M1314883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, It will not get updated. I mean to say the first bapi is failed then the first bapi data is not updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the second BAPI is not dependent on first BAPI then the data gets updated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharagava&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bhargava TC on Jun 26, 2009 4:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 14:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820916#M1314883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Function module with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820917#M1314884</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;It depends on the Bapi's which you are using...some of bapi's have internal commit for which there is not required to call the BAPI_TRANSACTION_COMMIT fm to update the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no internal commit then they will not get updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 14:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820917#M1314884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Function module with commit work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820918#M1314885</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;Yes It is poosible however make sure there is no dependency between both the bapi &lt;/P&gt;&lt;P&gt;if there is anything like header or item then you need to take care of that.&lt;/P&gt;&lt;P&gt;i have one sample code you can refer that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Terratory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TERRITORY_CREATE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        territory_data = wa_terr_creat&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        terrid         = w_terr_id&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        territory_t    = t_terr_txt[]&lt;/P&gt;&lt;P&gt;        return         = t_msgtab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT w_terr_id IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF Employee assigment record avails&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF NOT wa_terr-objid IS INITIAL&lt;/P&gt;&lt;P&gt;         AND NOT wa_terr-partner IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the employee assignment record in internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        wa_terr_emp-employee = wa_terr-partner. "Business Partner ID&lt;/P&gt;&lt;P&gt;        wa_terr_emp-pos_code = wa_terr-objid. "Employee position&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Append description in internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        APPEND wa_terr_emp TO t_terr_emp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set indicator for employee assignment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        wa_change-employees = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TERRITORY_CHANGE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            terrid                = w_terr_id&lt;/P&gt;&lt;P&gt;            valid_date            = wa_terr-valid_from&lt;/P&gt;&lt;P&gt;            objects_to_be_changed = wa_change&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            employee              = t_terr_emp[]&lt;/P&gt;&lt;P&gt;            return                = t_msgtab[].&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Save the Changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CRM_TERRMAN_COMMIT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            iv_and_wait = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        w_error_counter = w_error_counter + 1.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CRM_TERRMAN_ROLLBACK'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 11:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-with-commit-work/m-p/5820918#M1314885</guid>
      <dc:creator>dhirendra_pandit</dc:creator>
      <dc:date>2009-07-06T11:20:26Z</dc:date>
    </item>
  </channel>
</rss>

