<?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: Finding Min value in an table using SY-TABIX variable. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569711#M2008364</link>
    <description>&lt;P&gt;Hi Girod, &lt;/P&gt;&lt;P&gt;Yes, we can do that with sort. But I want to achieve that with SY-TABIX because of some other dependency. Any input on SY-TABIX will be of great help.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 05:49:26 GMT</pubDate>
    <dc:creator>praveen_kumar334</dc:creator>
    <dc:date>2022-09-23T05:49:26Z</dc:date>
    <item>
      <title>Finding Min value in an table using SY-TABIX variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569709#M2008362</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
  &lt;P&gt;I have a requirement where i want to find the min value( combination of both date and time) based on a transaction number using sy-tabix variable. Any input will be greatly appreciated. Below is the pseudo code, i am using to get the max value. &lt;/P&gt;
  &lt;P&gt;current output &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097524-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Expected output for Min value : &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2097525-image.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;lv_tabix_temp  = 1.
SORT RESULT_PACKAGE BY /bic/tnr       ASCENDING
                       /bic/zerdat    ASCENDING
                       /bic/zerzetims ASCENDING.
 LOOP AT RESULT_PACKAGE ASSIGNING &amp;lt;result_fields&amp;gt;. 
 lv_tabix = sy-tabix.
     LOOP AT RESULT_PACKAGE INTO wa_result_package FROM
                lv_tabix_temp WHERE /bic/zrpa_tnr = &amp;lt;result_fields&amp;gt;-/bic/zrpa_tnr.               
                lv_tabix_temp = sy-tabix.
    ENDLOOP.
        IF lv_tabix = lv_tabix_temp.
            &amp;lt;result_fields&amp;gt;-/bic/flag = 'X'.        
        ENDIF.
ENDLOOP.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2022 05:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569709#M2008362</guid>
      <dc:creator>praveen_kumar334</dc:creator>
      <dc:date>2022-09-23T05:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Min value in an table using SY-TABIX variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569710#M2008363</link>
      <description>&lt;P&gt;If you make a Sort by TNR &amp;amp; ZERDAT &amp;amp; ZERZETIMS ascending, the first row of new TNR will be the lower values of ZERDAT &amp;amp; ZERZETIMS&lt;/P&gt;&lt;P&gt;So you don't need to play with SY-TABIX or do several LOOP on the same internal table. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 05:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569710#M2008363</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-09-23T05:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Min value in an table using SY-TABIX variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569711#M2008364</link>
      <description>&lt;P&gt;Hi Girod, &lt;/P&gt;&lt;P&gt;Yes, we can do that with sort. But I want to achieve that with SY-TABIX because of some other dependency. Any input on SY-TABIX will be of great help.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 05:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569711#M2008364</guid>
      <dc:creator>praveen_kumar334</dc:creator>
      <dc:date>2022-09-23T05:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Min value in an table using SY-TABIX variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569712#M2008365</link>
      <description>&lt;P&gt;You have proposed a code with a SORT&lt;/P&gt;&lt;P&gt;Otherwise you could also add a new sorted key on the internal table.&lt;/P&gt;&lt;P&gt;If it is a lesson exercise and you have to follow stupid rules, just say it &lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-min-value-in-an-table-using-sy-tabix-variable/m-p/12569712#M2008365</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-09-23T13:30:02Z</dc:date>
    </item>
  </channel>
</rss>

