Fonction SAP BAPI_REQUISITION_CHANGE - Change 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_ACCOUNT_NEW BAPIEBKNV 385 X Account Assignment Data for Item: New Status
REQUISITION_ACCOUNT_OLD BAPIEBKNV 385 X Account Assignment Data for Item: Old Status
REQUISITION_ITEMS_NEW BAPIEBANV 258 Purchase Requisition Item: New Status
REQUISITION_ITEMS_OLD BAPIEBANV 258 Purchase Requisition Item: Old Status
REQUISITION_TEXT_NEW BAPIEBANTX 153 X Texts for Item: New Status
REQUISITION_TEXT_OLD BAPIEBANTX 153 X Texts for Item: Old Status
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method can be used to change 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,,Purch. organization in requisition

  • M_BANF_WRK,,Plant in requisition

  • Transfer
    You must pass on the purchase requisition number and the necessarytables for the items that are to be changed. For more information, referto the documentation on the table parameters.
    To fill the table parameters correctly with the old status, use themethod GetDetail of the business object PurchaseRequisition
    before invoking this method.
    Return messages
    INCLUDE BAPI_RET

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    The table contains the account assignment data with the changed values.
    INCLUDE BAPI_DATAELEMENT
    Proceed as follows:
    First enter all values from RequisitionAccountOl inRequisitionAccountNe.
    Then change the desired field values.
    Ensure that all fields that are not to be changed contain the valuesfrom the database.
    Note
    You can also add new account assignment items to a requisition item bypassing on only RequisitionAccountNe. This is the case,for example, if you wish to distribute an item with single accountassignment among several cost objects. Note that in this case therequisition item must also be changed (distribution indicator, partialinvoice indicator, etc.).

    Description
    The table contains the current database status of the accountassignment data for the purchase requisition item (i.e. prior to thechange).
    INCLUDE BAPI_DATAELEMENT

    Description
    The table contains the purchase requisition item with the changedvalues.
    INCLUDE BAPI_DATAELEMENT
    Proceed as follows:
    First enter all values from RequisitionsItemsOld inRequisitionItemsNew.
    Then change the desired field values.
    Ensure that all field that are not to be changed contain the valuesfrom the database.
    Note
    You cannot add any new items. The method only supports the changing ofalready existing items.

    Description
    The table contains the current database status of the purchaserequisition item (i.e. prior to the change).
    INCLUDE BAPI_DATAELEMENT

    Description
    The table contains the changed texts for the purchase requisition item.
    INCLUDE BAPI_DATAELEMENT

    Description
    The table contains the current database status of the texts for thepurchase requisition item (i.e. prior to the change).
    INCLUDE BAPI_DATAELEMENT

    Description
    INCLUDE BAPI_TABLE

    Value range
    Type,,ID,,Number,,Message
    E,,W5,,030,,Purchase requisition & & does not exist
    I,,W5,,041,,Purchase requisition & successfully changed
    E,,W5,,043,,You have no authorization to change purchase
    ,,,,,,requisition & &
    E,,W5,,045,,Item & does not exist and cannot be created
    E,,W5,,058,,Data in & for item & does not correspond to
    ,,,,,,current database status
    E,,W5,,059,,Inconsistencies in structure & (Please check
    ,,,,,,the ABAP Dictionary)
    E,,W5,,102,,Purchase requisition & & blocked

499627FAQ: BAPIs for purchase requisitions
584902BAPI_REQUISITION_CHANGE: ExtensionIn not connected
874286External changes to long texts disappear in PReq
739086DCM: no version for Text/Address change in external PReq
874748Lang sel when copying long text to an ext created PReq
701327AFS: Capacity and quota check in BAPI_REQUISITION_xxx
783640BAPI_TE_REQUISITION_ITEM: Enhancement category not numeric
589411AFS: BAPIs in purchasing
204689BAPI_REQUISITION_CHANGE: Not existing functions
603444DCM: PReq via ME_REQUISITION_EXT, no release strategy
485374BAPI_REQUISITION_CHANGE: Too many read items
485023Long runtime with mass maintenance of purchase requisitions
325382BAPI_REQUISITION_CREATE: no planning file entry
217437ME21N/ME51N: Batch input and CATT not possible
330206BAPI_REQUISITION_CHANGE:No fixing of PReqs from MRP