Fonction SAP BAPI_PO_RESET_RELEASE - Cancel Release of Purchase Orders

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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

Paramètre Reférence Type Long. Description
REL_INDICATOR_NEW BAPIMMPARA-PO_REL_IND C 1 Previous Release Indicator
REL_STATUS_NEW BAPIMMPARA-REL_STATUS C 8 Previous Release Status

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRETURN 452 X Return Messages

Exception Description
AUTHORITY_CHECK_FAIL No Authorization to Release
DOCUMENT_NOT_FOUND Purchase order does not exist
ENQUEUE_FAIL Purchase Order Blocked
NO_NEW_RELEASE_INDICATOR No New Release Status Determinable
NO_RELEASE_ALREADY Purchase Requisition Not Yet Released
PREREQUISITE_FAIL Release Prerequisite Not Satisfied
RELEASE_ALREADY_POSTED Release Already Cancelled
RESPONSIBILITY_FAIL Responsibility for Release Missing

Functionality
You can use this method to cancel (revoke) already effected releases ofpurchase orders. The PO number and the release code must be passed on.The release status and release indicator valid prior to the release arereturned.

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 original release indicator is returned (i.e. therelease indicator that was set prior to release).
You will find information on the meaning of the release indicator inthe relevant data element documentation:
Release indicator

Description
In this parameter the original release status is returned (i.e. thestatus that was valid prior to release).
You will find information on the meaning of the release status in therelevant data element documentation:
Release status

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 parameter Return. In the standard system,the indicator is set.
If you do not set the indicator, the messages are only passed on in theparameter Return.

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,,104,,Release outside field of responsibility
E,,ME,,105,,Release not yet effected
E,,ME,,108,,No new release indicator can be determined
E,,ME,,109,,RFQ(s) already issued for this item
,,,,,,(function not possible)
E,,ME,,110,,Order(s) already placed for this item
,,,,,,(function not possible)
E,,ME,,175,,Document has already been outputted
,,,,,,(function not possible)

375886BAPI: Error analysis for BAPIs in purchasing