<?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: internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386218#M813055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        read table i_sort index 1.    &lt;/P&gt;&lt;P&gt;       move i_sort-field to gv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_field is the max value.&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;sort itab by field ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table i_sort index 1.    &lt;/P&gt;&lt;P&gt;   move i_sort-field to lv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_field is the leas value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 12:00:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-25T12:00:26Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386215#M813052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to write a logic  least marks and higest marks from  internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 11:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386215#M813052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386216#M813053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sort the internal table by the marks.  Read the first and last record of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 11:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386216#M813053</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-25T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386217#M813054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Highest Marks:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort internal table by field ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read internal table index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lowest Marks:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort internal table by field descending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read internal table index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 11:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386217#M813054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386218#M813055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        read table i_sort index 1.    &lt;/P&gt;&lt;P&gt;       move i_sort-field to gv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_field is the max value.&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;sort itab by field ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table i_sort index 1.    &lt;/P&gt;&lt;P&gt;   move i_sort-field to lv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_field is the leas value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 12:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386218#M813055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386219#M813056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say your internal table has MARKS field which holds marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: low_marks type i,&lt;/P&gt;&lt;P&gt;        high_marks type i,&lt;/P&gt;&lt;P&gt;        v_lines type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- First record holds least marks&lt;/P&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; low_marks = itab-marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- your last record holds highest marks&lt;/P&gt;&lt;P&gt;describe table itab lines v_lines.&lt;/P&gt;&lt;P&gt;read table itab index v_lines.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; high_marks = itab-marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point low_marks holds least marks and high_marks holds highest marks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 12:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386219#M813056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T12:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386220#M813057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort itab by field descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab index 1. &lt;/P&gt;&lt;P&gt;move i_sort-field to gv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************gv_field is the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by field ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab index 1. &lt;/P&gt;&lt;P&gt;move i_sort-field to lv_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************************lv_field is the leas value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 12:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386220#M813057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386221#M813058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;if you sort the tabel by the marks field then first and last fields will be the lowest and highest values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 12:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386221#M813058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T12:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386222#M813059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using min and max functions we can get the values.&lt;/P&gt;&lt;P&gt;                                             or&lt;/P&gt;&lt;P&gt;By using sorting the internal table by using ascending or descending&lt;/P&gt;&lt;P&gt;                                             or&lt;/P&gt;&lt;P&gt;If you want to write some logic then by using sorting techniques you can find&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 12:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386222#M813059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T12:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386223#M813060</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;You can do as below :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Sort itab by marks acsending.

read the table using index." First row will contain the lower value.

Again sort the itab by descending.

Sort itab by marks descending.
read the table using index." First row will contain the higher value.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 12:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/3386223#M813060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T12:51:20Z</dc:date>
    </item>
  </channel>
</rss>

