<?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: Max function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002150#M956146</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;yes the code is right. the max fucntion u used is the right way to find the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 04:00:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-20T04:00:41Z</dc:date>
    <item>
      <title>Max function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002149#M956145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fetch records(PR PO bwart) against maximum movement type(bwart).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there max function in abap or tell me some alternative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select PR PO max(bwart) from ekbe into i_ekbe&lt;/P&gt;&lt;P&gt;group by PR PO bwart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this code correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Savita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 03:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002149#M956145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T03:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Max function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002150#M956146</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;yes the code is right. the max fucntion u used is the right way to find the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002150#M956146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002151#M956147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   The movement types are defined as numbers like 561 etc.So if you use &lt;STRONG&gt;MAX&lt;/STRONG&gt; then highest number is selected.If you wish to have the same thing then your code is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002151#M956147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Max function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002152#M956148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u tell me , the group by clause with left join &amp;amp; where caluse.&lt;/P&gt;&lt;P&gt;It is showing an error The field "A&lt;SUB&gt;EBELP" from the SELECT list is missing in the GROUP BY	clause. addition INTO wa or INTO (g1,...,gn) is required. fields of type "" or "B&lt;/SUB&gt;WERKS".		&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;banfn a&lt;/SUB&gt;ekgrp a&lt;SUB&gt;afnam  a&lt;/SUB&gt;txz01 a&lt;SUB&gt;matnr a&lt;/SUB&gt;werks a&lt;SUB&gt;lgort a&lt;/SUB&gt;bednr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;meins a&lt;SUB&gt;badat a&lt;/SUB&gt;frgdt a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp b&lt;SUB&gt;ebeln b&lt;/SUB&gt;ebelp &lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;belnr max( b&lt;/SUB&gt;bwart ) b&lt;SUB&gt;budat b&lt;/SUB&gt;menge b~matnr&lt;/P&gt;&lt;P&gt;b~werks&lt;/P&gt;&lt;P&gt;from ( eban as a left outer join ekbe as b on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebeln eq b&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebelp eq b&lt;/SUB&gt;ebelp )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into corresponding fields of&lt;/P&gt;&lt;P&gt;table eban_ekbe&lt;/P&gt;&lt;P&gt;where              a~ekgrp in s_ekgrp and&lt;/P&gt;&lt;P&gt;                   a~afnam in s_afnam and&lt;/P&gt;&lt;P&gt;                   a~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;                   a~werks eq  p_werks and&lt;/P&gt;&lt;P&gt;                   a~lgort in s_lgort and&lt;/P&gt;&lt;P&gt;                   a~badat in s_badat &lt;/P&gt;&lt;P&gt;group by b&lt;SUB&gt;ebeln b&lt;/SUB&gt;ebelp b&lt;SUB&gt;belnr b&lt;/SUB&gt;bwart b&lt;SUB&gt;budat b&lt;/SUB&gt;menge b~matnr&lt;/P&gt;&lt;P&gt;b~werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to put group by on my second table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Savita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/max-function/m-p/4002152#M956148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:22:33Z</dc:date>
    </item>
  </channel>
</rss>

