Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding SCATT Command

Former Member
0 Likes
575

Hi to all

I want to know exactly use of SCATT comand in data migration

is there r any ebook or document aviable or pls give me link.

thanks in advance.

nitin

2 REPLIES 2
Read only

Former Member
0 Likes
363

Hi,

Here is the CATT step-by-step tutorial. This should help you.

http://help.sap.com/saphelp_47x200/helpdata/en/fd/f10538d6cb1e3be10000009b38f8cf/frameset.htm

This is for eCATT:

http://help.sap.com/saphelp_47x200/helpdata/en/e6/7aa03b14ce7426e10000000a114084/frameset.htm

Use extended Computer Aided Test Tool (eCATT) to create and execute functional tests for software. The primary aim is the automatic testing of SAP business processes. Each test generates a detailed log that documents the test process and results.

eCATT enables automatic testing in SAP GUI for Windows and SAP GUI for Java. In order to offer a complete test solution that covers other GUIs, eCATT has interfaces to third party tools.

Implementation Considerations

Test cases usually make database changes. Therefore, you should not normally run them in productive systems.

In general, do not use eCATT to manipulate data in a productive system: eCATT is a test tool. Instead, use techniques such as Batch Input.

Integration

eCATT can be used with the Test Workbench.

You can migrate test cases from Computer Aided Test Tool (CATT) to take advantage of the better features of eCATT.

eCATT is also integrated with the Object Navigator (SE80).

Features

· Test transactions, reports, and scenarios

· Call BAPIs and function modules

· Test remote systems

· Check authorizations (user profiles)

· Test updates (database, applications, GUI)

· Test the effect of changes to customizing settings

· Check system messages

http://www.sap-img.com/sap-catt.htm

User Guide for Data Upload

The use of CATT is for bulk uploading of data. Although CATT is primarily a testing tool, it can be used for the mass upload of data. The way CATT works is like a real user actually inputting on the SAP screen. You prepare a set of data that are required to be input into the system and execute what you called a Test Case and CATT will do the boring task of keying for you.

Over-all procedure

The over-all procedure to upload data using CATT is as follows:

· Creation of the CATT test case & recording the sample data input.

· Download of the source file template.

· Modification of the source file.

· Upload of the data from the source file.

Details of each step are provided in the following paragraphs.

Detailed Procedure

Creation of the CATT test case:

Creation of the test case is completed as follows:

· Execute Transaction SCAT

· Name the test case. Test case name must start with “Z”. It is also good practise to include the transaction code in

the test case name (e.g. Z_IE01_UPLOAD for the upload of equipment)

· Click the “Record” button.

· Enter the transaction code (e.g. IE01)

· Continue recording the transaction. Ensure data is entered into every field that is to be used during the upload.

· Save the test case.

Download the source file template

Download of source file template is conducted in two stages as follows:

· Creation of import parameters:

· Within transaction SCAT, Double Click on the TCD line in the “Maintain Functions” screen.

· Click the Field List button (Field list is displayed).

· For every field that you wish to upload data, double click in the Column New field contents (This creates an

import parameter).

· In the Maintain Import Parameter Pop-Up:

· Delete the default value if not required.

· Press Enter

· The New field contents column now contains the character & followed by the field name (e.g. &EQART). This

is the name of the import parameter.

· Repeat this for every field (in every screen) to be uploaded.

· Back out and save the CATT test case

· Download of source file template:

· Use the path GOTO -> Variants -> Export Default

· Select path and file name (e.g. C:TEMPZ_IE01_UPLOAD.TXT)

· Click Transfer

Modify the source file

The downloaded source file template is now populated with the data that is to be uploaded. This is completed as follows:

· Using Excel, open the tab-delimited text file.

· Do not change any of the entries that already exist.

1st row contains the field names.

2nd row contains the field descriptions.

3rd row displays the default values which are set in the test case.

4th row contains a warning that changing the default values in the spreadsheet has no effect on the actual default values.

· The data to be uploaded can be entered in the spreadsheet from row 4 onwards (delete the 4th row warning &

replace with data for upload).

· Save the file as a Text file (Tab delimited).

Upload data from the source file

Uploading the data is completed as follows:

· Execute the CATT test case

· In the Execute screen:

· Set processing mode to Errors or Background (your choice).

· Set variants to External from file.

· Click the Choose button and select the file to be uploaded.

· If uploading to another client, click the Remote execution button and select the RFC connection to the required client.

· If uploading to the current client, click the execute button.

Regards,

Padmam.

Read only

Former Member
0 Likes
363

Hi

SAP users use CATT frequently to upload master data or to make changes to master data records. SAP Consultants and Abapers tend to use it for creating test data. The transactions run without user interaction. You can check system messages and test database changes. All tests are logged. The CATT records your keystrokes while performing the actual transaction. You then identify the fields that you wish to change in that view. Then export this data to a spreadsheet to populate with the data required. This is uploaded and executed saving you keying in the data manually.

To perform CATT, it has to be enabled in your production environment (your systems administrator should be able to do this - SCC4). You will also need access to your development system to create the CATT script.

The process of uploading data with a CATT:

Activate CATT in your client

In transaction code SCC4 - click the change button

Double click on the client number

In the Restriction section, tick Allows CATT processes to be started.

Upload data using CATT

1. Create Import variant for the fields you need

Transaction SCAT

Goto Parameters

Create Import Variant

Goto Variant -> Edit

Goto Variant -> Fast entry or F9

Duplicate 01

2. To change the MRP Group for a list of Material

Assuming that I want to change the MRP Group for a list of Material.

My text files should look something like this:

[Variant ID] [Variant Text] &ZDISGR &ZMATNR

--> Parameter texts MRP group Material

--> Default Values M1 A001

      • Changes to the default values displayed above not effective

#01 M1 A001

#02 '' A002

#03 M1 A003

Note : '' denotes a blank in the field. e.g. Material A002 MRP group will be replaced by a blank.

3. Configure the recorded entry fields to read from the imported text file data

In the CATT : Maintain functions test case Screen

Double click on the Object Name

Double click on the screen number with your desired fields

Park the cursor on the fields

Click Edit -> Details

Fill in the Parameters Name and Field Contents

Finish Save it.

Assign your text file data.

In the CATT : Execute test case Screen

Click External from file and choose your text file

CATT will now read from your text file and update whatever data you have specified.

u can go through this link

https://www.sdn.sap.com/irj/sdn/advancedsearch?query=catt&cat=sdn_all

Please check this link which has the eCATT online document.

https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm

to start working on eCATT follow tru these links,

eCATT- An Introduction

/people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction

Creating Test Scripts

/people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts

eCATT Logs

/people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi

eCATT Scripts Creation – TCD Mode

/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii

Creation of Test Data Container

/people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container

eCATT Scripts Creation - SAPGUI Mode

/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii

Integrating ECATT & MERCURY QTP Part -1

/people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1

Using eCatt to Test Web Dynpro ABAP

/people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap

and

-command reference

http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm

/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i

http://prasadbabu.blogspot.com

https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm

http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm

http://www.erpgenie.com/ecatt/index.htm

Check CATT help. http://saptechnical.com/Tutorials/eCATT/eCATTMain.htm

<b>Reward points for useful Answers</b>

Regards

Anji