Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>CodeGroup




The Business Object Code group describes defect types, defect
types, defect locations, usage decisions, characteristic attributes.

The use of code groups allows evaluations, (for example, using certain defect types).



Available Methods

  • Replicate : Prepare QM code group for distribution [ BAPI_QPGR_REPLICATE ]
  • SaveReplica : Replication of QM code groups [ BAPI_QPGR_SAVEREPLICA ]




This function module is defined as a BAPI and collects the code groups and 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 the
structure filterobject_values. Finally, the affected logical systemsare read from the distribution model using a fucntion module in connection 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 subordinate
codes are distributed. The function module is accessed once for each code group.

  • The data for the code group is read from the QPGR and the codes areread from the QPCD, and both the code groups and the subordinate codesare transferred in their entirety (this means, with short and long texts).

  • Within this function module, the internal display is converted to a display 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 if errors occur.




    Replication of QM codes with the subordinate codes, including the short and long texts and the codes and code groups.

    This function module is marked as a BAPI.

    The ALE layer contains the code groups and codes in the form of IDocs,formats the data and accesses this BAPI with the corresponding
    parameters and tables. BABI_QPGR_SAVEREPLICA performs various checks onthe code group to be saved. If there are no errors, the code group, itscodes, and the short and long texts are saved in the target system.

    The table RETURN contains messages if there are errors, since exceptions are not allowed for BAPIs.

    This function module can also be used in connection with the DX Workbench (transaction: SXDA) for the initial data transfer.