Skip to end of metadata
Go to start of metadata

This article contains a step by step guide to create an ECATT script.

ECATT stands for Extended Computer Aided Test Tool. The transaction code used to access the ecatt scripts is SECATT.

Scripts are used to automate repetitive processes. For example to create 100 users. Data is entered in an excel sheet saved and is picked up the script to carry on the processing.

The steps are given below:To create an eCATT script we must first create the Test Script. After the test script we will create a Test Configuration.

Enter the transaction code SECATT and hit enter. Select the Test Script radio button and enter the name of the script that you need to create (For example : Z_SU01_CREATE_USERS).

Now click the create button on the screen. You will be taken to a new screen. Enter the Description of the script in the Title bar and also enter the Component.Now, Click on Pattern button on menu bar.*Group = *UI Control

Command = TCD (Record)

Now enter the transaction code in the transaction field (For example SU01 to create users) and hit enter. The default interface will be filled automatically. Click the green check mark and you will be directed to the screen of the transaction code you have entered.

Perform the steps that you want to record and go back.After backing out of the function you were recording you will be returned to the eCATT screen and you should see a prompt asking if you want to transfer the data. Answer Yes.

Now double click on the interface (For example the interface for SU01 is SU01_1). A split screen will appear.
Navigate through the various screens you just recorded replacing fixed values with import variables (For Example : Replace the username you entered while recording the script in SU01 to create a user with a variable name, say USERID). This has to be done in VALIN column. *(Note: Do remember to erase any previously filled values while recording your steps otherwise they will appear in the VALOUT column and you wont be able to give them variable names)*This is done by opening the Dynpro menu and double click on the last row that contains Field, Mode, Name etc columns.We need to enter variable names in place of those values which we have entered manually. (For example : While creating a script for user creation, the values which need to be replace by variable names would be First Name, Last Name, Email, Department etc.)Once you enter the variable name hit the enter key. A screen will appear. The default parameter type will be Local. You should change this to Import and click on the Yes button. The icon shape will change at the Dynpro Menu for the Value where you have given the variable name.

When complete click on the save icon and save as a local object or place in a development class if you desire to transport the eCATT. Go Back.
Before you can execute the eCATT you must also create a Test Configuration.Enter the name for the Test Configuration (For Example - Z_SU01_CREATE_USERS) and click on the create icon.

Give the Test Configuration a Name and Component and then click on the Configuration tab.Enter the name of the test script which you just created in the Test Script field and hit enter. Now we need to create the Excel template file to store the variable data. Click on the download variant button on the menu bar (Fourth button from the left, the one with yellow arrow).Accept the default name and directory and click save. Click yes on the subsequent screen to resolve references to Test Data Container.

After clicking Yes icon, you should see the message at the bottom of the screen "variants successfully downloaded". Now click on the Variants tab and you should see the following screen. Choose the external variants radio button and enter the name of the file you just created in the File field.

Now click on the save icon and save as a local object or place into a development class (package) so it can be transported. You are now ready to execute your new eCATT Test Script via the Test Configuration. Go to the location where the text file is saved. For convenience of data entering open the file in excel and populate with your data. Be sure to number each record in your data file correctly (this needs to be done the ecattdefault column) else eCATT will not be able to read the data correctly.

Save the excel file without changing its format. Now go back to SAP, runthe tcode SECATT. Enter the test configuration and click on Execute. Choose the error behaviour options. Now again click on the execute button on the menu bar.


  1. Unknown User (qzrlk01)

    I really like this post. It makes Ecatt script creation a lot easier to understand than any other guide I have read or any other Video I have seen.

     May I ask how can I pass a value created within a script (ie sales order number) on to another seperate script that is part of a particual scenario test? 

  2. Unknown User (bby1rh7)

    Excellent example and documentation for step-by-step procedure for creating ecatt (TCD) script.  The only thing missing is screen shots but, you did a great job of explaining what would be seen

  3. Unknown User (hlcjaj6)

    Just one word describes this post "EXCELLENT".