SAP BAPI_REQUISITION_RESET_REL_GEN Function Module for Cancel Overall Release of Purchase Requisitions
BAPI_REQUISITION_RESET_REL_GEN is a standard bapi requisition reset rel gen SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Cancel Overall Release of Purchase Requisitions processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi requisition reset rel gen FM, simply by entering the name BAPI_REQUISITION_RESET_REL_GEN into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEWF
Program Name: SAPLMEWF
Main Program: SAPLMEWF
Appliation area: M
Release date: 17-Mar-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_REQUISITION_RESET_REL_GEN pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_REQUISITION_RESET_REL_GEN'"Cancel Overall Release of Purchase Requisitions.
EXPORTING
NUMBER = "Purchase Requisition
REL_CODE = "Release Code
* NO_COMMIT_WORK = ' ' "Single-Character Indicator
IMPORTING
REL_STATUS_NEW = "Previous Release Code
REL_INDICATOR_NEW = "Previous Release Indicator
TABLES
* RETURN = "Return Messages
IMPORTING Parameters details for BAPI_REQUISITION_RESET_REL_GEN
NUMBER - Purchase Requisition
Data type: BAPI2009OB-PREQ_NOOptional: No
Call by Reference: No ( called with pass by value option)
REL_CODE - Release Code
Data type: BAPIMMPARA-REL_CODEOptional: No
Call by Reference: No ( called with pass by value option)
NO_COMMIT_WORK - Single-Character Indicator
Data type: BAPIFLAG-BAPIFLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_REQUISITION_RESET_REL_GEN
REL_STATUS_NEW - Previous Release Code
Data type: BAPIMMPARA-REL_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
REL_INDICATOR_NEW - Previous Release Indicator
Data type: BAPIMMPARA-REL_INDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_REQUISITION_RESET_REL_GEN
RETURN - Return Messages
Data type: BAPIRETURNOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_REQUISITION_RESET_REL_GEN Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_number | TYPE BAPI2009OB-PREQ_NO, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRETURN, " | |||
| lv_rel_status_new | TYPE BAPIMMPARA-REL_STATUS, " | |||
| lv_rel_code | TYPE BAPIMMPARA-REL_CODE, " | |||
| lv_rel_indicator_new | TYPE BAPIMMPARA-REL_IND, " | |||
| lv_no_commit_work | TYPE BAPIFLAG-BAPIFLAG. " SPACE |
|   CALL FUNCTION 'BAPI_REQUISITION_RESET_REL_GEN' "Cancel Overall Release of Purchase Requisitions |
| EXPORTING | ||
| NUMBER | = lv_number | |
| REL_CODE | = lv_rel_code | |
| NO_COMMIT_WORK | = lv_no_commit_work | |
| IMPORTING | ||
| REL_STATUS_NEW | = lv_rel_status_new | |
| REL_INDICATOR_NEW | = lv_rel_indicator_new | |
| TABLES | ||
| RETURN | = lt_return | |
| . " BAPI_REQUISITION_RESET_REL_GEN | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_REQUISITION_RESET_REL_GEN
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PREQ_NO FROM BAPI2009OB INTO @DATA(ld_number). | ||||
| "SELECT single REL_STATUS FROM BAPIMMPARA INTO @DATA(ld_rel_status_new). | ||||
| "SELECT single REL_CODE FROM BAPIMMPARA INTO @DATA(ld_rel_code). | ||||
| "SELECT single REL_IND FROM BAPIMMPARA INTO @DATA(ld_rel_indicator_new). | ||||
| "SELECT single BAPIFLAG FROM BAPIFLAG INTO @DATA(ld_no_commit_work). | ||||
| DATA(ld_no_commit_work) | = ' '. | |||
Search for further information about these or an SAP related objects