MM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- MEWQ
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_REQUISITION_DELETE'
EXPORTING
number = lv_number
TABLES
requisition_items_to_delete = lt_requisition_items_to_delete
return = lt_return.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.