<?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: Regarding max select statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-select-statement/m-p/1746963#M323981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select matnr&lt;/P&gt;&lt;P&gt;MAX( letztzug )&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;P&gt;table itab from s032 where matnr in s_matnr&lt;/P&gt;&lt;P&gt;group by matnr&lt;/P&gt;&lt;P&gt;order by&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont use corresponding fields of clause it is not matching the field name with max function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2007 08:01:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-02T08:01:39Z</dc:date>
    <item>
      <title>Regarding max select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-select-statement/m-p/1746962#M323980</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;    i m using max in select statement but its nt showing the o/p,cud u plz help me..thnx in advce.here i m giving the code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:s032.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_matnr for s032-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;     matnr like s032-matnr,&lt;/P&gt;&lt;P&gt;     letztzug like s032-letztzug,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  matnr&lt;/P&gt;&lt;P&gt;MAX( letztzug )&lt;/P&gt;&lt;P&gt;into corresponding&lt;/P&gt;&lt;P&gt;fields of&lt;/P&gt;&lt;P&gt;table itab from s032 where matnr in s_matnr&lt;/P&gt;&lt;P&gt;group by matnr&lt;/P&gt;&lt;P&gt;order by&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-matnr,itab-letztzug.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 07:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-select-statement/m-p/1746962#M323980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T07:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding max select statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-select-statement/m-p/1746963#M323981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select matnr&lt;/P&gt;&lt;P&gt;MAX( letztzug )&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;P&gt;table itab from s032 where matnr in s_matnr&lt;/P&gt;&lt;P&gt;group by matnr&lt;/P&gt;&lt;P&gt;order by&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont use corresponding fields of clause it is not matching the field name with max function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 08:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-select-statement/m-p/1746963#M323981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T08:01:39Z</dc:date>
    </item>
  </channel>
</rss>

