<?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: How to Avoid Loop for  improve report performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497062#M17036</link>
    <description>&lt;P&gt;In addiction, the 2 selects if they cannot be put into a previous join for any reason, they can be used as join themselves and refined even more adding the condition " lfimg &amp;lt;&amp;gt; 0" to reduce the amount of read data.&lt;/P&gt;
  &lt;P&gt;Even more, i see a collect so i guess a SUM could work fair better in the Select.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 10:27:14 GMT</pubDate>
    <dc:creator>SimoneMilesi</dc:creator>
    <dc:date>2017-10-23T10:27:14Z</dc:date>
    <item>
      <title>How to Avoid Loop for  improve report performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497060#M17034</link>
      <description>&lt;P&gt;form get_shpqty .&lt;BR /&gt; loop at t_order.&lt;BR /&gt; select * into corresponding fields of wa_shpqty&lt;BR /&gt; from lips&lt;BR /&gt; where vgbel = t_order-vbeln.&lt;BR /&gt; select single vkorg into wa_shpqty-vkorg from vbak&lt;BR /&gt; where vbeln = t_order-vbeln.&lt;BR /&gt; collect wa_shpqty into it_shpqty.&lt;BR /&gt; endselect.&lt;BR /&gt; endloop.&lt;BR /&gt; delete it_shpqty where lfimg eq 0.&lt;BR /&gt; &lt;BR /&gt; endform.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 05:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497060#M17034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-23T05:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid Loop for  improve report performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497061#M17035</link>
      <description>&lt;P&gt;Basic question: you may use SELECT ... FOR ALL ENTRIES or database joins, but you need to test which option is the best, check the execution plans, etc.&lt;/P&gt;
  &lt;P&gt;The big questions are: which fields are taken from LIPS (which ones are in WA_SHPQTY), and how do you determine T_ORDER?&lt;/P&gt;
  &lt;P&gt;And you forgot to say that you ask the question because there is a warning "select in a loop" by the static check (?) Note that both solutions above are also equivalent to a "select in a loop", but produce a better performance because they group several selections at a time.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 06:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497061#M17035</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-23T06:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid Loop for  improve report performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497062#M17036</link>
      <description>&lt;P&gt;In addiction, the 2 selects if they cannot be put into a previous join for any reason, they can be used as join themselves and refined even more adding the condition " lfimg &amp;lt;&amp;gt; 0" to reduce the amount of read data.&lt;/P&gt;
  &lt;P&gt;Even more, i see a collect so i guess a SUM could work fair better in the Select.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 10:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-loop-for-improve-report-performance/m-p/497062#M17036</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2017-10-23T10:27:14Z</dc:date>
    </item>
  </channel>
</rss>

