Fonction SAP BAPI_QMTB_REPLICATE - Prepare QM Inspection Methods for Distribution

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PMPLNT BAPIQMTB_PMPLNT u 12 Insp. Method + Plant

Paramètre Reférence Long. Facultatif Description
EXTENSION1 BAPIEXTC 1000 X Container for 'Customer Exit' Parameter
RECIPIENTS BAPI_RECEIVER 10 X Target System for QM Inspection Methods
RETURN BAPIRET2 548 Standard Return Parameters


This function module is defined as a BAPI and collects the inspectionmethods for sending using ALE.
The filter object types are read from the distribution model. Dependingon these types, the current values to be sent are written to thestructure filterobject_values. Then, the relevant logical systems areread using a function module with the filterobject_values from thedistribution model.
The import parameter is a structure that contains the inspection methodand plant. This inspection method/plant combination is distributed.
The function module is accessed once for each inspection method/plantcombination.
  • The data for the inspection method/plant combination is read from the
  • QMTB and the inspection method/plant combination is sent with all itsversions (this means, with short and long texts).
    Within this function module, the internal display (QMTB fields) isconverted to a display of external data fields (BAPI data fields).

    Import parameters
    PMPLNT is a structure that contains the key fields inspection methodand plant. This data marks the inspection method as complete.

    Export parameters
    RETURN is the standard return parameter for a BAPI and returns messagesif errors occur.

    Description
    This import parameter is a structure that contains an inspection methodnumber and a plant description. This parameter describes the inspectionmethod that should be sent.
    In general, all versions of an inspection method are processed.

    Value range
    A specification of areas is not supported. You can only specify oneinspection method/plant combination. For example, if severaln-inspection methods should be transferred, the module must be calledup n-times.

    Description
    This parameter is a general enhancement parameter that makes itpossible to make enhancements (for example, additional data) in thisBAPI interface without changing the structure of the interface.
    The parameter is also available in BAPI 'BAPI_QMTB_SAVEREPLICA'.
    In both modules, the parameter 'EXTENSION1' is managed using customerexit 'QSMT0020'.

    Description
    This parameter contains the target system to which the inspectionmethods should be distributed.

    Value range
    You do not have to enter values in this parameter.
    If RECIPIENTS is empty, the system trys to determine recipient systemsusing the message type 'QSMT' from the distribution model.

    Note
    If both recipient systems are entered in this parameter and suitablerecipient systems are maintained in the distribution model, objects tobe distributed are sent to all recipient systems.
    If you do not specify recipient systems in RECIPIENTS and no recipientsystems can be found in the distribution model, the distribution cannotbe performed and an error message is issued.

    Description
    This parameter is the standard parameter for the return of messages. Ifa message (any message type) is written within this function module,the message is stored in this return table. Since exceptions are notallowed in BAPIs, this is the only way to return messages. If thistable is empty, no error has occured. This parameter is required for aBAPI. For more information on this parameter, see the description forthe data type (data type: BAPIRET2).