<?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: *Get_Next_Number* function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368294#M808356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Restting the number range only possbile thru tranx SNRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question if you need to reset the number after loop then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_number = 1&lt;/P&gt;&lt;P&gt;LOOP AT DYN_CODE_TABLE INTO wa_lv.&lt;/P&gt;&lt;P&gt;l_number =  l_number + 1&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear  l_number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is enough, then why you need number range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 02:00:54 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-01-24T02:00:54Z</dc:date>
    <item>
      <title>*Get_Next_Number* function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368292#M808354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently, I am putting the &lt;STRONG&gt;Get_Next_Number&lt;/STRONG&gt; function in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;LOOP AT DYN_CODE_TABLE INTO wa_lv.&lt;/P&gt;&lt;P&gt;*Store ID&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        nr_range_nr = '01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        object = 'ZHERA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        quantity = '1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        number = l_number.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for me to set the starting number back to 0 when the loop ends and comes back to the loop again upon execution again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 01:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368292#M808354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T01:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: *Get_Next_Number* function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368293#M808355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juzme,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module assigns the next free numbers of a number range. A number is assigned as a default if no larger number is demanded in the parameter QUANTITY. If more than one number is demanded and not enough numbers are available up to the interval limit, the numbers are only assigned up to the interval limit. If the last number was assigned, the first interval number is provided again during the next call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are restting the number range and set the starting number back to 0 when the loop ends and comes back to the loop again upon execution again, the purpose of using this function module will be defeated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like your scenario does not need a call to this Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explain exactly your scenario,  we'll try to help you.&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;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 01:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368293#M808355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T01:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: *Get_Next_Number* function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368294#M808356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Restting the number range only possbile thru tranx SNRO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question if you need to reset the number after loop then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_number = 1&lt;/P&gt;&lt;P&gt;LOOP AT DYN_CODE_TABLE INTO wa_lv.&lt;/P&gt;&lt;P&gt;l_number =  l_number + 1&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear  l_number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is enough, then why you need number range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 02:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-next-number-function/m-p/3368294#M808356</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-24T02:00:54Z</dc:date>
    </item>
  </channel>
</rss>

