cancel
Showing results for 
Search instead for 
Did you mean: 

ECATT variables

Former Member
0 Kudos
387

Hi

There are special read-only eCATT variables, which can also be used in command editor. e.g. &YEARB, &YEARA, &YEAR, &VARID, &USER, &TIME, &SYSTEM, &SUBRC, &SCRIPTVERSION, &SCRIPTNAME, &SAPRL, &REFVERSION, &REFNAME, &REFLEVEL, &OPSYS, &MSX, &MST, &MSN, &MSI, &MSG, &MS4, &MS3, &MS2, &MS1, &M04, &M03, &M02, &M01, &LPC, &LOGID, &LANGUAGE, &HOST, &EXCEPTION, &DBSYS, &DATE, &CLIENT etc.

May i know meaning of these variables and which variable we are using in ECATT chain of transactions.

I need answer for this question as early as possible. Marks assured.

Thanks,

Anil

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi!

Followings is extracted from SAP :

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.

Former Member
0 Kudos

Hi KL,

I am creating a purchase cycle. In that, purchase requisition number, which is there in Shedule line data, created from the sales order which has to go to ME21N to create purchase order. How to pass this purchase requisiition number to ME21n from VA01or VA02. Please give me reply as early as possible.

Thanks,

Anil

Former Member
0 Kudos

Hi,

Generally &MS2, &MS1 are the message variables we use to store the information for linking or chaining scripts.

for example the information could be a mateial number or customer number based on the transacrion we record.

hope it helps.

Reward if it helps.

cheers,

S3CG Team