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

ParameterTypeDescriptionRequired
NUMBERBAPIEBAN-PREQ_NOPurchase requisition numberYes

Tables parameters

ParameterTypeDescriptionRequired
REQUISITION_ITEMS_TO_DELETEBAPIEBANDItems to delete or closeYes
RETURNBAPIRETURNReturn 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.

Request a custom report