<?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: maximum value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108475#M1185113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If your field for which you want to get the maximun value is a integer field than just sort the internal table descending  and read the first record as also told by others, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sort itab by char descending.

Read table itab into wa index 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is its not a integer field say its a character field with lenght more than 1, than its always better to change it to a interger field than get the maximun value otherwise it can give a incorrect value to you, as for character fields it will compare with the first character, like if the field value are '12' and '5', it will take '5' as greater as the first character in the second case is 5 and its greater than the first character of the first case which is 1.&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;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2009 13:20:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-29T13:20:45Z</dc:date>
    <item>
      <title>maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108458#M1185096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;how to find the maximum value from the internal table field for each personel number?&lt;/P&gt;&lt;P&gt;for ex.&lt;/P&gt;&lt;P&gt;field &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want 3 as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108458#M1185096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108459#M1185097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting(desc)your internal table and pick the first record..&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108459#M1185097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108460#M1185098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: begin of it occurs 3,&lt;/P&gt;&lt;P&gt;          val type i,&lt;/P&gt;&lt;P&gt;         end of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it-val = 100.&lt;/P&gt;&lt;P&gt;append it sorted by val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it-val = 400.&lt;/P&gt;&lt;P&gt;append it sorted by val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it-val = 200.&lt;/P&gt;&lt;P&gt;append it sorted by val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it index 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / it-val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jayapriya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108460#M1185098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108461#M1185099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do you want to identify which cloumn has maximum value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: guest on Jan 28, 2009 9:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108461#M1185099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108462#M1185100</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;PRE&gt;&lt;CODE&gt;SORT ITAB BY &amp;lt;FIELD&amp;gt; DESCENDING.
READ ITAB INDEX 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108462#M1185100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108463#M1185101</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;P&gt;&lt;/P&gt;&lt;P&gt;select MAX(field) from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108463#M1185101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108464#M1185102</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;U can use SORT statement to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT &amp;lt;internaltable&amp;gt; BY fieldname DESCENDING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then take the first value of this internaltable.&lt;/P&gt;&lt;P&gt;This will be the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108464#M1185102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108465#M1185103</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;data: itab type table of ystudent with header line.&lt;/P&gt;&lt;P&gt;select * from ystudent into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab descending by id &lt;STRONG&gt;descending&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;read table itab &lt;STRONG&gt;index 1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;write itab-id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayanthi.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108465#M1185103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108466#M1185104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT TABLE ITAB BY PERNR DESCENDING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INTO WA  INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA-PERNR is the max number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 08:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108466#M1185104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T08:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108467#M1185105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;read table itab into wa with key pernr = was-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now where to write index 1.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108467#M1185105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108468#M1185106</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;Please be clear in asking questions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108468#M1185106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108469#M1185107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Max from Per into Lt_pers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you have only the biggest values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108469#M1185107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108470#M1185108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but we can use (select max) with standard tables n not with internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108470#M1185108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108471#M1185109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok i got it how to use index 1.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;but output showing all 3  values in field , i want only one dats max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108471#M1185109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108472#M1185110</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;Sort the table by pernr and the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab descending by pernr field1.&lt;/P&gt;&lt;P&gt;read table itab into wa with key pernr = was-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now after this read statement, you can read the maximum value record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108472#M1185110</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-01-28T09:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108473#M1185111</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;After reading ur internal table using index.&lt;/P&gt;&lt;P&gt;u can move the value to another internal table know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT it_sum BY amount1 DESCENDING.

READ TABLE it_sum INTO wa_sum INDEX 1.
if sy-subrc eq 0.
  move: wa_sum-date to wa_res-date,
        wa_sum-amount1 to wa_res-amount1,
        wa_sum-amount2 to wa_res-amount2.
  append wa_res to it_res.
 endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the it_res table  has the maximum value only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 09:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108473#M1185111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T09:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108474#M1185112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all of u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 11:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108474#M1185112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T11:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108475#M1185113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If your field for which you want to get the maximun value is a integer field than just sort the internal table descending  and read the first record as also told by others, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sort itab by char descending.

Read table itab into wa index 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is its not a integer field say its a character field with lenght more than 1, than its always better to change it to a interger field than get the maximun value otherwise it can give a incorrect value to you, as for character fields it will compare with the first character, like if the field value are '12' and '5', it will take '5' as greater as the first character in the second case is 5 and its greater than the first character of the first case which is 1.&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;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 13:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108475#M1185113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108476#M1185114</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;Just sort your internal table in descending order and read the first row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB  BY PERNR DESCENDING.&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-PERNR will be the biggest in the internal table ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mubeen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mubeen Ahmed on Jan 29, 2009 4:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 15:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value/m-p/5108476#M1185114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T15:51:27Z</dc:date>
    </item>
  </channel>
</rss>

