# BAPI_REPMANCONF1_CREATE_MTS — Post Repetitive Manufacturing Backflush (Make-to-Stock)

> Posts a repetitive manufacturing backflush for make-to-stock production, like MFBF: goods receipt of the assembly, component backflush and activity posting in one step. It is used by line-side terminals and interfaces that report produced quantities per material and production version. Read the backflush number from CONFIRMATION, check RETURN and call BAPI_TRANSACTION_COMMIT.

- Modules: PP
- Type: BAPI
- Function group: 2142
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-repmanconf1-create-mts/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| BFLUSHDATAGEN | BAPI_RM_DATGEN | General backflush data | Yes |
| BFLUSHDATAMTS | BAPI_RM_DATSTOCK | Make-to-stock backflush data | - |
| BFLUSHFLAGS | BAPI_RM_FLG | Backflush control flags | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| CONFIRMATION | BAPI_RM_DATKEY-CONFIRMATION | Backflush document number |
| RETURN | BAPIRET2 | Return messages |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CHARACTERISTICS_BATCH | BAPI_CHAR_BATCH | Batch characteristics | - |
| GOODSMOVEMENTS | BAPI2017_GM_ITEM_CREATE | Goods movements | - |
| SERIALNR | BAPI_RM_DATSERIAL | Serial numbers | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_REPMANCONF1_CREATE_MTS'
  EXPORTING
    bflushdatagen = lv_bflushdatagen
    bflushflags = lv_bflushflags
  IMPORTING
    confirmation = lv_confirmation
    return = lv_return
  TABLES
    characteristics_batch = lt_characteristics_batch
    goodsmovements = lt_goodsmovements
    serialnr = lt_serialnr.
```

## Related tables

BLPK, MKPF, MSEG

