TCD – test transactions 
You put transactions in the test case with the function TCD. You maintain the required input values for the input fields of all screens in the transaction which is to be tested, in a detail maintenance screen.
Generate TCD from recording
You can generate a TCD statement in two ways with the recording function:
Create new test case.
Place the cursor on the line where a TCD statement is to be inserted and choose Edit ® Record and Insert when you are editing an existing test case in the function editor. Proceed as described in Record test case. The only difference in the procedure is in step 1.
Other settings
You can also make the following settings in the TCD function detail screen (double-click on the TCD function in the function editor):
- You can enter the number of an error message that can occur in this transaction without causing the transaction to be flagged as failed in the log, in the Allowed message field.
- You can choose the processing mode for this transaction in the Processing mode field. If you make an entry (except ‘ ‘), this TCD statement always runs in this processing mode.
Edit TCD manually

If the transaction uses Controls, the test case created cannot run because the Controls data flows to the SAPGUI cannot be input manually. You should use the recording functionality whenever possible.
Create TCD
Enter
TCD
in the
Funct. field and the transaction code in the Object field. Confirm your entries. The transaction text is displayed in the Text column.
Edit TCD
Choose Edit
®
Choose (or double-click on the line). The transaction screen sequence input detail screen appears.
Enter the program name in the Program field, and the
screen number in the Screen field (see
Get system data).

Note that all screens must be entered in the test procedure in the order in which they are called by the transaction.
- Enter the values and parameters required for the input fields for each screen:
Position the cursor on a screen and choose either Edit
®
Choose (see
Field value input via screens) or Edit
®
Field list (see
Field value input via field list).Go back to the function editor by choosing Back twice, and save the test case.