Fonction SAP BAPI_REQUISITION_RELEASE - Release Purchase Requisition Item by Item

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 Circumvent COMMIT WORK
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 New Release Indicator
REL_STATUS_NEW BAPIMMPARA-REL_STATUS C 8 New Release Status

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
PREREQUISITE_FAIL Release Prerequisite Not Satisfied
RELEASE_ALREADY_POSTED Release Already Effected
REQUISITION_NOT_FOUND Purchase Requisition Does Not Exist
RESPONSIBILITY_FAIL Responsibility for Release Missing

Functionality
This method enables you to release (signify approval of) purchaserequisitions item by item.
This is necessary if a purchase requisition item satisfies theconditions defined in a release strategy
Example: all purchase requisition items with a value exceeding $10,000must be released (approved) before they can be issued.
The requisition number and item and the release code must be passed on.The new release status and the new release indicator are returned.
INCLUDE BAPI_RET
If you wish to release all the items of a purchase requisition at thesame time, use the Release method for the business objectPurchaseRequisition.

Notes
Authorization object M_EINK_FRG is checked.

Further information
For further information, refer to the MM Purchasingdocumentation (section on release procedure) and the ImplementationGuide (IMG) for Purchasing (under Set up releaseprocedure with classification).

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 inthe relevant 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
INCLUDE BAPI_KEYFIELD

Description
Number of the purchase requisition.
You will find information on the meaning of the purchase requisitionnumber in the relevant data element documentation:
Purchase requisition number

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

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,,W5,,103,,Release prerequisites not satisfied
E,,W5,,104,,Purchase requisition & & already released
E,,W5,,105,,Release outside field of responsibility

967440BAPI_REQUISITION_RELEASE(_GEN) with COMMIT WORK
589411AFS: BAPIs in purchasing