# 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.

- Modules: QM
- Type: BAPI
- Function group: QPMK
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-qpmk-savereplica/

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| MSTCHA | BAPIQPMK_QPMK | Master inspection characteristics | Yes |
| MSTCHA_TEXT | BAPIQPMK_QPMT | Characteristic short texts | Yes |
| MSTCHA_INSP_METH | BAPIQPMK_QPMZ | Assigned inspection methods | - |
| MSTCHA_LONGTEXT | BAPIQPMK_LONGTEXT | Characteristic long texts | - |
| MSTCHA_SMPL_LTXT | BAPIQPMK_SMPL_LTXT | Sampling long texts | - |
| EXTENSION1 | BAPIEXTC | Customer enhancement (container) | - |
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
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

QPMK, QPMT, QPMZ

