Fonction SAP BAPI_PO_GETITEMSREL - List Purchase Orders for Release (Approval): New as of 4.0A

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ITEMS_FOR_RELEASE BAPIMMPARA-SELECTION C 1 'X' X Indicator: Display Purchase Orders Awaiting Release Only
REL_CODE BAPIMMPARA-REL_CODE C 2 X Release Code
REL_GROUP BAPIMMPARA-REL_GROUP C 2 X Release Group

Paramètre Reférence Long. Facultatif Description
PO_HEADERS BAPIEKKOL 472 PO Header Data
PO_ITEMS BAPIEKPOC 541 Purchase Order Items
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method allows you to list all purchase orders that have to bereleased with a certain release code and group (collective release).

Notes
Authorization object M_EINK_FRG is checked.
Transfer
The release code (RelCode) and the release group (RelGroup
) must be passed on.
The parameter ItemsForRelease determines the following:

  • Whether POs awaiting release are selected or

  • Whether already released POs are selected

  • This is useful, for example, if you wish to generate a list for thecancellation of releases.
    Return
    The results are returned in the table parameters PoHeaders andPoItems.
    Return messages
    INCLUDE BAPI_RET

    Further information
    For further information on the release (approval) process, refer to theMM Purchasing documentation.

    Description
    If this indicator is set, only those purchase orders that can bereleased are listed.
    If the indicator is not set, only those POs that have already beenreleased are listed.

    Description
    You will find information on the meaning of the release code in therelevant data element documentation:
    Release Code

    Description
    You will find information on the meaning of the release group in therelevant data element documentation:
    Release Group

    Description
    This table contains all purchase order header data.
    INCLUDE BAPI_DATAELEMENT

    Description
    This table contains all purchase order items.
    INCLUDE BAPI_DATAELEMENT

    Description
    INCLUDE BAPI_TABLE

    Value range
    Type,,ID,,Number,,Message
    E,,W5,,037,,No purchase orders satisfying selection criteria
    E,,W5,,100,,You have no authorization to release
    E,,W5,,106,,Release group & and release code & do not exist
    E,,W5,,111,,Pass on the release code when invoking the method
    E,,W5,,113,,Pass on the release group when invoking the method

488619Vendor's material numbers with more than 22 characters
375886BAPI: Error analysis for BAPIs in purchasing