<?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 About commit transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067186#M726863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a BDC which will call a add-on program, In the add-on program, which will call a bapi to create po, the following is a snapshot of source code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION '/AFS/BAPI_PO_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          PO_HEADER                        = wa_po_header&lt;/P&gt;&lt;P&gt;          PO_HEADER_ADD_DATA               = wa_po_header_add&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          PURCHASEORDER                    = WA_POGR-EBELN&lt;/P&gt;&lt;P&gt;          RETURN                           = WA_RET&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          PO_ITEMS                         = wa_po_items&lt;/P&gt;&lt;P&gt;          PO_ITEM_SCHEDULES                = wa_po_item_sch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          WAIT       = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I using debug to trace what's problem, i found that once i call the BAPI_TRANSACTION_COMMIT. after that the following instruction will not execute and jump to end of BDC, it means i can't commit the transaction. Anyone can give me some idea. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 02:59:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-21T02:59:13Z</dc:date>
    <item>
      <title>About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067186#M726863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a BDC which will call a add-on program, In the add-on program, which will call a bapi to create po, the following is a snapshot of source code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION '/AFS/BAPI_PO_CREATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          PO_HEADER                        = wa_po_header&lt;/P&gt;&lt;P&gt;          PO_HEADER_ADD_DATA               = wa_po_header_add&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          PURCHASEORDER                    = WA_POGR-EBELN&lt;/P&gt;&lt;P&gt;          RETURN                           = WA_RET&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          PO_ITEMS                         = wa_po_items&lt;/P&gt;&lt;P&gt;          PO_ITEM_SCHEDULES                = wa_po_item_sch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          WAIT       = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I using debug to trace what's problem, i found that once i call the BAPI_TRANSACTION_COMMIT. after that the following instruction will not execute and jump to end of BDC, it means i can't commit the transaction. Anyone can give me some idea. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 02:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067186#M726863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T02:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067187#M726864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is essential to use the 'BAPI_TRANSACTION_COMMIT' to save the data which is there in the BAPI's LUW. If you don't use this FM then your document will not be saved in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this FM creates a problem, then try to put the FM in the end portion of that subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067187#M726864</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-21T03:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067188#M726865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;commit work and wait.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067188#M726865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067189#M726866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you're trying to put two commits in one LUW. I think you have to separate the BAPI from the BDC session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067189#M726866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067190#M726867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to separate, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067190#M726867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067191#M726868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thae BAPI is in a custom transaction being called by the BDC right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 03:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067191#M726868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T03:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: About commit transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067192#M726869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 04:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-commit-transaction/m-p/3067192#M726869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T04:13:33Z</dc:date>
    </item>
  </channel>
</rss>

