Variables in Process Instructions
Use
You can use the following types of variables in process instructions:
- Variables that you define yourself and use to transfer characteristic values from one process instruction to another. You have the following options:
- Within one control recipe à
simple variables
- Between different control recipes of a process order à
global variables
- Variables whose values have been predefined by SAP à
system variables
User-Defined Variables
To use variables to transfer values, you must define the value to be transferred. For more information on how to define a variable for a characteristic value, see
Definition of Variables.You can now use the characteristic value that you have defined by way of the variable somewhere else in the control recipe. When you want to use variables, you must distinguish between simple and global variables.
- Simple variables
To use simple variables, you need to specify the variable name.
- Global variables
When you use global variables, you must distinguish between variables that you want to use in the ABAP list-based PI sheet or in the browser-based PI sheet.
- In ABAP list-based PI sheets (control recipe destination type 1), you only need to specify the variable name to use global variables.
For more information, see
Using Variables in ABAP List-Based PI Sheets.
- In browser-based PI sheets (control recipe destination type 4), you must first declare the global variable that you have defined in another control recipe in the control recipe in which you want to use it. Only then can you specify the variable name at the position where you want to use the variable.
For more information, see
Using Variables in Browser-Based PI Sheets.
SAP System Variables
You can use system variables in browser-based PI sheets only. To use them, you need to specify the name of the system variable you want to use in the process instruction.
For more information, see
Using System Variables in Browser-Based PI Sheets.