<?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: answer to the locked thread: use maximum aggregate function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316293#M1393584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What thread is that Siegfried?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2009 16:42:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-16T16:42:57Z</dc:date>
    <item>
      <title>answer to the locked thread: use maximum aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316292#M1393583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the locked thread below is actually as different as any other unlocked thread&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
UP TO 1 ROWS
where
doc_number = wa_pdate_temp-salesdoc and
s_ord_item = wa_pdate_temp-salesitem and
sched_line = wa_pdate_temp-sline
order by /bic/zpviewdt descending .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order by and up to n rows can be very expensive, better use the  max(bic/zpviewdt),&lt;/P&gt;&lt;P&gt;for details read documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 16:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316292#M1393583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T16:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: answer to the locked thread: use maximum aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316293#M1393584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What thread is that Siegfried?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 16:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316293#M1393584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T16:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: answer to the locked thread: use maximum aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316294#M1393585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess this is the one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1532215"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 18:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316294#M1393585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T18:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: answer to the locked thread: use maximum aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316295#M1393586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that one was locked because it didn't look as if the OP had done any work to see if there was in fact a problem or done a run time analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 19:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/answer-to-the-locked-thread-use-maximum-aggregate-function/m-p/6316295#M1393586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T19:06:12Z</dc:date>
    </item>
  </channel>
</rss>

