Professional Documents
Culture Documents
M.Vorwold
Contents
Contents
Contents: 10 golden CATT/eCATT rules
Guidelines
10 golden CATT/eCATT rules:
1.
Create CATT/eCATT modules only for your own applications. Call transactions only by reference of a test module.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Nice to have:
A message check A database check
Infotype modules
eCATT modules for Creation, Modifying, Copying, Deleting Infotypes The naming convention of these modules is as follows:
HR_IT + Infotype-No. + country sign (e.g. HR_IT0016XX)
Copy a record (OKCODE = COP) Delete a record (OKCODE = DEL) Lock/Unlock a record (OKCODE = EDQ) (if supported by Infotype functionality)
If the Infotype has no subtype, change the attributes of the importparameter SUBTYPE and SUBTYPE_DY from Importparameter to Local parameter
BEGDA SEQNR
the fields of the Infotype dynpro (use BEGINDATE_DY, ENDDATE_DY for the dates and SUBTYPE_DY for the subtype) the OKCODE-field with V30
Replace the third screen (MP001600 2000) by the screen MPxxxx00 (xxxx: Infotype no (4 digits))
Fill
Replace the third screen (MP001600 2000) by the screen MPxxxx00 2000 (xxxx: Infotype no (4 digits))
Fill
Fill
Replace the third screen (MP001600 2000) by the screen MPxxxx00 2000 (xxxx: Infotype no (4 digits))
Parametrize
the fields of the Infotype Dynpro (use &BEGINDATE_DY, &ENDDATE_DY for the dates and &SUBTYPE_DY for the subtype)
Fill
Dont change the fourth screen Replace the fifth screen (MP001600 3000) by the screen MPxxxx00 3000 (xxxx: Infotype no (4 digits))
Fill
Reuse of eCATTs
Reuse of eCATTs
There
Remark: After the migration to eCATT not all modules in the Reuse Library have been reviewed yet. But if a module is not working, please contact the responsible person.
Contents:
Find out the dynpro or subscreen (System info) Find out the field (System info) Find out the OKCODE of a button or a menu (menu painter) Dynpro simulation in eCATT Maintain a subscreen
cursor in the field personnel number menu path System -> Status (or F1 -> technical info)
SAPMP50A 1100
The same for the infotype field gives: SAPMP50A 0350 Reason: there are several subscreens on the dynpro
Press F1 A Popup with the function code of that button appears You can use this function code in the OKCODE - field
function keys
Press the button Simulate Screen The Dynpro simulation screen with the same functionality as in the old CATT tool will open
Subscreens
Maintaining a subscreen manually in a TCD call Recipe:
Go to the Dynpro simulation (see previous slide)
Press button Subscreens Double-click on the dot in the subscreen A popup appears, where you have to specify the Dynpro Go back Now you can maintain the fields
Checking a field
Check a value of a field or export a value from a field
Go to the Dynpro simulation (see some slides before) Position the cursor on the field you want to check
For For
checking the field press the button Check field reading the field press the button Check field
integration PA-PD
No
Dynamic Actions
See also the Document Use of Dynamic Actions in (e)CATT in the HCM (e)CATT Information folder in SAPNet !
FAQ
Answer: Yes, but its only possible to input Test Configurations into a Test Catalogue. So you have to create a Test Configuration for your Test Script before putting it into a Test Catalogue
Then check the message with the following statement in your eCATT:
CHEVAR E_MESSAGES[&MSX]-MSGNR = xxx'. (with xxx = the message number which you want to check) Remark: The special eCATT parameter &MSX contains the number of messages, which occurred during a TCD call.
SAP AG 2002, Title of Presentation, Speaker Name 38
nnn
ON_LAST_MESSAGE_CHECK(*).
Remark: This is an undocumented command in the eCATT tool and the syntax check will give an error, when finding this command, but it works anyway. If you migrate a CATT to eCATT CHEERR * will also be migrated to ON_LAST_MESSAGE_CHECK(*).
Answer: With the &-sign you can concatenate strings. Examples: a1 = '12'. a2 = '34'. a3 = a1 & a2. a4 = 12 & 'ab'. a5 = '01.01.' & &JHR. -> Result: 1234 -> Result: 12ab -> Result: 01.01.2002