Fonction SAP BAPI_PO_GET_LIST - List Purchase Orders - Only up to 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_ADDRESSES BAPIEKAN 391 X Vendor Address for SAP Releases < 4.0A
PO_ADDRESSES_NEW BAPIADDRESS 1243 X Vendor Address for SAP Releases >= 4.0A
PO_HEADERS BAPIEKKO 436 PO Header Data
PO_ITEMS BAPIEKPO 1361 Purchase Order Items
RETURN BAPIRETURN 452 X Processing Errors That Occurred

Exception Description
REL_AUTHORITY_CHECK_FAILED No Authorization to Release
REL_CODE_MISSING Release Code Missing

Functionality
You can use this method to list all purchase orders that have to bereleased (approved) with a certain release code and group (collectiverelease).
As of SAP Release 4.0A, use the method GetItemsForRelease of thebusiness object PurchaseOrder.

Notes
Authorization object M_EINK_FRG is checked.
The release code (RelCode) and the release group (RelGroup
) have to be passed on.
The parameter ItemsForRelease determine whether:

  • Purchase orders awaiting release, or

  • Already-released purchase orders

  • are selected.
    This is useful, for example, if a list is to be generated for thecancellation (revokation) of previously effected releases.
    The results are returned in the table parameters Headers,Addresses and Items.

    Further information
    For further information, refer to the MM Purchasing documentation.

    Description
    If the indicator is set, only POs that can be released are listed.
    If the indicator is not set, only POs that have already been releasedare listed.

    Value range
    Dictionary data type: CHAR (field length 1).

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

    Value range
    Dictionary data type: CHAR (field length 2).

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

    Value range
    Dictionary data type: CHAR (field length 2).

    Description
    This table contains the vendor's address.

    Description
    This table contains all PO header data.

    Description
    This table contains all PO items.

    Description
    This table contains the return messages from the method call.