bc - how to create ecatt script

18
How to Create eCATT Script Applies to: All Functional Consultants for ECC 6 version. For more information, visit the Enterprise Resource Planning homepage . Summary This article explains how to create eCATT Script related to HR module and how this can be used to load mass data into R/3. eCATT Script can be used to load mass data as alternative to LSMW. CATT Script functionality is similar to BDC Program. Author: Chandra Kandukuri Company: L & T Infotech Created on: 15 February 2009 Author Bio Chandra Sekhar Kandukuri is working with L & T Infotech as a HR Functional Consultant in Chennai. He is working in all HR modules and more into R & D to develop functionality and tools. Working on ESS/MSS and Org Charting tool. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1

Upload: pedro-caldeira

Post on 18-Apr-2015

98 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BC - How to Create eCATT Script

How to Create eCATT Script

Applies to: All Functional Consultants for ECC 6 version. For more information, visit the Enterprise Resource Planning homepage.

Summary This article explains how to create eCATT Script related to HR module and how this can be used to load mass data into R/3. eCATT Script can be used to load mass data as alternative to LSMW. CATT Script functionality is similar to BDC Program.

Author: Chandra Kandukuri

Company: L & T Infotech

Created on: 15 February 2009

Author Bio

Chandra Sekhar Kandukuri is working with L & T Infotech as a HR Functional Consultant in Chennai. He is working in all HR modules and more into R & D to develop functionality and tools. Working on ESS/MSS and Org Charting tool.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1

Page 2: BC - How to Create eCATT Script

How to Create eCATT Script

Table of Contents 1. Simulation Method: .........................................................................................................................................3

I. Creation of Test Script: ............................................................................................................................3 II. Creation of Test Configuration: .........................................................................................................7 III. After creation of new CATT Script, test the same and verify the results. .........................................8

A. Testing the created CATT script manually:..............................................................................................................8 B. Testing the CATT Script using the spread sheet: ..................................................................................................10 C. Attaching the file to eCATT:...................................................................................................................................11 D. Run eCATT script in background: .........................................................................................................................12

2. Creation of CATT Script by defining field parameters through field edit option: ..........................................13 1. Creation of Test Script: .............................................................................................................................13

Related Content................................................................................................................................................17 Disclaimer and Liability Notice..........................................................................................................................18

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2

Page 3: BC - How to Create eCATT Script

How to Create eCATT Script

There are two methods to create a eCATT Script 1. Simulation method 2. Field Edit method

eCATT Script has two steps i. Test Script and ii. Test Configuration.

1. Simulation Method:

I. Creation of Test Script:

Enter the Tcode SECATT in the command box.

1. Enter the Test Script name and click on Create button.

2. Enter the Title of the CATT Script and select the appropriate Component. (For HR Master

Data related is PA) (Name must start with Z_MD if it is Master Data related)

3. Enter the Title of ECATT Script, it is the same as in Test Script name, as shown in the above

screen shot 4. Select the Component from drop down list (for HR enter PA in the component field)

5. Go to Editor tab and Click on button.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3

Page 4: BC - How to Create eCATT Script

How to Create eCATT Script

Another window Insert Statement will appear, Select in ‘Group’ field “UI Control” In ‘Command’ field “TCD (Record)” from drop down list;

Transaction is the Transaction code which is used for recording the data (updating the employee master record).

Press enter two times after entering the transaction code. 6. Recording starts for the CATT script: Please press enter wherever required only. Update the

Master Data record manually.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4

Page 5: BC - How to Create eCATT Script

How to Create eCATT Script

Enter the PERNR manually and press enter at once.

Enter the Infotype which needs to be updated and press enter at once. And enter the sub type if it has any subtype and then press enter.

Click on create button.

Enter the date and press enter.

Enter the data required in the infotype and do not forget to press enter after entering data in each field.

Save the infotype record and click on to come back to the SECATT Script window.

Click on ‘Yes’ button to Transfer the Recording.

7. Double click in middle of transaction code PA30_1 and select DYNPRO field and click on

Simulation button shown as below.

In the simulation mode you define the field characteristics whether it is fixed or variable field.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5

Page 6: BC - How to Create eCATT Script

How to Create eCATT Script

8. Double click on Personnel no field as shown in the below screen shot, another window ‘Maintain field entry’ pop up. Enter ‘PERNR’ in the Parameter field and ‘personnel no which

we used for recording the CATT Script’ in the Field contents blank then click on button. 9. This activity has to be performed for all the steps ( screens) which we included in the Script.

Use button to go to the next screen after defining the field parameters in one screen till it comes back to CATT Script screen. While defining the field parameters, as SAP standard all the fields are fixed fields, if we define parameter (double click and enter the parameter name and the value) then it will become variable parameter and we can use it for input value using the spread sheet.

When defining the field parameter for date field please remove the date and enter the Parameter details. Otherwise it will become fixed parameter and give you the wrong result.

After defining the field parameters it come back to the CATT script screen.

Save the Script.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6

Page 7: BC - How to Create eCATT Script

How to Create eCATT Script

The above pop up (Create Object Directory Entry) will appear, enter the Package name in the blank (for HR use ‘ZH_CATT_TOOLS). Click on Save button. Save the script in new transport request.

II. Creation of Test Configuration: I. Enter the test configuration name (The name which is used in Test Script) and select the Test

Configuration radio button and then click on create button.

II. Enter the title (Test Configuration name) and component (use PA for HR).

Go to Configuration tab and enter the Test Script name which we created in the step 1 as shown below. Save the Test configuration.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7

Page 8: BC - How to Create eCATT Script

How to Create eCATT Script

Save the Test Configuration in the same package (ZH_CATT_TOOLS for HR Scripts) and save and use the same transport request for saving the CATT Script.

Creation of new SECATT Script has been completed.

***************

III. After creation of new CATT Script, test the same and verify the results.

A. Testing the created CATT script manually:

Enter the Test Configuration name and click on change button.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8

Page 9: BC - How to Create eCATT Script

How to Create eCATT Script

Go to Variant tab and click on button to add the variant as shown in the above screen shot. Enter the variant name (Alpha-numeric) and all the field details and select the new variant check box and deselect the default variant.

Save the CATT Script and click on execute button.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9

Page 10: BC - How to Create eCATT Script

How to Create eCATT Script

Again click on execute button.

The test script execute in foreground and keep on pressing the enter key and check the fields which is getting updated till the record gets created.

eCatt log displays with the status details as shown in the below screen shot.

eCATT run successfully.

B. Testing the CATT Script using the spread sheet:

Downloading the variant (default spread sheet file): Go to Test Configuration in change mode and follow the path as shown in the below screen shot.

Menu path: Edit -- Variants -- Download

Download the file in the default location (SapWorkDir folder)

Click on ‘Yes’ button to download.

Open the text file with excel format.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10

Page 11: BC - How to Create eCATT Script

How to Create eCATT Script

Enter the field values in the excel spread sheet and save. In the spread sheet VARIANT column is very important, enter the variant name (Alpha-numeric), this is used only for recording purpose and this will not get updated in anywhere.

C. Attaching the file to eCATT:

Go to Test Configuration change mode and go to Variant tab and uncheck all the check boxes in the internal variants and select the External Variants / path radio button and attach the file.

Click on execute button.

Click on execute button.

The test script execute in foreground and keep on pressing the enter key and check the fields which is getting updated till the record gets created.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11

Page 12: BC - How to Create eCATT Script

How to Create eCATT Script

eCatt log displays with the status details as shown in the below screen shot.

eCATT run successfully.

D. Run eCATT script in background: Go to Test Configuration in change mode and attach the file and execute. Go to UI Control tab and select ‘Process in Background, Synchronous Local’ from the drop down list in Start Mode for Command TCD field as shown below.

Click on Execute button.

The CATT Script executes in background and eCatt log displays with the status details as shown in the below screen shot.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 12

Page 13: BC - How to Create eCATT Script

How to Create eCATT Script

2. Creation of CATT Script by defining field parameters through field edit option: This method of defining the field parameters used when the eCATT does not support simulation method.

1. Creation of Test Script:

Enter the Tcode SECATT in the command box.

1.1. Enter the Test Script name and click on Create button.

1.2. Enter the Title of the CATT Script and select the appropriate Component. (For HR Master Data

related is PA) (Name must start with Z_MD if it is Master Data related)

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 13

Page 14: BC - How to Create eCATT Script

How to Create eCATT Script

1.3. Enter the Title of ECATT Script, it is the same as in Test Script name, as shown in the above screen

shot 1.4. Select the Component from drop down list (for HR enter PA in the component field)

1.5. Go to Editor tab and Click on button.

Another window Insert Statement will appear, Select in ‘Group’ field “UI Control” In ‘Command’ field “TCD (Record)” from drop down list;

Transaction is the Transaction code which is used for recording the data (updating the employee master record).

Press enter two times after entering the transaction code. 1.6. Recording starts for the CATT script: Please press enter wherever required only. Update the Master

Data record manually.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 14

Page 15: BC - How to Create eCATT Script

How to Create eCATT Script

Enter the PERNR manually and press enter at once.

Enter the Infotype which needs to be updated and press enter at once. And enter the sub type if it has any subtype and then press enter.

Click on create button.

Enter the date and press enter.

Enter the data required in the infotype and do not forget to press enter after entering data in each field.

Save the infotype record and click on to come back to the SECATT Script window.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 15

Page 16: BC - How to Create eCATT Script

How to Create eCATT Script

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 16

Double click on PA30_1 and expand the DYNPRO node button and check the parameters which needed to be defined (example Pernr, Date). Double click on the field and enter the field value in field description as shown below.

Define all the field values which need to be used as input values and save in the Package and save in the

transport request. Fields get activated after defining the values, symbol shows that the fields are activated.

Create the Test Configuration and test the CATT Script.

12

3

5

4

Page 17: BC - How to Create eCATT Script

How to Create eCATT Script

Related Content http://help.sap.com/saphelp_erp60_sp/helpdata/EN/d4/80023c59698908e10000000a11402f/frameset.htm

http://help.sap.com/saphelp_erp60_sp/helpdata/EN/a7/1bb38337fa11d2bd39080009b4534c/frameset.htm

Reference 3

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

For more information, visit the Enterprise Resource Planning homepage.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 17

Page 18: BC - How to Create eCATT Script

How to Create eCATT Script

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 18

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.