1. structure of the mapping
The mapping of the QPPD data into the info table is prepared and called up within the /SCT/QP_IF_INFO~GEN method. Via the optional redefinable methods:
/SCT/QP_IF_INFO~GET_OBJTYP_RANGE,
/SCT/QP_IF_INFO~GET_VBLOCK_RANGE
/SCT/QP_IF_INFO~GET_VTYP_RANGE
can be used to return customized range tables to restrict the set of object types, rule blocks, and Item types for which the aforementioned mapping is to be executed.
2. how the mapping works
The actual mapping logic is performed within the DO_MAP method, which is called from the /SCT/QP_IF_INFO~GEN method.
The following methods are used within this method to perform the mapping:
DO_MAP_SYSTEM_TO_STRUCTURE
DO_MAP_VAL_TO_STRUCTURE
DO_MAP_STR_TO_STRUCTURE
DO_MAP_SPECIAL_TO_STRUCTURE
1. DO_MAP_SYSTEM_TO_STRUCTURE
First, in method DO_MAP_SYSTEM_TO_STRUCTURE, the following fields of the root node are written to the fields of the same name in the specified INFO table, if they exist there:
MANDT
GUID
OGUID
VNAME
VNR
VVS
VNRVVS
WERKS
MATNR
VART
VALIDFR
VALIDTO
LASTUPDATE
ISTAT
In addition, the following fields may be written by a linked ECC document:
VBELN
POSNR
ETENR
2. DO_MAP_VAL_TO_STRUCTURE
Within the DO_MAP_VAL_TO_STRUCTURE method, the fields from the /SCT/QP_VAL table are mapped from all original nodes of the object as follows:
The nominal value of the element in the VALUE field is mapped to the field with the name of the element.
Example: The element is called WERKSMARKE. Then the value from VALUE is mapped to the field WERKSMARKE.
The minimum value of the element in the VALUE_MIN field is mapped into the field with the name of the element, concatenated with an underscore and the word "MIN".
Example: The element is called WERKSMARKE. Then the value from VALUE_MIN is mapped into the field WERKSMARKE_MIN.
The maximum value of the element in the VALUE_MAX field is mapped into the field with the name of the element, concatenated with an underscore and the word "MAX".
Example: The element is called WERKSMARKE. Then the value from VALUE_MAX is mapped into the field WERKSMARKE_MAX.
The unit of the element in the VALUE_EIH field is mapped into the field with the name of the element, concatenated with an underscore and the word "EIH".
Example: The element is called WERKSMARKE. Then the value from VALUE_EIH is mapped into the field WERKSMARKE_EIH.
3. DO_MAP_STR_TO_STRUCTURE
In the method, the fields from the /SCT/QP_STX table are mapped from all original nodes of the object as follows:
The concatenated long text from the STX_TEXT field is mapped into the field with the name of the associated TDID.
Example: The TDID is DESC. Then the long text from STX_TEXT is mapped into the DESC field.
4. DO_MAP_SPECIAL_TO_STRUCTURE
The DO_MAP_SPECIAL_TO_STRUCTURE method can be redefined individually for each customer to implement additional mapping.
3. FUP
The optional redefinable method /SCT/QP_IF_INFO~GET_FUP can be used to specify which FBD is to be used for each customer for each ABAP class that implements the writing of INFO records.