Show TOC

Procedure documentationCreating an ABAP Unit Include and Editing Test Classes in the Source Code Editor Locate 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   Goto   Local test classes  .

  • Class: From the Class Builder, choose   Goto   Local Definitions/Implementations   Local Test Classes.  

Note Note

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

End of the note.

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