Show TOC

Output values

If you want to display values of characteristics or variables that are usually processed in the background in the PI sheet, you mark these values as output values in the process instruction.

You can display the following characteristic values in the PI sheet:

You can display the value of a variable in the PI sheet, if the variable has been defined in one of the preceding process instructions and is valid for the PI sheet or the entire process order.

You also define a text for the output values in the process instruction. In the PI sheet, this text is processed as follows:

In the PI sheet, output values are displayed after the input values or formula results after which they have been defined in the process instruction.
Assign the following characteristics at the appropriate position in the process instruction:

Characteristic Meaning Allowed values
PPPI_OUTPUT_TEXT Text for output value Any short text
PPPI_OUTPUT_ Characteristic Message characteristic
CHARACTERISTIC whose value is (see above)
to be displayed
PPPI_OUTPUT_VARIABLE Variable whose
Variable (1)
value is to be defined before
displayed

Further Notes

Using text symbols in text characteristics (2)

Notes

(1) Using variables in process instructions:

You can only use a variable in a process instruction if:

If a variable refers to table entries, specific rules apply (see below).

Validity of variables

A variable is valid for the entire process order if it has been defined in a process data request or process data calculation formula using characteristic PPPI_GLOBAL_VARIABLE.

A variable is valid within the PI sheet if:

Data type of variables

The following table lists the data type a variable must have to be able to use it for specific purposes.

Using variables Required data type
In check formula (input validation) NUM
In check function (input validation) Identical to parameter
In calculation formula NUM
As default value Identical to input value
As output value Any
As values of message Identical to mess. characteristic
characteristics
In dynamic function call Identical to parameter

The data type of a variable depends on the characteristic that was used to define the variable (see table below). It is identical to the data type of the characteristic or parameter to which the variable refers.

Variable definition using Data type of variable
PPPI_DATE_VARIABLE Date
PPPI_TIME_VARIABLE Time
PPPI_FLOAT_VARIABLE Floating point number
PPPI_STRING_VARIABLE Alphanumeric value
PPPI_VARIABLE and Identical to data type of charact. PPPI_GLOBAL_VARIABLE to which the variable refers

Reference to table entries

Variables that have been defined in a repeated data request refer to an entire table column. If you want to refer to a specific table entry, you must extend the table name. The following rules apply:

<Variable name>_1 -> Value in 1st table line
<Variable name>_2 -> Value in 2nd table line
etc. etc.
<Variable name>_SUM -> Sum of the values in table column
<Variable name>_COUNT -> Number of values in the table column

(2)> Using text symbols in text characteristics:

You can use text symbols to refer to the value of another characteristic from within a long or short text (or from an alphanumeric characteristic value).

You can use text symbols, for example:

The system replaces the text symbol with the corresponding characteristic value when you:

Requirements

The text field is long enough and can accommodate the text symbol.

In addition, one of the following requirements is met:

The process instruction assistant does not support text symbols that refer to the value of a control characteristic.

Activities

Inserting text symbols in short texts in the process instruction assistant

1. In the short text, place the cursor where you want to insert the text symbol.
2. Choose Edit -> Insert -> Text symbol.
3. A list containing all characteristics to which you can refer is displayed.
4. Position the cursor on the characteristic you want to use and choose Continue.
5. The system inserts the text symbol where you positioned the cursor.

Inserting text symbols in the SAPscript editor or on the characteristic overview

Manually insert the text symbol using the following syntax:

& <characteristic name in capital letters> & (without blanks)
& <four-digit sort number assigned to the characteristic in the process instruction> & (without blanks)

Inserting text symbols in the PC editor

1. Place the cursors on the position in the text where you want to insert the text symbol.
2. Choose Edit -> Insert command.
3. Select the Symbols entry.
4. Enter the text symbol in the corresponding input field.
Use the same syntax as in the SAPscript editor.
5. Choose Continue.
The text symbol is inserted in the text as a command.