This function module is defined as a BAPI, and collects the master inspection characteristics for dispatch with the help of ALE.
The filter object types are read from the distribution model; then, the values to be dispatched are written into the structure
filterobject_values, depending on these types. Finally, the relevantlogical systems are read, together with the filterobject_values from the distribution model, using a function module .
The import parameter is a structure that contains the master inspection
characteristic and its plant. This characteristic/plant combination is distributed.
The function module is called once for each combination of characteristic and plant.The data for the master inspection characteristic/plant combination isread from QPMK and the entire combination is sent (this means including short texts, physical-sample drawing texts and long texts).
In this function module, the internal display (QPMK fields) areconverted to an external display of data fields (BAPI data fields).
MSTCHARPLNT is a key field containing the master inspection characteristic and plant. This data clearly identifies the master
RETURN is the standard return parameter for a BAPI and returns messages if errors occur.