How to use CATT in SAP

CATT is a useful tool to create Master data as well as record repetitive functions in SAP. The following Procedure explains how it is done in the system.

Procedure
 
1)      Enter the transaction code SCAT in the command field or follow the menu path given below:
Systemà Servicesà CATTà Record     
2)      Enter the name of the CATT in the test case field and press Enter. In this example we
will use Z_SCM_MM01
Note:              Z  =  all test cases normally start with Z,
SCM =  the area in which you are creating the CATT,
MM01= the transaction code used to create a material master.
3)      Click on the TCD button
4)      Enter  MM01 in the pop up window and press Enter
5)      Enter Industry Sector and Material type and press enter.
6)      Select the views and organizational structure and press enter.
7)       A window will pop up asking for ending the transaction. Click on the Stop transaction button.
8)       Click  on the Save button.
9)       Another  window will pop up. Click on the local object button after deleting any value in the development class.
10)   Click on the back button.
11)  Click  on the Change button now.
12)  Double  click on the TCD button.
13)  Click  on the Field List.  
14)  Click on the Next Screen button till you reach the required filed for which you want to have variable values. In this example we want to create multiple material with different descriptions so we select the description to be the variable field.
15)  Enter  &description in the description field.
16)  Click  on the back button.
17)  A  window pops up with the same name which has been given to the variable field (in
this case description), Just prefix the variable name with & (in this case it will become &description) and press enter.
18)  Another  window will pop up for maintain default value for the variable just delete any
value in the Default value filed and press enter.
19)  Press  the back button till the system asks you to Save the CATT. Save the test case
(CATT) that you have created.
20)  On  the main CATT screen now follow the menu path:   Goto à Variants à Export
21)  A window will pop up asking you to enter the place where you want to export the
file which will have the values for the variable you just created in your test case (Z_SCM_MM01). You can change the directory of the local file having the values otherwise its always stored in SAPworkdir by default. 
22)  Click  on the Transfer button 
23)  Now  open the text file. Move the cursor to the row just below the last  line.
24)  Press  Tab button on the keyboard twice.
25)  In  this column now enter all the values for the variable (in this case  &description) for as many sets as needed. Please note that the values should  be in the same column and not in any other column.
26)  Save the local file after entering all the values. 
27)  Go  again to transaction SCAT and select your test case and click  Execute.
28)  Select  Long radio button under the Log type section.
29)  Select  Background radio button under the Processing Mode  section.
30)  Select  external from file radio button under the Variants  section.
31)  Click  on the Choose button. Select the text file from the local disk and press  Enter.
32)  Click  on the Execute button.
33)  SAP  will give you the new material created individually after running the CATT in
the background and now these materials are ready for use. If there is an error  then the result is be a Red color for that material otherwise Green color shows  that the CATT was executed successfully.

No comments:

Post a Comment