<?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 SELECT MAX query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-max-query/m-p/5472636#M1253194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MAX( MBLNR )&lt;/P&gt;&lt;P&gt;FROM ZMIGO&lt;/P&gt;&lt;P&gt;INTO TABLE IT_MAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now my Z table is empty. but when i debug the program it showing 1 entry and when i double the internal table there is no value and it is blank. why it is showing as 1 entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 06:06:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-14T06:06:34Z</dc:date>
    <item>
      <title>SELECT MAX query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-max-query/m-p/5472636#M1253194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MAX( MBLNR )&lt;/P&gt;&lt;P&gt;FROM ZMIGO&lt;/P&gt;&lt;P&gt;INTO TABLE IT_MAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now my Z table is empty. but when i debug the program it showing 1 entry and when i double the internal table there is no value and it is blank. why it is showing as 1 entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 06:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-max-query/m-p/5472636#M1253194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T06:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT MAX query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-max-query/m-p/5472637#M1253195</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;Try using:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : v_mblnr TYPE zmigo-mblnr.

SELECT MAX( DISTINCT mblnr ) FROM zmigo INTO v_mblnr.
IF sy-subrc NE 0.
  CLEAR v_mblnr.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 06:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-max-query/m-p/5472637#M1253195</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-14T06:26:16Z</dc:date>
    </item>
  </channel>
</rss>

