Start of Content Area

Background documentation Properties of Generation Rules  Locate the document in its SAP Library structure

A generation rule has the following properties, which you have to specify when you create a new rule:

·        Rule type

The rule type together with the technical name forms the key for the generation rule. The following rule types exist:

¡        Record number: Generation rule applies to records

¡        Document number: Generation rule applies to documents

¡        Transaction number (only relevant for Public Sector)

·        Technical name of the rule

The technical name (together with the rule type) is the key for the generation rule. Therefore, the technical name has to be unique for each rule type.

·        Description of the rule

Meaningful name for the rule

You can enter the following optional properties in the property dialog. To access the property dialog, you double-click the root node of the rule.

·        Syntax check

Indicates whether unique numbers that were entered manually have to be checked for compliance with the generation rule.

·        Uniqueness check

Indicates whether the unique ID has to be checked for uniqueness after it has been generated. The scope of the uniqueness check can be set in the registry (see below).

In addition, you can choose to set properties in the registry.

The Record Number Generator is realized by means of the service provider SRM_SP_REFERENCE. This service provider has the following connection parameters:

·        CHECK_UNIQUE_REFERENCE

Controls the scope of the syntax check. The following values exist:

¡        RULE: Unique for each rule (if uniqueness check is activated in the rule)

¡        RULETYPE: Unique for each rule type (activates uniqueness check for all rules)

·        SAVE_REFERENCE_PARTS

Controls whether parts of generated IDs are saved to the database. Possible values:

¡        0: Inactive (default)

¡        1:  Active

The default setting for this service provider is exactly one element type that has the value RULE for the connection parameter CHECK_UNIQUE_REFERENCE, and 0 for the connection parameter SAVE_REFERENCE_PARTS. If you want other values, we recommend that you delete the default element type, and create a new one.

If you create multiple element types for the service provider SRM_SP_REFERENCE, you have to enter the following in transaction SRMCUSTSRV:

IS_SRM_REFERENCE_CLASS        <element type>

The system then uses the element type entered here.

 

End of Content Area