QM BAPI RFC Used the same way in S/4HANA

BAPI_QPMK_SAVEREPLICA Replicate Master Inspection Characteristics (ALE)

Saves master inspection characteristics received from another system, including texts, assigned inspection methods and long texts. It is the inbound side of ALE distribution of QM master data and can also be called for migration. Pass header and text tables together and check RETURN before committing.

Function group
QPMK
Remote-enabled (RFC)
Yes
Type
BAPI

Tables parameters

ParameterTypeDescriptionRequired
MSTCHABAPIQPMK_QPMKMaster inspection characteristicsYes
MSTCHA_TEXTBAPIQPMK_QPMTCharacteristic short textsYes
MSTCHA_INSP_METHBAPIQPMK_QPMZAssigned inspection methods—
MSTCHA_LONGTEXTBAPIQPMK_LONGTEXTCharacteristic long texts—
MSTCHA_SMPL_LTXTBAPIQPMK_SMPL_LTXTSampling long texts—
EXTENSION1BAPIEXTCCustomer enhancement (container)—
RETURNBAPIRET2Return messagesYes

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_QPMK_SAVEREPLICA'
  TABLES
    mstcha = lt_mstcha
    mstcha_text = lt_mstcha_text
    mstcha_insp_meth = lt_mstcha_insp_meth
    mstcha_longtext = lt_mstcha_longtext
    mstcha_smpl_ltxt = lt_mstcha_smpl_ltxt
    extension1 = lt_extension1
    return = lt_return.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report