<?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: Regarding Max value and alert message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997876#M1697727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a SELECT MAX( rrn ) FROM ztable where rnn is your primary key. But usually this kind of problem is solved by using number range (*), &lt;/P&gt;&lt;P&gt;- create a number range and interval via SNRO&lt;/P&gt;&lt;P&gt;- Use FM NUMBER_GET_NEXT to generate&amp;nbsp; the next key value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) Read&amp;nbsp; some documentation like &lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/2a/fa02e3493111d182b70000e829fbfe/content.htm"&gt;Number ranges&lt;/A&gt; in &lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/2a/f9ff44493111d182b70000e829fbfe/content.htm"&gt;BC Extended Applications Function Library&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2012 06:32:18 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2012-08-30T06:32:18Z</dc:date>
    <item>
      <title>Regarding Max value and alert message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997874#M1697725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider my scenario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Have one selection screen having some fields, one field is primary key . I have to enter all fields and save it into one ztable. in that primary key field user have to enter the value orderly, i mean 001,002,003,004... etc.&amp;nbsp; consider last entered value is 016, suddenly the user enter the 018&amp;nbsp; or greater than 018, the messgae have to come . " Your last entered value is 016. Please enter 017 "&amp;nbsp; .&amp;nbsp;&amp;nbsp; How can i perform this scenario.&amp;nbsp; Please Help me . I will be grateful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linganathan.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: book antiqua,palatino; color: #ff0000;"&gt;Moderator message : Not enough re-search before posting, discussion un-marked as question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinod Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997874#M1697725</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2012-08-30T06:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Max value and alert message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997875#M1697726</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;Can you please send your code, which help in providing a better solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997875#M1697726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-30T06:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Max value and alert message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997876#M1697727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a SELECT MAX( rrn ) FROM ztable where rnn is your primary key. But usually this kind of problem is solved by using number range (*), &lt;/P&gt;&lt;P&gt;- create a number range and interval via SNRO&lt;/P&gt;&lt;P&gt;- Use FM NUMBER_GET_NEXT to generate&amp;nbsp; the next key value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) Read&amp;nbsp; some documentation like &lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/2a/fa02e3493111d182b70000e829fbfe/content.htm"&gt;Number ranges&lt;/A&gt; in &lt;A href="http://help.sap.com/saphelp_erp60_sp/helpdata/en/2a/f9ff44493111d182b70000e829fbfe/content.htm"&gt;BC Extended Applications Function Library&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997876#M1697727</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-08-30T06:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Max value and alert message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997877#M1697728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear kolluru goutham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, Actually it contains more than 1000 lines. Help me for my scenario with some example code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Linganathan.k &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997877#M1697728</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2012-08-30T06:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Max value and alert message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997878#M1697729</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;Using the 'NUMBER_GET_NEXT' function module will get the next number of current number. So can compare the Next number and user entered values and populate the error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997878#M1697729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-30T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Max value and alert message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997879#M1697730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suresh murukutla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i find the last entered number, if i find that only i have generate next number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me with some sample code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linganathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 06:42:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-max-value-and-alert-message/m-p/8997879#M1697730</guid>
      <dc:creator>former_member242166</dc:creator>
      <dc:date>2012-08-30T06:42:26Z</dc:date>
    </item>
  </channel>
</rss>

