<?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: RE: avoid the select statements in loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354275#M1036747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Create an internal Table it_dfkkko with ur required fields.&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single field&lt;/P&gt;&lt;P&gt;     into table it_dfkkko&lt;/P&gt;&lt;P&gt;     from dfkkko&lt;/P&gt;&lt;P&gt;     where opbel = t_dfkkop-augbl.&lt;/P&gt;&lt;P&gt;loop at t_dfkkop.&lt;/P&gt;&lt;P&gt;if not t_dfkkop-augbl is initial and&lt;/P&gt;&lt;P&gt;t_dfkkop-xragl is initial.&lt;/P&gt;&lt;P&gt;read table it_dfkkko with key field = t_dfkkop-field.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and&lt;/P&gt;&lt;P&gt;dfkkko-blart = 'A3'.&lt;/P&gt;&lt;P&gt;delete t_dfkkop.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear : w_augdt, w_stdat, w_process.&lt;/P&gt;&lt;P&gt;select max( augdt ) max( stdat )&lt;/P&gt;&lt;P&gt;into (w_augdt, w_stdat)&lt;/P&gt;&lt;P&gt;from dfkkrapt where opbel = t_dfkkop-opbel&lt;/P&gt;&lt;P&gt;and opupw = t_dfkkop-opupw&lt;/P&gt;&lt;P&gt;and opupk = t_dfkkop-opupk&lt;/P&gt;&lt;P&gt;and stdat ge w_clrfr&lt;/P&gt;&lt;P&gt;and stdat le w_clrto&lt;/P&gt;&lt;P&gt;group by opbel opupw opupk augdt stdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2008 10:29:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-18T10:29:59Z</dc:date>
    <item>
      <title>RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354272#M1036744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Plz suggest me how to avoid the select statement in loop ?&lt;/P&gt;&lt;P&gt;any alternative is there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_dfkkop.&lt;/P&gt;&lt;P&gt;    clear dfkkko.&lt;/P&gt;&lt;P&gt;    if not t_dfkkop-augbl is initial and&lt;/P&gt;&lt;P&gt;           t_dfkkop-xragl is initial.&lt;/P&gt;&lt;P&gt;      select single * from dfkkko&lt;/P&gt;&lt;P&gt;             where opbel = t_dfkkop-augbl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0 and&lt;/P&gt;&lt;P&gt;         dfkkko-blart = 'A3'.&lt;/P&gt;&lt;P&gt;        delete t_dfkkop.&lt;/P&gt;&lt;P&gt;        continue.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    clear : w_augdt, w_stdat, w_process.&lt;/P&gt;&lt;P&gt;    select max( augdt ) max( stdat )&lt;/P&gt;&lt;P&gt;          into (w_augdt, w_stdat)&lt;/P&gt;&lt;P&gt;     from dfkkrapt where opbel =  t_dfkkop-opbel&lt;/P&gt;&lt;P&gt;                    and  opupw =  t_dfkkop-opupw&lt;/P&gt;&lt;P&gt;                    and  opupk =  t_dfkkop-opupk&lt;/P&gt;&lt;P&gt;                    and  stdat ge w_clrfr&lt;/P&gt;&lt;P&gt;                    and  stdat le w_clrto&lt;/P&gt;&lt;P&gt;      group by opbel opupw opupk augdt stdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 09:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354272#M1036744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T09:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354273#M1036745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;outside the loop . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;STRONG&gt;for all entries&lt;/STRONG&gt;  for table dfkkko   ....... in the loop use read statement . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that you will populate the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354273#M1036745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T10:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354274#M1036746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where exactly the ENDLOOP is placed? Can you tell that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Narin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354274#M1036746</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-08-18T10:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354275#M1036747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Create an internal Table it_dfkkko with ur required fields.&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single field&lt;/P&gt;&lt;P&gt;     into table it_dfkkko&lt;/P&gt;&lt;P&gt;     from dfkkko&lt;/P&gt;&lt;P&gt;     where opbel = t_dfkkop-augbl.&lt;/P&gt;&lt;P&gt;loop at t_dfkkop.&lt;/P&gt;&lt;P&gt;if not t_dfkkop-augbl is initial and&lt;/P&gt;&lt;P&gt;t_dfkkop-xragl is initial.&lt;/P&gt;&lt;P&gt;read table it_dfkkko with key field = t_dfkkop-field.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 and&lt;/P&gt;&lt;P&gt;dfkkko-blart = 'A3'.&lt;/P&gt;&lt;P&gt;delete t_dfkkop.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear : w_augdt, w_stdat, w_process.&lt;/P&gt;&lt;P&gt;select max( augdt ) max( stdat )&lt;/P&gt;&lt;P&gt;into (w_augdt, w_stdat)&lt;/P&gt;&lt;P&gt;from dfkkrapt where opbel = t_dfkkop-opbel&lt;/P&gt;&lt;P&gt;and opupw = t_dfkkop-opupw&lt;/P&gt;&lt;P&gt;and opupk = t_dfkkop-opupk&lt;/P&gt;&lt;P&gt;and stdat ge w_clrfr&lt;/P&gt;&lt;P&gt;and stdat le w_clrto&lt;/P&gt;&lt;P&gt;group by opbel opupw opupk augdt stdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354275#M1036747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354276#M1036748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single field&lt;/P&gt;&lt;P&gt;into table it_dfkkko&lt;/P&gt;&lt;P&gt;from dfkkko&lt;/P&gt;&lt;P&gt;for all entries in table t_dfkkop&lt;/P&gt;&lt;P&gt;where opbel = t_dfkkop-augbl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 10:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354276#M1036748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T10:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354277#M1036749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;really your reply helps me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your due response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 11:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354277#M1036749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T11:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354278#M1036750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the endselect  two performs are there ,in these performs also too many select statements are used ,but those taking less time. &lt;/P&gt;&lt;P&gt;after that ENDLOOP is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 11:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354278#M1036750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T11:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354279#M1036751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you solved the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 18:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354279#M1036751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: RE: avoid the select statements in loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354280#M1036752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not yet solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-avoid-the-select-statements-in-loop/m-p/4354280#M1036752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T07:17:10Z</dc:date>
    </item>
  </channel>
</rss>

