Show TOC

Special VariablesLocate this document in the navigation structure

Use

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.

Example

LOG ( SY-UZEIT ).

eCATT Variable

eCATT variables are read-only.

You can use eCATT variables in the command editor.

Example

LOG ( &TIME ).

You can use eCATT variables in the parameter list as default values for simple input parameters.

To see the current list of variables, choose Pattern in the test script editor and then the assignment command ( = ). There is a dropdown list in the eCATT Standard Parameter field.

General Variables

Variables

Description

&CLIENT

Logon client of target system.

&CLIENT_HTTP

Logon client of target system (HTTP).

&DBSYS

Database system of the target system.

&DBSYS_HTTP

Database system of the target system (HTTP).

&DCPFM

Decimal notation.

&GUITYPE

Current GUI type. The possible values are: WINGUI, JAVAGUI, and HTMLGUI.

&HOST

Target on which the script was executed.

&HOST_HTTP

Called host of target system (HTTP).

&DBHOST_HTTP

Host of database of target system (HTTP).

&LANGUAGE

Logon language.

&LANGUAGE_HTTP

Logon language of target system (HTTP).

&OPSYS

Operating system of the target system.

&OPSYS_HTTP

Operating system of the target system (HTTP).

&SAPRL

SAP_BASIS release of the target system.

&SYSTEM

Target system.

&USER

User name.

&USER_HTTP

User name of target system (HTTP).

Test Script Variables

Variables

Description

&CLEAR

Apostrophe SPACE apostrophe ( ' ' ). Can be used as a fixed value in interfaces.

&DESTINATION

RFC destination.

&DESTINATIONHTTP

RFC destination (HTTP).

HTTP_TRANID

TransID for performance trace for applications using the HTTP protocol.

&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.

LTC

Current pass in a LOOP...ENDLOOP loop.

TABIX

Index of the table row currently being processed in a LOOP...ENDLOOP loop.

&REFLEVEL

Nesting level of a referenced test script.

&REFNAME

Name of a referenced test script.

&REFVERSION

Version of a referenced test script.

&SKIP

Single apostrophe ( ' ). Can be used as a fixed value in interfaces.

&SYSTEMDATA

System data container.

&SCRIPTNAME

Name of the test script.

&SCRIPTVERSION

Version of the test script.

&SUBRC

System field SY-SUBRC.

&TARGETSYSTEM

Target system.

&TFILL

Fill level of a table-type parameter. It is set after:

Table processing by APPEND, INSERT, DELETE, CLEAR, LOG, or GETLEN.

An assignment to a table-type parameter.

&VARID

Variant name.

Date and Time Variables

Variables

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

Earlier message variables have been replaced by a new message concept. The variables still work, however, they should no longer be used.