# BAPI_REPMANCONF1_CANCEL — Reverse Repetitive Manufacturing Backflush

> Reverses a repetitive manufacturing backflush document, including its goods movements and activities. It is used when a terminal or interface posted a wrong quantity and the posting has to be undone. Pass the backflush number in CONFIRMATION, take the reversal number from CANCCONFIRMATION and commit afterwards.

- 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-cancel/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CANC_PDCOLLNR | BAPI_RM_DATGEN-PDC_NUMBER | PDC number for the reversal | - |
| CONFIRMATION | BAPI_RM_DATKEY-CONFIRMATION | Backflush document to reverse | Yes |
| POSTDATE | BAPI_RM_DATGEN-POSTDATE | Posting date | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| CANCCONFIRMATION | BAPI_RM_DATKEY-CANCCONFIRMATION | Reversal document number |
| RETURN | BAPIRET2 | Return messages |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_REPMANCONF1_CANCEL'
  EXPORTING
    confirmation = lv_confirmation
  IMPORTING
    cancconfirmation = lv_cancconfirmation
    return = lv_return.
```

## Related tables

BLPK, MSEG

