Show TOC

 Using Variables in ABAP List-Based PI Sheets Locate this document in the navigation structure

Use

You use variables in process instructions if you want to refer to a characteristic of a preceding process instruction. Using the variable, you transfer the value of this characteristic to the current process instruction. You can use variables:

Prerequisites

  • The variable has been defined in a preceding process instruction and is valid for the PI sheet or the entire process order.

Exception:

In input validations, variable X always refers to the preceding input value. You need not define it in the process instruction.

  • The variable’s data type is suitable for the purpose for which you want to use the variable. You need:

    • Data type NUM for check formulas of input validations and for calculation formulas

    • The data type of the corresponding parameter for check functions of input validations and for dynamic function calls

    • The data type of the relevant input value for default values

    • Any data type for output values

    • The data type of the message characteristic to be assigned a value for hidden data requests

The data type of a variable is identical to that of the characteristic or parameter to which it refers.

See also:

Features

Variables defined in a simple data request or function call refer to exactly one value. In this case, you must only enter the variable name to transfer the value of another process instruction.

Variables defined in a repeated data request , however, represent an entire table column. To refer to a specific table entry, you must extend the variable name. The following rules apply:

<Variable name>_1

->

Value in first line of table

<Variable name>_2

->

Value in second line of table

And so on

 

And so on

<Variable name>_SUM

->

Sum of the values in the table column

<Variable name>_COUNT

->

Number of values in the table column

Note Note

If a variable was defined for the entire process order, the system does not transfer its value to the process instructions of other PI sheets unless it cannot be changed anymore. This is the case after the value has been reported, that is, when the corresponding process message has been transferred to process management to be send to its destination.

End of the note.