Creating an ABAP Unit Include and Editing Test Classes in the Source Code Editor

Procedure

In class pools and function pools, ABAP Unit tests should be defined and edited in a separate include.

In ABAP classes, the system stores ABAP Unit test classes by default in the ...CCAU include.

In function groups, test classes are stored in the ...T99 include.

Here is how to create an include for ABAP Unit test classes and how to display and edit your test classes in the source code-based editor.

  • Function group: From the Function Builder screen (for maintaining the signature of a function module), choose Start of the navigation pathGoto Next navigation step Local test classesEnd of the navigation path.

  • Class: From the Class Builder, choose Start of the navigation pathGoto Next navigation step Local Definitions/Implementations Next navigation step Local Test Classes.End of the navigation path

In executable programs, you can simply add local ABAP Unit test classes at the end of the program source code.