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.

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

Variable

Description

&CLIENT

Logon client.

&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

Variable

Description

&CLEAR

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

&DESTINATION

RFC destination.

&DESTINATIONHTTP

RFC destination (HTTP).

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

&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

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.