<?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 from table field. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196169#M1824442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in image as shown ,&lt;/P&gt;&lt;P&gt;program-1 is giving the value of variable temp_cust_id(numc type) that is '202' but in program-2 when i assign that value to parameters variable cust_id it is not filling the cust_id parameters with 202.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you get my problem please reply me with solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 11:20:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-28T11:20:40Z</dc:date>
    <item>
      <title>maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196156#M1824429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote below code to select the maximum value of field cust_id from table ZPND_CUST_TAB,&lt;/P&gt;&lt;P&gt;but its not working as i required its giving last entry of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me what should i change in below code to get maximum value from cust_id field of&amp;nbsp; ZPND_CUST_TAB table. &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;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;temp_cust_id &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;ZPND_CUST_TAB&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;CUST_ID&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;CUST_ID &lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM&amp;nbsp; &lt;/SPAN&gt;ZPND_CUST_TAB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;temp_cust_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;CUST_ID &amp;gt; &lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&amp;nbsp; &lt;/SPAN&gt;temp_cust_id&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 06:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196156#M1824429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T06:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196157#M1824430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;DATA it_&lt;/SPAN&gt;temp_cust_id &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TYPE table of &lt;/SPAN&gt;ZPND_CUST_TAB&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;CUST_ID&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt; data wa&lt;SPAN style="color: #333333; font-size: 12px;"&gt;_&lt;/SPAN&gt;temp_cust_id&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;TYPE&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ZPND_CUST_TAB&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;CUST_ID&lt;/SPAN&gt;&lt;STRONG style="color: #333333; font-size: 12px;"&gt;&lt;SPAN class="L0S55" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;( &lt;/SPAN&gt;CUST_ID &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;FROM&amp;nbsp; &lt;/SPAN&gt;ZPND_CUST_TAB&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;INTO table &lt;STRONG&gt;it_&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;temp_cust_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;WHERE &lt;/SPAN&gt;CUST_ID &amp;gt; &lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;sort the internal table &lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;it_&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;temp_cust_id&lt;/STRONG&gt;&lt;/SPAN&gt; in Descending order.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;read table &lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;it_&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;temp_cust_id&lt;/STRONG&gt;&lt;/SPAN&gt; into &lt;STRONG&gt;wa&lt;/STRONG&gt;_&lt;STRONG style="color: #333333; font-size: 12px;"&gt;temp_cust_id &lt;/STRONG&gt;index &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;STRONG style="color: #333333; font-size: 12px;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;WRITE wa_&lt;/SPAN&gt;temp_cust_id&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;-cust_id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;endif.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196157#M1824430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196158#M1824431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what data type have u used for cust_id?&lt;/P&gt;&lt;P&gt;while creating in entries you must follow the sequence. Like crate imp id with no 1 as first then 2 and so on.&lt;/P&gt;&lt;P&gt;Regards -&lt;/P&gt;&lt;P&gt;Makarand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196158#M1824431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196159#M1824432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the issue ..? What is the data in the table...? and type of the field..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196159#M1824432</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-28T07:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196160#M1824433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;hi raji ,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;this code is also not working.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;it_temp_cust_id &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;ZPND_CUST_TAB&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;wa_temp_cust_id &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;ZPND_CUST_TAB&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;CUST_ID&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;CUST_ID &lt;SPAN class="L0S55"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM&amp;nbsp; &lt;/SPAN&gt;ZPND_CUST_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;it_temp_cust_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;CUST_ID &amp;gt; &lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;sort &lt;/SPAN&gt;it_temp_cust_id &lt;SPAN class="L0S52"&gt;Descending&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;read &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;it_temp_cust_id &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;wa_temp_cust_id &lt;SPAN class="L0S52"&gt;index &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;wa_temp_cust_id&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196160#M1824433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196161#M1824434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi makarand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field type is char&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196161#M1824434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196162#M1824435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196162#M1824435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196163#M1824436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi santosh,&lt;/P&gt;&lt;P&gt;then you must create imp id in ascending order. Else it will return the last entry of the table.&lt;/P&gt;&lt;P&gt;You will find almost all the fields in standard table which holds the value from number range&lt;/P&gt;&lt;P&gt;like ebeln vbeln are of char type. But because of number range, system generates numbers in ascending order.&lt;/P&gt;&lt;P&gt;You can check by deleting the data of your ztable and create entries with increasing imp id number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the imp is sequence is not fixed.&lt;/P&gt;&lt;P&gt;then, use select * from table.&lt;/P&gt;&lt;P&gt;Get it sorted in descending order.&lt;/P&gt;&lt;P&gt;and read the table with index 1.&lt;/P&gt;&lt;P&gt;And you can get the max number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards-&lt;/P&gt;&lt;P&gt;Makarand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196163#M1824436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196164#M1824437</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;in your code, please remove the WHERE clause in the SELECT statement.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196164#M1824437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196165#M1824438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;once try this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;sort the internal table based on cust__id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;&lt;STRONG&gt;sort &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;it_temp_cust_id &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333;"&gt;Descending by cust_id&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333;"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 07:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196165#M1824438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196166#M1824439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather than saying the code is not working kindly put up your table data and output which is coming as a screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabehet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 08:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196166#M1824439</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-28T08:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196167#M1824440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quite. My telepathic skills dwindle towards the end of the week. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 08:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196167#M1824440</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-03-28T08:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196168#M1824441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/420779" height="388" width="635" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196168#M1824441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T11:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196169#M1824442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in image as shown ,&lt;/P&gt;&lt;P&gt;program-1 is giving the value of variable temp_cust_id(numc type) that is '202' but in program-2 when i assign that value to parameters variable cust_id it is not filling the cust_id parameters with 202.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you get my problem please reply me with solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196169#M1824442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T11:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196170#M1824443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all one is selection screen other is output both are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would have simply pressed F1 on default key word you would have come to know the reason. Move your code under the event LOAD-OF-PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP HELP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"When an executable program is started using &lt;A href="https://community.sap.com/"&gt;SUBMIT&lt;/A&gt;, all the values val specified at program start using DEFAULT are passed between the events &lt;A href="https://community.sap.com/"&gt;LOAD-OF-PROGRAM&lt;/A&gt; and &lt;A href="https://community.sap.com/"&gt;INITIALIZATION&lt;/A&gt; to the associated parameters para. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196170#M1824443</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2014-03-28T11:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: maximum value from table field.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196171#M1824444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Totally confused.&lt;/P&gt;&lt;P&gt;If you are giving the cust_id in select option, they why are you coding select max ?.&lt;/P&gt;&lt;P&gt;that cust_id should be in where cluase of select query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 11:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-value-from-table-field/m-p/10196171#M1824444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-28T11:49:06Z</dc:date>
    </item>
  </channel>
</rss>

