<?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 Commit - Within Loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952976#M65591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am stuck up with ABAP Dump - DBIF_RSQL_ERROR.&lt;/P&gt;&lt;P&gt;In my code i am fetching data from database tables ZOMLT and ZOMLG. The main objective being delete the orphan entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;available in ZOMLT. (ZOMLT and ZOMLG have 5 primary keys in common)&lt;/P&gt;&lt;P&gt;Step 1 : Based on conditions i have retrieved data from ZOMLT.&lt;/P&gt;&lt;P&gt;Step 2 : Retrieved data from ZOMLG and placed them into i_ZOMLT and i_ZOMLG internal tables respectively.&lt;/P&gt;&lt;P&gt;The total records that are selected are for ZOMLT - *38838 and for ZOMLG - 10622.&lt;/P&gt;&lt;P&gt;I have declared a variable of size 6 as a counter to get the total number of records in internal table, that is the reason &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why the * (So, the reords fetched cross the 6 digits).&lt;/P&gt;&lt;P&gt;Step 3 : Then i am looping at i_ZOMLT and reading i_ZOMLG.&lt;/P&gt;&lt;P&gt;If the records available in ZOMLT does not match with the record present in ZOMLT i build the Orphan internal table (IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC NE 0 then build Orphan itab).&lt;/P&gt;&lt;P&gt;The total records in the Orphan tab is *17594, this is the place i get the ABAP/4 processor: DBIF_RSQL_SQL_ERROR - no more &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locks available.&lt;/P&gt;&lt;P&gt;Once the Prohan table is populated i use the mass delete statement DELETE ZOMLT client specified from ITAB ORPHAN_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be great if your views/suggestions are provided on how to retrieve a smaller data from ZOMLT and ZOMLG and delete the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;entries and then proceed for further data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;- PSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2005 03:19:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-21T03:19:14Z</dc:date>
    <item>
      <title>Commit - Within Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952976#M65591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am stuck up with ABAP Dump - DBIF_RSQL_ERROR.&lt;/P&gt;&lt;P&gt;In my code i am fetching data from database tables ZOMLT and ZOMLG. The main objective being delete the orphan entries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;available in ZOMLT. (ZOMLT and ZOMLG have 5 primary keys in common)&lt;/P&gt;&lt;P&gt;Step 1 : Based on conditions i have retrieved data from ZOMLT.&lt;/P&gt;&lt;P&gt;Step 2 : Retrieved data from ZOMLG and placed them into i_ZOMLT and i_ZOMLG internal tables respectively.&lt;/P&gt;&lt;P&gt;The total records that are selected are for ZOMLT - *38838 and for ZOMLG - 10622.&lt;/P&gt;&lt;P&gt;I have declared a variable of size 6 as a counter to get the total number of records in internal table, that is the reason &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why the * (So, the reords fetched cross the 6 digits).&lt;/P&gt;&lt;P&gt;Step 3 : Then i am looping at i_ZOMLT and reading i_ZOMLG.&lt;/P&gt;&lt;P&gt;If the records available in ZOMLT does not match with the record present in ZOMLT i build the Orphan internal table (IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC NE 0 then build Orphan itab).&lt;/P&gt;&lt;P&gt;The total records in the Orphan tab is *17594, this is the place i get the ABAP/4 processor: DBIF_RSQL_SQL_ERROR - no more &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locks available.&lt;/P&gt;&lt;P&gt;Once the Prohan table is populated i use the mass delete statement DELETE ZOMLT client specified from ITAB ORPHAN_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be great if your views/suggestions are provided on how to retrieve a smaller data from ZOMLT and ZOMLG and delete the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;entries and then proceed for further data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;- PSK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2005 03:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952976#M65591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-21T03:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Commit - Within Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952977#M65592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing I must ask you is why you're using a character variable (type c or n) to hold the count of the number of records. you should be using an Integer variable for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eben though you have described what you're doing, your subject line confuses me a little. Is there any COMMIT within a LOOP ? Which LOOP are you talking about ? and why do you have the COMMIT at all ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it isn't too long, can you paste your code here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2005 04:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952977#M65592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-21T04:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Commit - Within Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952978#M65593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops! I have just seen that you have another thread for this question. Could you [please refrain from doing that in future ? It is really confusing to have mutliple threads for the same question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2005 04:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952978#M65593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-21T04:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Commit - Within Loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952979#M65594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your message I understood that the error is due to some issue with locking. Possible reasons for this could be;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not have sufficient table space&lt;/P&gt;&lt;P&gt;Size of the rollback segment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can send me the shortdump, I can give more specific answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of populating all the orphan records in the itab and then delete from ZOMLT, as soon as the orphan itab is filled with 10,000 records, delete from ZOMLT and do a commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2005 06:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-loop/m-p/952979#M65594</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-07-21T06:16:50Z</dc:date>
    </item>
  </channel>
</rss>

