The following instructions explain the implementation of an automated node system in the class for the specification type.
Prerequisites:
In this instruction:
Assign class for specification type as builder
Implement interface for builder
Implement Build Method
Customizing
Create builder object and assign class to specification type.
QPPD Customizing → Specification type → Field: Builder ABAP class.
Example
The class /sct/zqp_cl_production_version from the metal template can be used as an example.
The functionalities described below are already implemented there.
Implementation
The basic sequence logic for the builder should already be defined in the superclass. This predefined framework offers various options for customization for a specific type of specification.
Define items
Create an implementation of the constructor method.
Fill the table mt_itembase here. The key terms VTYP and HIERA must correspond to a hierarchy level from Customizing the specification type for each entry.
Define key elements for items
Create a redefinition of the build_key_set method.
Using build_key_add, individual elements can be defined as criteria that are used for matching when checking whether a node should be rebuilt after multiple builds.
Customizing the structure of items
Create a redefinition of the build_create_item method.
This method can be used to influence the creation of individual nodes.