Show TOC Start of Content Area

Background documentation Expression Dialog  Locate the document in its SAP Library structure

The expression associated with a validation, an assignment, or a calculated field is defined and edited using the same expression editor within the applicable expression dialog, as shown in the figure below.

This graphic is explained in the accompanying text

An expression consists of field names, attribute names, qualifier names, lookup values, attribute text values, operators, and functions, which you can type in manually or use the toolbar buttons to enter for you.

Note

If you manually type field, attribute, qualifiers, operators, and function names, MDM automatically tokenizes the text you have just typed when you press Space, and highlights these tokens in blue.

You must use the toolbar buttons to enter lookup values, text attribute values, and measurement values (consisting of a number and a unit of measure). MDM highlights these tokens in magenta.

Expressions now support limited measurement arithmetic addition within the same convertible dimension (MDM uses the unit of the left-hand operator), and multiplication of a scalar with a measurement (for example, Length *2 < 50 ft).

Tokens for the values of lookup fields and text attributes appear as “name [value]” and for virtual fields names (such as [Record], [Depth], [Parent], [Child]) appear insquare brackets ([]).

Expressions are token-based, so that you do not have to type field, attribute, qualifier, operator, or function names, and can instead select them from drop-down lists, reducing the potential for typing error.

The following table describes the toolbar buttons of the Expression dialog for entering tokens into the expression.

Control / Button

Tooltip

Description

This graphic is explained in the accompanying text

Number

Type the number for a measurement value

This graphic is explained in the accompanying text

Dimension

Choose from the drop-down list of dimensions

This graphic is explained in the accompanying text

Unit

Choose from the drop-down list of units

This graphic is explained in the accompanying text

Enter

Enter the measurement value into the expression

This graphic is explained in the accompanying text

Cancel

Clear the measurement value

This graphic is explained in the accompanying text

Fields

Choose from the drop-down list of fields, and for each lookup, from the cascading menu of fields

This graphic is explained in the accompanying text

Attributes

Choose from the drop-down list of attributes

This graphic is explained in the accompanying text

Relationships

Choose from the drop-down list of relationships, and then from the cascading menu of fields

This graphic is explained in the accompanying text

Lookups

Choose from the drop-down list of lookups, and then from the pop-up dialog of lookup values

This graphic is explained in the accompanying text

Text Values

Choose from the drop-down list of text attributes, and then from the pop-up dialog of text values

This graphic is explained in the accompanying text

Operators

Choose from the drop-down list of operators

This graphic is explained in the accompanying text

Functions

Choose from the drop-down list of functions

 

End of Content Area