SAP ABAP Data Element CMAP_RGEXP (Regular Expression)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   LO-PDM-GF (Application Component) General Functions
     CMAP (Package) Semantic Mapping
Basic Data
Data Element CMAP_RGEXP
Short Description Regular Expression  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type CMAP_FLAG    
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 RegExp 
Medium 15 RegExp 
Long 20 Regular Expression 
Heading RegExp 
Documentation

Definition

Definition that the characters for the attribute values are interpreted as regular expressions.

Use

Through the use of regular expressions it is possible to transfer the attribute values from the source system into the target system in an efficient way. There are various operators with a fixed syntax, for example:

  • Operators for positioning:

    & for the end of a row

    &1 for the first item in a row

  • Operators for characters:

    . for any character (place holder)

  • Operators for repetitions:

    * for each character or for the repetition of default characters

Dependencies

In addition to these indicators, you enter a character string for the attribute value of the source system and one for the attribute value of the target system, with which you establish the rules for mapping.

Example

You maintain the attribute mapping MAT. In this mapping scenario, the material number is transferred from the source system (source attribute Q1-MAT) into the target system (target attribute R3-MAT-NR).

Example 1:

The indicator Regular Express is set. In the fields for the attribute values, you enter the following mapping rule:

Attribute        Attribute value    Example data

R3-MAT-NR        &1-        123-
(Target attribute)

SOURCE-MAT        M(.*)        M123
(Source attribute)

Example 2:

The indicator Regular Express is not set. In the fields for the attribute values, you enter the following values:

Attribute        Attribute value

R3-MAT-NR        F-D-12
(Target attribute)

SOURCE-MAT        M12
(Source attribute)

If the material number in the source system has the value M12, the number F-D-12 is assigned for this material in the target system.

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