SAP ABAP Data Element LEXFLAG (Indicator for lexicographical material numbers)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   CA-GTF-TS (Application Component) Technical Application Support
     BMG (Package) Material Master: Componentization Interfaces
Basic Data
Data Element LEXFLAG
Short Description Indicator for lexicographical material numbers  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type 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

Defines the way numeric material numbers are stored in the database.

Use

Caution
It is only possible to set or reset (cancel) this indicator if no numeric material numbers have been used yet in the system since they would no longer be interpretable after setting or resetting this indicator.

  • If this indicator is not set, numeric material numbers are padded with leading zeros and stored right-justified (example 1). Material numbers containing at least one nonnumeric character are stored left-justified (example 2).

    Example 1

    Defined length:                            8 characters

    Internally/externally assigned number:    123

    Stored number:                            000000000000000123

    Example 2

    Defined length:                            8 characters

    Externally assigned number:                1A3

    Stored number:                            1A3

  • If this indicator is set, material numbers are stored as follows:
    • If the material number (numeric or not purely numeric) was assigned externally, it is stored left-justified as entered.
    • Example
      Defined length:                8 characters
      Externally assigned number:    123
      Stored number:                123
      Note
      Any leading zeros that may have been entered are stored too. This makes it possible to distinguish between the material numbers 123 and 0123.
    • If the material number (numeric only) was assigned internally, it is padded with leading zeros to the defined length and stored left-justified.
    • Example
      Defined length:                8 characters
      Internally assigned number:    123
      Stored number:                00000123

Procedure

Examples

Dependencies

Please also note that the sequence in lists and tables that are sorted by material number depends on the form of storage chosen.

Example of nonlexicographical storage
2 < 123 < 234 < 1A3

Example of lexicographical storage
123 < 1A3 < 2 < 234

History
Last changed by/on SAP  19980909 
SAP Release Created in