<?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 Number ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860852#M927911</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 are number ranges and what are they used for??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;uday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 03:55:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T03:55:07Z</dc:date>
    <item>
      <title>Number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860852#M927911</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 are number ranges and what are they used for??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;uday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860852#M927911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T03:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860853#M927912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to T Code FBN1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A range of numbers that are laid down per file for the assignment of document numbers. It can be internal (carried out automatically by the system) or external (carried out manually by the user). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can override the sap standerd invoice number ranges with your custom table invoice number ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RV60AFZZ --&amp;gt;USEREXIT_NUMBER_RANGE Here you can override programatically&lt;/P&gt;&lt;P&gt;In a distributed system landscape, you have to ensure for many application areas that numbers are assigned for objects across the systems without overlaps. You do so by defining disjunctive number range intervals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can carry out the following steps centrally from a given system (usually the central system of your system landscape):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Check whether conflicts exist between the number range intervals in the systems of your system landscape&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Use reservations to plan cross-system number range intervals without overlaps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Navigate from the central system to the other systems and define the required number range intervals on the basis of the reservations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860853#M927912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T03:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860854#M927913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/b4/185f28179c4f3cb8d00988cd139500/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/b4/185f28179c4f3cb8d00988cd139500/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860854#M927913</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-15T03:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860855#M927914</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Reward pts if help.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overview:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is often necessary to directly access individual records in a data structure. This is done using unique keys. Number ranges are used to assign numbers to individual database records for a commercial object, to complete the key. Such numbers are e.g. order numbers or material master numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These numbers provide, apart from unique identification of a data record, the possibility of encoding differentiating information for an object. One could tell from the number e.g., to which material type a material belongs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The R/3 number range management also monitors the number status, so that numbers which have already been issued are not re-issued.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All dialogs, database accesses or other activities which are necessary for the maintenance of number range objects and number ranges and number allocation in user developments, can be performed using SAP function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A commercial object, for which part of the key is to be generated via number ranges, is defined as a number range object in the SAP system. If this commercial object contains sub-objects, e.g. company codes or controlling areas, this differentiation can also be made in the number ranges. This happens by specifying a field for the sub-object when defining the number range objects. (Example: company code as sub-object of documents) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number range interval within a commercial object and sub-object never overlap. The number range intervals in various sub-objects of a commercial object can overlap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A number range interval is assigned to a commercial object via the number range number. This assignment is usually saved in a table belonging to the commercial object, the group table. The field Element must be all or part of this table&amp;#146;s key. Elements which refer to the same number range interval form a group. You can decide whether you want to make this assignment possible for the user during the number range object maintenance (via the assignment of elements to groups) or whether you want to program it yourself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a new material master is created, the material type should determine from which number range interval a number to complete the material master key should be assigned. The commercial object is the material master, the group table the material type table, with the element field material type as key field. The number range numbers for the various element values (material types) are saved in this table. Material types are e.g. semi-finished or finished products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A number range contains a number range interval with a defined character set. The number range interval consists of numeric or alpha-numeric characters (only for external number ranges) and is delimited by the fields From number and To number. Either one interval, or several if financial years are to be distinguished, is assigned to a number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number range number identifies a number range for the system and makes system-internal access to the number range interval possible. It can be numerical or alpha-numeric. This number is generally assigned system-internally. If you do not need grouping or if you want to program the group table maintenance for the grouping yourself, you must enter the number range number during interval maintenance yourself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If financial years are to be distinguished in the number assignment, there can be several intervals. Separate intervals are then specified for each financial year. Number ranges can be external (number to be assigned manually by the user) or internal (number assigned automatically by the system). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A commercial object can either have only one number range (external or internal) or two number ranges (external and internal).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The various distinctions between commercial objects gives rise to eight Number range object types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element and group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element is the field in the group table according to whose value a commercial object can be grouped. The grouping is done by number range assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Element values to which the same number ranges are assigned constitute a group. For the material master, for example, the groups are managed in the material type table. The groups can be maintained via the standard maintenance dialog for number range intervals. If you do not want to do this, you must program it yourself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Groups can be either dependent or independent of sub-objects. This depends on whether the sub-object is a group table field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following table shows as an example the grouping of material types and the associated number range assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grouping material types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group&lt;/P&gt;&lt;P&gt; Material type&lt;/P&gt;&lt;P&gt; Internal no. range&lt;/P&gt;&lt;P&gt; External no.range&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Group 1&lt;/P&gt;&lt;P&gt; Finished&lt;/P&gt;&lt;P&gt; 01&lt;/P&gt;&lt;P&gt; 02&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Group 1&lt;/P&gt;&lt;P&gt; Semi-finished&lt;/P&gt;&lt;P&gt; 01&lt;/P&gt;&lt;P&gt; 02&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Group 2&lt;/P&gt;&lt;P&gt; Raw material&lt;/P&gt;&lt;P&gt; 03&lt;/P&gt;&lt;P&gt; 04&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The material types Finished and Semi-finished form one group, and the material type Raw material another. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until financial year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixed time periods (financial years) are assigned to number range intervals within a number range with a year value. These intervals can overlap within a number range. In this case the financial year or until financial year, as well as the assigned number, must be part of the application table key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 04:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860855#M927914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T04:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860856#M927915</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;Number ranges are used to increment unique  numbers .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the Number Range Object using SNRO tcode&lt;/P&gt;&lt;P&gt;and define/maintain the number ranges for that object using SNUM tcode&lt;/P&gt;&lt;P&gt;and then use the fun module NUMBER_GET_NEXT in the code to get the next continuous numbers for that field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample code&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 = 'ZDOCNUM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUANTITY = '1' &lt;/P&gt;&lt;P&gt;SUBOBJECT = ' ' &lt;/P&gt;&lt;P&gt;TOYEAR = '0000' &lt;/P&gt;&lt;P&gt;IGNORE_BUFFER = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;number = v_docno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUANTITY = &lt;/P&gt;&lt;P&gt;RETURNCODE = &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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 04:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3860856#M927915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T04:05:20Z</dc:date>
    </item>
  </channel>
</rss>

