<?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: select with loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373643#M1993809</link>
    <description>&lt;P&gt;If you can't make it work "normally", you have to find an "abnormal" solution, it's not forbidden to write native SQL. By the way, why do you want to create an ABAP program for a technical database feature?&lt;/P&gt;&lt;P&gt;You're right about client. Do you really have a multi-client system?&lt;/P&gt;&lt;P&gt;I think you may find better answers in an Oracle forum. Or go for Patrick solution to parallelize the count (you may also easily parallelize Oracle SQL).&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 19:14:20 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-01-08T19:14:20Z</dc:date>
    <item>
      <title>select with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373639#M1993805</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
  &lt;P&gt;i have performance issue with below code &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;LOOP AT it_dd02l ASSIGNING FIELD-SYMBOL(&amp;lt;wa_dd02l&amp;gt;).
    SELECT COUNT(*) FROM (&amp;lt;wa_dd02l&amp;gt;-tabname) INTO count_temp.
...
ENDLOOP.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;My Requirement is find All traction table with total no of records .&lt;/P&gt;
  &lt;P&gt;any one have better solution for above code &lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 18:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373639#M1993805</guid>
      <dc:creator>umayaraj</dc:creator>
      <dc:date>2021-01-07T18:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: select with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373640#M1993806</link>
      <description>&lt;P&gt;I'm not sure you can improve the SQL statement. An option would be to foresee some parallelization, and thus run x SQL statements at a time (by using an RFC that returns the amount of documents of a certain (number of) table(s)), That way when one batch/RFC is done, you can trigger another etc.&lt;/P&gt;&lt;P&gt;example 'pseudo' code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION '[Your Function]'
    STARTING NEW TASK [taskname]
    DESTINATION IN GROUP [server_group]
    PERFORMING [Retrieve Info Form] ON END OF TASK
    EXPORTING
      ..&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jan 2021 19:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373640#M1993806</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-01-07T19:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: select with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373641#M1993807</link>
      <description>&lt;P&gt;It takes a while to count the number of records of each table (especially big ones). It used to be counted approximately on Oracle database via the statistics, to determine the best execution plans, for performance purpose. What is your database software? Do you really need to have an exact count rather than an approximate one? Can't you use other measurement means like number of blocks to know the size on disk? (it may count unused space and deleted records)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 23:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373641#M1993807</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-07T23:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: select with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373642#M1993808</link>
      <description>&lt;P&gt;Hi sandra,&lt;/P&gt;&lt;P&gt;DataBase: Oracle  &lt;/P&gt;&lt;P&gt;id Native SQL Not Recommended to run Production system right?&lt;/P&gt;&lt;P&gt;and Native SQL DB Statics Give All Clients information We can't to split Client based Info.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373642#M1993808</guid>
      <dc:creator>umayaraj</dc:creator>
      <dc:date>2021-01-08T18:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: select with loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373643#M1993809</link>
      <description>&lt;P&gt;If you can't make it work "normally", you have to find an "abnormal" solution, it's not forbidden to write native SQL. By the way, why do you want to create an ABAP program for a technical database feature?&lt;/P&gt;&lt;P&gt;You're right about client. Do you really have a multi-client system?&lt;/P&gt;&lt;P&gt;I think you may find better answers in an Oracle forum. Or go for Patrick solution to parallelize the count (you may also easily parallelize Oracle SQL).&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 19:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-loop/m-p/12373643#M1993809</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-08T19:14:20Z</dc:date>
    </item>
  </channel>
</rss>

