<?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: Steps to create a Number Range. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220862#M476852</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;excample:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            object           = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            foreign_lock     = 1&lt;/P&gt;&lt;P&gt;            object_not_found = 2&lt;/P&gt;&lt;P&gt;            system_failure   = 3&lt;/P&gt;&lt;P&gt;            OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              nr_range_nr             = '01'&lt;/P&gt;&lt;P&gt;              object                  = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              number                  = last_id&lt;/P&gt;&lt;P&gt;              quantity                = quant&lt;/P&gt;&lt;P&gt;              returncode              = code&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              interval_not_found      = 1&lt;/P&gt;&lt;P&gt;              number_range_not_intern = 2&lt;/P&gt;&lt;P&gt;              object_not_found        = 3&lt;/P&gt;&lt;P&gt;              quantity_is_0           = 4&lt;/P&gt;&lt;P&gt;              quantity_is_not_1       = 5&lt;/P&gt;&lt;P&gt;              interval_overflow       = 6&lt;/P&gt;&lt;P&gt;              buffer_overflow         = 7&lt;/P&gt;&lt;P&gt;              OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              object           = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              object_not_found = 1&lt;/P&gt;&lt;P&gt;              OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you can do it with transaction SNUM for each object. Maybe Customer is object DEBITOR.....&lt;/P&gt;&lt;P&gt;This needs to be done in each system, is not allowed to transport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Nicole Lorenz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2007 06:23:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-26T06:23:24Z</dc:date>
    <item>
      <title>Steps to create a Number Range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220860#M476850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone please send me the steps to create a Number Range..Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 06:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220860#M476850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to create a Number Range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220861#M476851</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;Defining number ranges can be performed always in customizing (SPRO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example customer orders, somehow like these, but not exactly (VA01)&lt;/P&gt;&lt;P&gt;- SPRO - Sales and distribution - Sales orders - Header data - Defining number ranges.&lt;/P&gt;&lt;P&gt;Here you can define and maintain the existing number ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- SPRO - Sales and distribution - Sales orders - Header data - Defining document header.&lt;/P&gt;&lt;P&gt;Here you can assign the defined number range to the relevant document type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 06:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220861#M476851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to create a Number Range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220862#M476852</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;excample:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            object           = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            foreign_lock     = 1&lt;/P&gt;&lt;P&gt;            object_not_found = 2&lt;/P&gt;&lt;P&gt;            system_failure   = 3&lt;/P&gt;&lt;P&gt;            OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              nr_range_nr             = '01'&lt;/P&gt;&lt;P&gt;              object                  = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              number                  = last_id&lt;/P&gt;&lt;P&gt;              quantity                = quant&lt;/P&gt;&lt;P&gt;              returncode              = code&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              interval_not_found      = 1&lt;/P&gt;&lt;P&gt;              number_range_not_intern = 2&lt;/P&gt;&lt;P&gt;              object_not_found        = 3&lt;/P&gt;&lt;P&gt;              quantity_is_0           = 4&lt;/P&gt;&lt;P&gt;              quantity_is_not_1       = 5&lt;/P&gt;&lt;P&gt;              interval_overflow       = 6&lt;/P&gt;&lt;P&gt;              buffer_overflow         = 7&lt;/P&gt;&lt;P&gt;              OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              object           = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              object_not_found = 1&lt;/P&gt;&lt;P&gt;              OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you can do it with transaction SNUM for each object. Maybe Customer is object DEBITOR.....&lt;/P&gt;&lt;P&gt;This needs to be done in each system, is not allowed to transport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Nicole Lorenz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 06:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220862#M476852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T06:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to create a Number Range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220863#M476853</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;1) Goto Tcode SNRO&lt;/P&gt;&lt;P&gt;2) select ur concerned OBJECT there.&lt;/P&gt;&lt;P&gt;3) Click on Number Ranges Push Button.&lt;/P&gt;&lt;P&gt;4) then click on Display Interval Button over there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************Other code&lt;/P&gt;&lt;P&gt;Create number range object using OYSN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call the following function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_next_id CHANGING p_discrep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: last_id LIKE zrecaudit-discrep,&lt;/P&gt;&lt;P&gt;        quant   LIKE inri-quantity,    "dummy&lt;/P&gt;&lt;P&gt;        code    LIKE inri-returncode.  "returncode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            object           = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            foreign_lock     = 1&lt;/P&gt;&lt;P&gt;            object_not_found = 2&lt;/P&gt;&lt;P&gt;            system_failure   = 3&lt;/P&gt;&lt;P&gt;            OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              nr_range_nr             = '01'&lt;/P&gt;&lt;P&gt;              object                  = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              number                  = last_id&lt;/P&gt;&lt;P&gt;              quantity                = quant&lt;/P&gt;&lt;P&gt;              returncode              = code&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              interval_not_found      = 1&lt;/P&gt;&lt;P&gt;              number_range_not_intern = 2&lt;/P&gt;&lt;P&gt;              object_not_found        = 3&lt;/P&gt;&lt;P&gt;              quantity_is_0           = 4&lt;/P&gt;&lt;P&gt;              quantity_is_not_1       = 5&lt;/P&gt;&lt;P&gt;              interval_overflow       = 6&lt;/P&gt;&lt;P&gt;              buffer_overflow         = 7&lt;/P&gt;&lt;P&gt;              OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              object           = 'ZRECAUDIT'&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              object_not_found = 1&lt;/P&gt;&lt;P&gt;              OTHERS           = 2.&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;ENDFORM.                    " get_next_id &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 06:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220863#M476853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-26T06:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to create a Number Range.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220864#M476854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SAI , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     here you go with the step by step procedure to create a number range !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to transaction SNRO --&amp;gt; then give the name for the number range object  Starting with Y or Z. give a short and long text .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide the domain for Number length domain field ....&lt;/P&gt;&lt;P&gt;In length filed provide the length of the domain wht you mentioned earlier .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide waining as 20% .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. save it and go back .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you will see an option in the application tool bar for INTERVALS . Click on that push button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see 3 options . click on the one for creating intervals . onmce you click that you can see a small table kind of screen where you have fields like, Interval number , from and to ... and current number ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to fill in the values cl;ick on the +interval pushbutton on your screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then provide the from and to number there ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats all ...next save , check and activate this number range ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n you can use this number range anywhere in your code ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while using it in the program , to get the next number , use the FM NUMBER_GET_NEXT  for getting the next number in the number range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it clears all your doubts ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2007 06:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/steps-to-create-a-number-range/m-p/2220864#M476854</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-04-26T06:37:14Z</dc:date>
    </item>
  </channel>
</rss>

