Using Variables in ABAP List-Based PI Sheets 

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

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

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


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.