When you write ABAP code blocks or static filter conditions, use variables to represent SAP structures, fields in SAP structures, or values in the ABAP program. You can create the following types of variables in the ABAP Program Flow dialog box:
Structure and structure field variables.
Represents structures and fields in structures defined in the SAP system.
ABAP type variable.
Represents values in the ABAP program.
After you create the variable, use the variable as many times as you need in the ABAP program flow. The Designer generates a data statement to declare the variable when you generate the ABAP program. The SAP system validates the syntax used with variables in the ABAP code blocks or filter conditions when you install the ABAP program.
When you assign an ABAP program variable to another variable in an ABAP code block, be sure that the variables have the same precision and datatype.
You cannot use an ABAP program variable if the ABAP program flow contains a hierarchy and no other sources.