This page describes how to create customer-specific ABAP classes for INFO updating.
1. Create Database
First, an individual database table must be created which contains the fields required for evaluation. The primary key of the INFO tables should be the GUID of the root node, as the INFO records always refer to the entire object. However, it is also possible to individually define a different primary key.
An example table could look like this:
2. View the QPPD-Objects
In this example, the table is to be used to map the element values from the "References" tab of the "Quality" specification type.
This tab is set as follows and has the following values:
3. Create a Z-Class
In this example, the individual ABAP class for creating the INFO records has the descriptive name /SCT/ZQP_CL_INFO_QUALITY and only requires the following coding. The coding sets the name of the INFO table using the redefined method SET_TARGET_NAME. The mapping for the fields is standard QPPD and can be redefined if required.
CLASS /sct/zqp_cl_info_quality DEFINITION  PUBLIC  INHERITING FROM /sct/qp_cl_info  CREATE PUBLIC .   PUBLIC SECTION.    METHODS constructor      RAISING        /sct/qp_cx_error .  PROTECTED SECTION.    METHODS set_target_name        REDEFINITION .  PRIVATE SECTION.ENDCLASS. CLASS /SCT/ZQP_CL_INFO_QUALITY IMPLEMENTATION.* <SIGNATURE>---------------------------------------------------------------------------------------+* | Instance Public Method /SCT/ZQP_CL_INFO_QUALITY->CONSTRUCTOR* +-------------------------------------------------------------------------------------------------+* | [!CX!] /SCT/QP_CX_ERROR* +--------------------------------------------------------------------------------------</SIGNATURE>  METHOD constructor.    super->constructor( ).    "Set the target name after the SUPER-Constructor has been called up."    CALL METHOD set_target_name.  ENDMETHOD.  * <SIGNATURE>---------------------------------------------------------------------------------------+* | Instance Protected Method /SCT/ZQP_CL_INFO_QUALITY->SET_TARGET_NAME* +-------------------------------------------------------------------------------------------------+* +--------------------------------------------------------------------------------------</SIGNATURE>  METHOD set_target_name.    "Set the target name after the SUPER-Constructor has been called up."    mv_target_name = '/SCT/ZQP_IQUALIT'.  ENDMETHOD.ENDCLASS.4. Result
This means that the INFO table is filled with the following data after the object is saved:


