BAPI_REQUISITION_RESET_RELEASE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_REQUISITION_RESET_RELEASE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
MEWF
Released Date:
31.10.1997
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_REQUISITION_RESET_RELEASE' "Cancel Release of Purchase Requisition Items
EXPORTING
number = " bapi2009ob-preq_no Purchase Requisition
item = " bapi2009ob-preq_item Purchase Requisition Item
rel_code = " bapimmpara-rel_code Release Code
* use_exceptions = 'X' " bapimmpara-selection Set Exceptions and Issue Error Messages
* no_commit_work = SPACE " bapiflag-bapiflag Single-Character Indicator
IMPORTING
rel_status_new = " bapimmpara-rel_status Previous Release Code
rel_indicator_new = " bapimmpara-rel_ind Previous Release Indicator
* TABLES
* return = " bapireturn Return Messages
EXCEPTIONS
AUTHORITY_CHECK_FAIL = 1 " No Authorization to Release
REQUISITION_NOT_FOUND = 2 " Purchase Requisition Does Not Exist
ENQUEUE_FAIL = 3 " Purchase Requisition Blocked
PREREQUISITE_FAIL = 4 " Release Prerequisite Not Satisfied
RELEASE_ALREADY_POSTED = 5 " Release Already Cancelled
RESPONSIBILITY_FAIL = 6 " Responsibility for Release Missing
NO_RELEASE_ALREADY = 7 " Purchase Requisition Not Yet Released
NO_NEW_RELEASE_INDICATOR = 8 " No New Release Status Determinable
. " BAPI_REQUISITION_RESET_RELEASE
The ABAP code below is a full code listing to execute function module BAPI_REQUISITION_RESET_RELEASE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_rel_status_new | TYPE BAPIMMPARA-REL_STATUS , |
| ld_rel_indicator_new | TYPE BAPIMMPARA-REL_IND , |
| it_return | TYPE STANDARD TABLE OF BAPIRETURN,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_rel_status_new | TYPE BAPIMMPARA-REL_STATUS , |
| ld_number | TYPE BAPI2009OB-PREQ_NO , |
| it_return | TYPE STANDARD TABLE OF BAPIRETURN , |
| wa_return | LIKE LINE OF it_return, |
| ld_rel_indicator_new | TYPE BAPIMMPARA-REL_IND , |
| ld_item | TYPE BAPI2009OB-PREQ_ITEM , |
| ld_rel_code | TYPE BAPIMMPARA-REL_CODE , |
| ld_use_exceptions | TYPE BAPIMMPARA-SELECTION , |
| ld_no_commit_work | TYPE BAPIFLAG-BAPIFLAG . |
This method can be used to cancel the release (= revoke approval) of
purchase requisitions. The requisition number/item and the release code
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_REQUISITION_RESET_RELEASE or its description.
BAPI_REQUISITION_RESET_RELEASE - Cancel Release of Purchase Requisition Items BAPI_REQUISITION_RELEASE_GEN - Release Entire Purchase Requisition BAPI_REQUISITION_RELEASE - Release Purchase Requisition Item by Item BAPI_REQUISITION_GETRELINFO - Display Detailed Release (Approval) Information on Purchase Requisitio BAPI_REQUISITION_GETITEMSREL - List Purchase Requisitions Awaiting Release BAPI_REQUISITION_GETITEMS - Read Purchase Requisition Item