Entering content frame

Background documentation Special Variables Locate the document in its SAP Library structure

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.

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.

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

&CLEAR

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

&DESTINATION

RFC destination.

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

 

 


 

Leaving content frame