SAP ABAP Data Element SRMRGENAMS (Name of Context Counter)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-RM (Application Component) SAP Records Management
     SRM_RECORD_FACILITIES (Package) Tools and Add-Ons for Records Management
Basic Data
Data Element SRMRGENAMS
Short Description Name of Context Counter  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type SRMRGSHNAM    
Data Type CHAR   Character String 
Length 27    
Decimal Places 0    
Output Length 27    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name SRMRGENAME   
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Elem.Name 
Medium 15 Element Name 
Long 24 Name of Rule Element 
Heading 32 Element Name 
Documentation

Definition

Use

You can use a generation rule with a context counter to determine that a serial number is assigned to part of a string of the generated ID.

To set a rule with a context counter, you have to define the following rule elements with the same name:

  • Start marker for context counter
  • End marker for context counter
  • Context counter

The marker elements determine the context (part string of the generated ID) for which you want the counter element to generate a new number.

You generate the logical context of the elements using the name of the elements. Because the names of rule elements must be unique in the system, the marker elements have a name prefix (which you cannot change).

Note:

The following prerequisites apply when defining rules:

  • Elements that belong together must be defined in the same rule.
  • The start marker must be before the end marker.
  • The end marker must be before the corresponding context counter.

Dependencies

Example

The context counter for transactions in a record would consist of the following elements:

MBEG_transaction number        (start marker)

MEND_transaction number        (end marker)

transaction number        (context counter)

History
Last changed by/on SAP  20040312 
SAP Release Created in 620