Select language:

Creating Number Range Objects

Usually, number range objects are delivered by SAP together with the associated application programs. However, you can also create a number range object yourself.

  1. Call the transaction for maintaining number range objects (SNUM or SNRO).
  2. Enter an object name and choose Create.
  3. To define the number object, make entries in the following fields:
    • Short Text

      Short text for object (length 20)

    • Long Text

      Long text for object (length 60)

Then, fill in the fields on the Intervals, Groups, and Customizing tabs, as required:
Intervals Tab
  • Number Length Domain

    Here, you define the amount of characters available in the number range object by selecting a suitable domain from the data dictionary (see A Simple Number Range Object). It must be of type NUMC or CHAR and have a field length of at least 1 and at most 20. Select or create a domain.

  • Percentage Warning

    When this percentage of remaining characters in an interval is reached during number assignment, the system issues a warning. It must be between 0.1 and 99.9.

  • Data Element Subobjects (Object Types 4 to 8)

    If you want to create subobjects for the elements of a field of the application table, specify the relevant data element for this table field (see Subobjects). This data element must be active in the Data Dictionary and must have a check table. The domain of the data element must have a field length of between 1 and 6.

  • To Financial Year

    If you want the records of the business object to be differentiated by financial year, you activate this option by selecting the checkbox. This structures the intervals of a number range object; see Differentiation by Financial Years.

  • Do Not Roll Over

    For each interval of a number range object, the system checks when the available characters are used up. In the default setting, once the available characters of an interval are used up, the system starts again from the beginning and the lowest number is assigned again. You can suppress this behavior by setting the Do Not Roll Over indicator. If you do this, no more characters from an interval are assigned once the characters of the interval are used up. You can suppress rollover for the entire number range object, that is, the setting applies to all the intervals contained in the object.

Customizing Tab
  • Number range transaction

    When you create a number range object, you can define a transaction code. When you save the number range object, a transaction is generated automatically, which you can use later to open the maintenance dialog of exactly this number range object.

  • Buffering

    You can define the buffering type for the intervals here. For more information about this topic, see section Buffering. The following options are provided:

    • Main memory buffering

    • Parallel buffering

    • No buffering

  • Number of Numbers in Buffer (if a buffering type has been defined)

    This value specifies the size of the buffer. For more information about selecting the buffer size, see section Buffering.

Group Tab

If you want to group by elements within a number range object, you can enter the required information on this tab. You then maintain the group table, that is, the interval assignment, manually in the standard maintenance dialog of SNUM (see Interval Maintenance).

Note If the grouping information is saved on this tab, it is no longer possible to program assignments using the function group SNRO for maintaining number range objects. Therefore, if you want to maintain assignments using a program and not manually, you should not fill in the fields on this tab. In this case, you can find the required function modules in the function group SNRO (see Maintaining Intervals and Groups).
  • Group Table (Object Types 2, 3, 5 to 8)

    Enter a name for the table containing the grouping element, such as the material type table for the material master. The table must exist and be active in the Data Dictionary. It must also contain the field for the number range element field as its key. If you want the groups to depend on the subobject, the subobject must be part of the key. Apart from this, the group table must not have any other key fields. A group table cannot be assigned to more than one number range object. The following fields of the group table must also be specified here:

    • Subobject (object types 7 and 8)

      If the number range object is differentiated by subobject, and the groups are dependent on the subobject, enter the field for the group table that contains the subobject value (object types 7 and 8). The subobject field must be part of the group table key.
      Note If the group assignment of the number range object is not dependent on the subobjects (see also Number Range Object with Subobjects and Groups), you must not make an entry in the field for the subobject here.
    • Element (object types 2, 3, 5 to 8)

      If you want the number range object to be grouped, specify the field of the group table that contains the value to be grouped by. The field must be part of the key.

    • Interval number (internal/external) (object types 3, 6, 8)

      Specify both fields of the group table: one for the internal intervals and one for the external intervals (previously: Number Ranges) of the number range object. The fields must have the format CHAR2 or NUM2.

    • Interval number (object types 2, 5, 7)

      Specify the field of the group table for the internal and external intervals (previously: Number ranges). The field must be part of the key and have the format CHAR2 or NUM2.

Group Maintenance Element Text Display

A group table is usually a table that contains a lot of other information. This table often has a separate text table containing explanatory texts in several languages. You can display these texts in a particular language in the standard maintenance dialog. This is useful if the group table of a number range object will be maintained by employees in different countries.

To display the texts of the elements, activate the Display Element Text option by selecting the checkbox. Also fill in the following fields:

  • Element Text Table

    Enter the name of the text table that is assigned to the group table you have selected.

  • Field for Language

    Specify the name of the field that was defined in this table for the languages.

  • Element

    Specify the name of the field that was defined in this table for the grouping element.

  • Text

    Specify the name of the field that was defined in this table for the corresponding text.

  • Subobjects

    This field only appears on the interface if the groups have been defined that depend on the subobject. If this is the case, specify the name of the field that contains the elements for forming the subobjects in the text table.

Once you have saved the input data, you can create intervals for the object and the assignment of groups can take place (see Interval Maintenance).