SAP Function BAPI_PO_RELEASE - Release Purchase Orders

Parameter Reference Type Length Default Optional Text
NO_COMMIT BAPIMMPARA-SELECTION C 1 ' ' X Commit Work Yes/No
PO_REL_CODE BAPIMMPARA-PO_REL_COD C 2 Release Code
PURCHASEORDER BAPIMMPARA-PO_NUMBER C 10 Purchase Order Number
USE_EXCEPTIONS BAPIMMPARA-SELECTION C 1 'X' X Set Exceptions and Issue Error Messages

Parameter Reference Type Length Text
REL_INDICATOR_NEW BAPIMMPARA-PO_REL_IND C 1 New Release Indicator
REL_STATUS_NEW BAPIMMPARA-REL_STATUS C 8 New Release Status
RET_CODE SYST-SUBRC I 4 Return Value, Return Value After ABAP Statements

Parameter Reference Length Optional Text
RETURN BAPIRETURN 452 X Return Messages

Exception Text
AUTHORITY_CHECK_FAIL No Authorization to Release
DOCUMENT_NOT_FOUND Purchase order does not exist
ENQUEUE_FAIL Purchase Order Blocked
PREREQUISITE_FAIL Release Prerequisite Not Satisfied
RELEASE_ALREADY_POSTED Release Already Effected
RESPONSIBILITY_FAIL Responsibility for Release Missing

Functionality
You can use this method to release (approve) purchase orders. The POnumber and the release code must be passed on. The new release statusand the new release indicator are returned.

Notes
The authorization object M_EINK_FRG is checked.

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

Description
In this parameter the new release indicator is returned (i.e. therelease indicator after release has been effected).
You will find information on the meaning of the release indicator in therelevant data element documentation:
Release Indicator

Description
In this parameter the new release status is returned (i.e. the releasestatus after release has been effected).
You will find information on the meaning of the release status in therelevant data element documentation:
Release Status

Description
You can use the parameter to determine whether or not the COMMIT WORK isto occur directly.

Value range
X -> No COMMIT WORK occurs within the BAPI_PO_RELEASE
' ' -> The module performs the COMMIT WORK itself

Default
In the standard system, the parameter is initial.

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

Description
INCLUDE BAPI_KEYFIELD

Description
If you set this indicator, the exceptions are passed on in addition tothe messages in the Return parameter. In the standard system, theindicator is set.
If you do not set the indicator, the messages are only passed on in theReturn parameter.

Description
INCLUDE BAPI_TABLE

Value range
Type,,ID,,Number,,Message
E,,W5,,100,,You have no authorization to release
E,,W5,,107,,Purchasing document & does not exist
E,,W5,,108,,Purchasing document & blocked
E,,ME,,102,,Release prerequisite not fulfilled
E,,ME,,103,,Release of document & already effected
E,,ME,,104,,Release outside field of responsibility

375886BAPI: Error analysis for BAPIs in purchasing