Show TOC

Creating an ABAP Unit Include and Editing Test Classes in the Source Code EditorLocate this document in the navigation structure

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 path Goto Next navigation step Local test classes End of the navigation path.

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

Note

You can also use the ABAP Unit Wizard to create the include automatically.

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