Entering content frame

Object documentation Expression Locate the document in its SAP Library structure

Definition

Object of the Business Rule Framework that returns a "primitive" result.

Use

On the basis of a freely definable regulation (such as a calculation rule), the following data is processed in an expression:

·        Data of the application

·        Data of the objects associated with the application (such as business partner data)

If the system has processed the data, the expression returns a result from a primitive category of your choosing (see below under “Structure”.

You can nest expressions, in other words expressions can access results of other expressions. This means that you can link expressions with one another without restriction.

As a result, there are expressions that access other expressions, and expressions (final expressions)   that cannot access any other expressions.

Expressions can also be classified into value requests (VR) and operations (OP).

 

Structure

Result Type

At present, the following result types are supported in the calculation of an expression:

·        B for Boolean

·        C for character (maximum length 50)

·        D for date

·        F for floating point number

·        I for integer (maximum 4 bytes)

·        M for currency amount incl. currency key

·        N for numerical character string

·        P for packed decimal number

·        T for time

·        R for reference to a structure or internal table

Expression Type

The expression type determines how an expression is actually calculated. In turn, the expression type is determined by the implementing class.

Note“Implementing class“ is more of a technical term. It is used synonymously for expression type (and also action type) in the sense of “implementing class of an expression”.

Attributes of an Expression

To maintain an expression, the following fields are usually available:

NoteThe first two sections Administrative Data and Result Typing are very similar in all expression types.

·        Administrative Data section

¡        Short text

¡        Group

¡        Version

¡        Import status

¡        Created by

¡        Created On/At

¡        Application Class

¡        Language

¡        Expression Type

·        Result Typingsection

In the Result Typing section the following fields are displayed, depending on the expression type:

¡        Result Type

¡        Field/Structure Length

¡        Output Length

¡        Decimal Places

¡        Positive and negative formulation of a Boolean fact

·        The other sections and fields of the other sections vary according to the expression type.

 

 

Leaving content frame