Fonction SAP BAPI_REQUISITION_DELETE - Delete/close purchase requisition

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
NUMBER BAPIEBAN-PREQ_NO C 10 Purchase Requisition Number

Paramètre Reférence Long. Facultatif Description
REQUISITION_ITEMS_TO_DELETE BAPIEBAND 7 Items to be Deleted/Closed
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method enables you to delete and/or close purchase requisitions.

Notes
The following authorization objects are checked with activity 02(Change):

  • M_BANF_BSA,,Document type in requisition

  • M_BANF_EKG,,Purchasing group in requisition

  • M_BANF_EKO,,Purchasing organization in requisition

  • M_BANF_WRK,,Plant in requisition

  • All requisition items for which the deletion indicator and/or the"closed" indicator is to be set are passed on in the tableRequisitionItemsToDe. Since this method changes the purchaserequisition, change documents are created when you save.
    INCLUDE BAPI_RET

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    The table contains all purchase requisition items for which the"deleted" and/or "closed" indicator is to be set.

    Description
    INCLUDE BAPI_RET

    Value range
    Type,,ID,,Number,,Message
    E,,W5,,024,,No purchase requisitions satisfying these
    ,,,,,,selection criteria exist
    I,,W5,,041,,Purchase requisition & successfully changed
    I,,W5,,042,,Purchase requisition & & already closed
    I,,W5,,043,,You have no authorization to change
    ,,,,,,purchase requisition & &
    E,,W5,,044,,No changeable purchase requisitions exist

701327AFS: Capacity and quota check in BAPI_REQUISITION_xxx
589411AFS: BAPIs in purchasing
325382BAPI_REQUISITION_CREATE: no planning file entry