Creating a specification-type class consists of a program part and a customizing part. In the program part, a specification type class is created for the desired specification type. In the customizing part, this class is assigned to the specification type.

Creating the Specification type class

Creating a specification-type class is quite simple in principle. First, you create a Z class (or similar depending on the namespace). 

Ideally, the name of the class contains the specification type for which the class is to be created, for example, for a specification type BEDSPEZI, ZCL_QP_BEDSPEZI. 

Next, the /SCT/QP_CL_VART class is entered as a superclass in the Z class just created. 

If a customer-specific redefinition of the /SCT/QP_CL_VART class already exists, this is entered as a superclass instead of the SCT class.

After that, the class can be saved and activated. This concludes the program side part. From now on, new methods can be added to the specification type class or existing methods can be redefined as desired. 

Required customizing

After the specification type class is created only the customizing is left to do.