Fonction SAP BAPI_REQUISITION_RELEASE_GEN - Release Entire Purchase Requisition

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

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

Functionality
This method allows you to release all the items of a purchaserequisition at once (overall release).
Release (approval) is necessary if a purchase requisition satisfies theconditions specified in arelease_strategy.
Example: all purchase requisitions whose total value exceeds $10,000have to be released.
The requisition number and the release code must be passed on. The newrelease status and the new release indicator are returned.
INCLUDE BAPI_RET
If you wish to release the individual items of a purchase requisition,use the method Release of the business objectPurchaseReqItem.

Notes
The authorization object M_EINK_FRG is checked.

Further information
For further information, refer to the documentation MMPurchasing, section "Release Procedure", and to the ImplementationGuide (IMG) for Purchasing Set up release procedurewith classification.

Description
The new release indicator (i.e. the release indicator followingrelease) is returned in this parameter.
Refer to the relevant data element documentation for information on themeaning of the release indicator.
Release indicator

Description
The new release status (i.e. the status following release) is returnedin this parameter.
Refer to the relevant data element documentation for information on themeaning of the release status.
Release status

Description
BAPI_KEYFIELD

Description
For information on the meaning of the release code, refer to therelevant data element documentation:
Release code

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
W,,W5,,105,,Release outside field of responsibility

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