Show TOC

Class-Based Types and ConstantsLocate this document in the navigation structure

Use

Public types and constants defined in classes (Class Builder, transaction SE24) can be used like other ABAP Dictionary types. Typical uses are in the interfaces of function modules and in method calls.

Parameter List and Structure Editor

In the parameter list, the type reference consists of the class name, =>, and the type name. For example:

myclass=>mytype

The F4 help for the field Parameter Reference allows you to search for class-based types.

You can maintain structured parameters in the structure editor as normal.

Command Editor

Parameters typed against class-based types are used in the script as normal. For example:

LOG ( myparameter ).

Constants can be referenced in the test script. For example:

LOG ( myclass=>myconstant ).