# BAPI_REQUISITION_DELETE — Delete or Close Purchase Requisition

> Sets the deletion indicator on purchase requisition items or closes them, item by item. Clean-up programs and interfaces that cancel demand in SAP use it instead of changing the requisition in ME52N. List the item numbers in REQUISITION_ITEMS_TO_DELETE, check RETURN and call BAPI_TRANSACTION_COMMIT.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPIEBAN-PREQ_NO | Purchase requisition number | Yes |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| REQUISITION_ITEMS_TO_DELETE | BAPIEBAND | Items to delete or close | Yes |
| RETURN | BAPIRETURN | Return messages | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_REQUISITION_DELETE'
  EXPORTING
    number = lv_number
  TABLES
    requisition_items_to_delete = lt_requisition_items_to_delete
    return = lt_return.
```

## Related tables

EBAN

