Fonction SAP BAPI_REQUISITION_RESET_RELEASE - Cancel Release of Purchase Requisition Items

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ITEM BAPI2009OB-PREQ_ITEM N 5 Purchase Requisition Item
NO_COMMIT_WORK BAPIFLAG-BAPIFLAG C 1 SPACE X Single-Character Indicator
NUMBER BAPI2009OB-PREQ_NO C 10 Purchase Requisition
REL_CODE BAPIMMPARA-REL_CODE C 2 Release Code
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-REL_IND C 1 Previous Release Indicator
REL_STATUS_NEW BAPIMMPARA-REL_STATUS C 8 Previous Release Code

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

Exception Description
AUTHORITY_CHECK_FAIL No Authorization to Release
ENQUEUE_FAIL Purchase Requisition 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
REQUISITION_NOT_FOUND Purchase Requisition Does Not Exist
RESPONSIBILITY_FAIL Responsibility for Release Missing

Functionality
This method can be used to cancel the release (= revoke approval) ofpurchase requisitions. The requisition number/item and the release codemust be passed on. The release status and the release indicator thatwere valid before the release are then returned.

Notes
Authorization object M_EINK_FRG is checked.

Further information
For further information, refer to the MM Purchasingdocumentation.

Description
In this parameter the original release indicator is returned (i.e. theindicator that was set prior to the 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 applied prior to the release).
You will find information on the meaning of the release status in therelevant data element documentation:
Release status

Description
INCLUDE BAPI_KEYFIELD

Description
INCLUDE BAPI_KEYFIELD

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

Description
If you set this indicator, the exceptions will be passed on in additionto the 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,,101,,Purchase requisition & & does not exist
E,,W5,,102,,Purchase requisition & & 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)

589411AFS: BAPIs in purchasing