When you write ABAP code blocks or static filter conditions, use current system information such as system date and system user name. SAP system variables such as SY-DATUM and SY-UNAME can provide current system information. You need to first create a structure field variable to represent a system variable.
For example, you want to create a structure field variable named sysvar1 to represent SY-DATUM. The Designer generates the following statement in the ABAP program:
data: SYSVAR1 like sy-datum.
You can then use sysvar1 to represent SY-DATUM in the ABAP program flow. You cannot enter an initial value for system variables in the ABAP Program Variables dialog box. You can assign initial values for system variables in the ABAP code block.