# BAPI_ENTRYSHEET_RESET_RELEASE — Cancel Release of Service Entry Sheet

> Cancels the release of a previously accepted service entry sheet with the given release code; the related goods receipt is reversed. Developers use it to correct wrongly accepted services or to remove the acceptance before deleting the sheet. It fails when an invoice has already been posted for the service; check RETURN and then call BAPI_TRANSACTION_COMMIT.

- Modules: MM
- Type: BAPI
- Function group: MLBO
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-entrysheet-reset-release/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| ENTRYSHEET | BAPIESSR-SHEET_NO | Entry sheet number | Yes |
| REL_CODE | BAPIMMPARA-REL_CODE | Release code | Yes |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| RETURN | BAPIRETURN1 | Processing errors that occurred | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_ENTRYSHEET_RESET_RELEASE'
  EXPORTING
    entrysheet = lv_entrysheet
    rel_code = lv_rel_code
  TABLES
    return = lt_return.
```

## Related tables

ESSR

