<?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: BAPI_TRANSACTION_COMMIT  in select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960344#M1156437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2008 06:52:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-22T06:52:50Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT  in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960340#M1156433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've written following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_bom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in create_bom ive written a bapi to create bom and immediatley calling BAPI_TRANSACTION_COMMIT. However the program crashes giving dump saying that i cant have commit within my database cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im i remove the BAPI_TRANSACTION_COMMIT outside ot create_bom subroutine and place it after endsleect everything works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one guide me what is happening ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why cant i have a BAPI_TRANSACTION_COMMIT within a select endselect loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 12:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960340#M1156433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT  in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960341#M1156434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Store first all entries of ZTABLE in internal table I_ZTABLE.&lt;/P&gt;&lt;P&gt;Then loop over internal table and do your perform create_bom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 12:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960341#M1156434</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2008-12-10T12:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT  in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960342#M1156435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do an F1 on select and you will learn the set of instructions that you cannot have in between a SELECT / ENDSELECT loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK is not possible and will give a dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960342#M1156435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT  in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960343#M1156436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is similar to COMMIT WORK.&lt;/P&gt;&lt;P&gt;As COMMIT WORK is not allowed within SELECT...ENDSELECT, so you are geting dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can replace SELECT..ENDSELECT  with SELECT..INTO ITAB..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;perform create_bom.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2008 13:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960343#M1156436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-10T13:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT  in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960344#M1156437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 06:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-in-select/m-p/4960344#M1156437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T06:52:50Z</dc:date>
    </item>
  </channel>
</rss>

