Fonction SAP BAPI_PO_GETRELINFO - Display Detailed Release (Approval) Information on Purchase Order

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PO_REL_CODE BAPIMMPARA-PO_REL_COD C 2 X Release Code
PURCHASEORDER BAPIMMPARA-PO_NUMBER C 10 Purchase Order Number

Paramètre Reférence Type Long. Description
GENERAL_RELEASE_INFO BAPIRLGNPO u 107 General Release Information
RELEASE_ALREADY_POSTED BAPIRLCOPO u 194 Releases to Date
RELEASE_PREREQUISITES BAPIRLCOPO u 194 Release Prerequisites

Paramètre Reférence Long. Facultatif Description
RELEASE_FINAL BAPIRLCOPO 194 X Final Release
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method enables you to display release information.

Notes
The authorization object M_EINK_FRG is checked.
Transfer
The purchase order number must be passed on. If you additionally passon the release code, the release prerequisites are also determined.
Return
The following are returned:

  • General release information (e.g. the release group and release
  • strategy)
    • The release prerequisites (only if the release code was passed on)

    • The release codes with which previous releases have been effected

    • All release codes involved in the approval procedure

    • Return messages
      INCLUDE BAPI_RET

      Further information
      For further information, refer to the MM Purchasingdocumentation (section entitled "Release Procedure").

      Description
      The structure contains general release information, such as:

      • the assigned release strategy

      • the release indicator

      • the release group

      • INCLUDE BAPI_DATAELEMENT

        Description
        The structure contains all release codes with which approval hasalready been signified.

        Description
        This structure only contains the release prerequisites if the importparameter PoRelCode is passed on. Release prerequisites are allrelease codes with which release must be effected prior to the releasecode that is passed on.

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

        Description
        INCLUDE BAPI_KEYFIELD

        Description
        The table contains all release codes with which the purchase order hasto be released.

        Description
        INCLUDE BAPI_TABLE

        Value range
        Type,,ID,,Number,,Message
        E,,W5,,107,,Purchasing document & does not exist