Fonction SAP BAPI_QPGR_REPLICATE - Prepare QM Code Groups/Catalogs for Distribution

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CODEGROUP BAPIQPGR_CODEGROUP u 9 Catalog Type and Code Group

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 code groupsand the subodinate codes for transmission using ALE.
The filter object types are read from the distribution model. Thendepending on these types, the values being sent are written to thestructure filterobject_values. Finally, the affected logical systemsare read from the distribution model using a fucntion module inconnection with the filterobject_values.
The import parameter is a structure that contains the catalog type andcode group. The code group for this catalog type and the subordinatecodes are distributed. The function module is accessed once for eachcode group.
  • The data for the code group is read from the QPGR and the codes are
  • read from the QPCD, and both the code groups and the subordinate codesare transferred in their entirety (this means, with short and longtexts).
    Within this function module, the internal display is converted to adisplay of external fields (BAPI data fields).

    Import parameters
    CODEGROUP is a structure which contains the key fields for the catalogtype and the code group. This data marks the code group as complete.

    Export parameters
    RETURN is the standard parameter for a BAPI and returns the messages iferrors occur.

    Description
    This import structure is a structure that contains a catalog type andcode group. This parameter describes the code group and its codescompletely.

    Value range
    You do not have to specify areas. Only one code group can be specifiedeach time. If several, for example, n code groups, should betransferred, the module must be accessed n-times.

    Description
    This parameter is a general enhancement parameter, which if necessarycan be used to make enhancements in this BAPI interface (for example,extra data) without changing the structure of the interface,
    The parameter is also available in the BAPI "BAPI_QPGR_SAVEREPLICA".

    Description
    This parameter contains the target systems to which the code groupsshould be distributed.
    This parameter does not have to contain data. If RECIPIENTS is empty,the system tries to determine recipient systems with the suitablemessage type "QPGR" from the distribution model.

    Note
    If both recipients are specified in this parameter and suitablerecipient systems are maintained in the distribution model, the objectsto be distributed are sent to all recipient systems.
    If neither recipient systems are specified in RECIPIENTS (therefore,empty) or recipient systems can be found in the distribution model, thedistribution cannot be 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 errors have occured, This parameter is required fora BAPI. For more information, see the description for the data type ofthis parameter (data type: BAPIRET2).