SAP ABAP Data Element CV_LEX_FLAG (Indicator for Lexico-Graphical Document Number)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CA-DMS (Application Component) Document Management System
     CV (Package) Application Development: R/3 Document Management
Basic Data
Data Element CV_LEX_FLAG
Short Description Indicator for Lexico-Graphical Document Number  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type CV_LEXFLAG    
Data Type CHAR   Character String 
Length 1    
Decimal Places 0    
Output Length 1    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Lexico. 
Medium 15 Lexicographical 
Long 20 Lexicographical 
Heading Lex 
Documentation

Definition

Determines how numerical document numbers are saved to the database.

Use

Warning
Setting/Resetting this indicator is only possible when the system has not yet been used with numerical dcument numbers. After using numerical document numbers setting and resetting cannot be interpreted.

  • When the indicator is not set, zeroes are added to the beginning of document numbers and saved right-jsutified (example 1). Document numbers that contain at least one non-numerical character are saved left-justified (example 2).

    Example 1

    Set length:                8 Characters

    Internally/externally assigned number:    123

    Number saved:            000000000000000123

    Example 2

    Set length:                8 Characters

    Externally assigned number:        1A3

    Saved number:                1A3

  • If the indicator is set, document numbers are saved as follows:
    • If the document number (numerical or not) was assigned externally they are saved left-justified.
    • Example
      Set length:            8 Characters
      Externally assigned number:    123
      Number saved:        123
      Note
      Zeroes added to the beginning are saved. This enables the system and you to differentiate between document numbers 123 and 0123.
    • If the document number (nur numerical) was assigned internally, zeroes are added to the beginning up to the set length and it is saved left-justified.
    • Example
      Set length:            8 Characters
      Internally assigned number:    123
      Number saved:        00000123

Procedure

Examples

Dependencies

Note that the sequence in lists and tables that are sorted after the document number are changed according to the way the document number is saved.

Example non-lexicographical save
2 < 123 < 234 < 1A3

Example lexicographical save
123 < 1A3 < 2 < 234Definition

History
Last changed by/on SAP  20010607 
SAP Release Created in 470