
Special Variables
System Fields
The system fields contain system information. They are read-only. You can use any of the ABAP system fields in the command editor. The names of the system fields are in the ABAP Dictionary structure SYST.

LOG ( SY-UZEIT ).
eCATT Variable
eCATT variables are read-only.
You can use eCATT variables in the command editor.

LOG ( &TIME ).
You can use eCATT variables in the parameter list as default values for simple input parameters.
General Variables
|
Variable |
Description |
|
&CLIENT |
Logon client. |
|
&DBSYS |
Database system of the target system. |
|
&GUITYPE |
Current GUI type. The possible values are: WINGUI, JAVAGUI, and HTMLGUI. |
|
&HOST |
Target on which the script was executed. |
|
&LANGUAGE |
Logon language. |
|
&OPSYS |
Operating system of the target system. |
|
&SAPRL |
Basis release of the target system. |
|
&SYSTEM |
Target system. |
|
&USER |
User name. |
Test Script Variables
|
Variable |
Description |
|
&EXCEPTION |
Exception of a function module called by the FUN command. |
|
&LOGID |
Log number. |
|
&LPC |
Current value of the loop count in an DO...ENDDO loop. |
|
&REFLEVEL |
Nesting level of a referenced test script. |
|
&REFNAME |
Name of a referenced test script. |
|
&REFVERSION |
Version of a referenced test script. |
|
&SCRIPTNAME |
Name of the test script. |
|
&SCRIPTVERSION |
Version of the test script. |
|
&SUBRC |
System field SY-SUBRC. |
|
&VARID |
Variant name. |
Date and Time Variables
|
Variable |
Description |
|
&TIME |
Current time in the format HHMMSS. |
|
&DATE |
Current date in the format YYYYMMDD. |
|
&YEAR |
Current year in the format YYYY. |
|
&YEARB |
Previous year in the format YYYY. |
|
&YEARA |
Next year in the format YYYY. |
Message Variables
|
Variable |
Description |
|
&M01 |
First variable text from the last message after a TCD command. |
|
&M02 |
Second variable text from the last message after a TCD command. |
|
&M03 |
Third variable text from the last message after a TCD command. |
|
&M04 |
Fourth variable text from the last message after a TCD command. |
|
&MSG |
The last message after the TCD or FUN eCATT commands. |
|
&MS1 |
First variable text from the last message. |
|
&MS2 |
Second variable text from the last message. |
|
&MS3 |
Third variable text from the last message. |
|
&MS4 |
Fourth variable text from the last message. |
|
&MST |
The message type of the last message. |
|
&MSI |
The message ID of the last message. |
|
&MSN |
The message number of the last message. |
|
&MSX |
The number of messages. |

You can access all the messages from a transaction.
DO &MSX.
LOG ( <command interface>-MSG[&LPC]-FLDNAME ).
ENDDO.