SAP RH_DELETE_WS_VERSION Function Module for
RH_DELETE_WS_VERSION is a standard rh delete ws version SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rh delete ws version FM, simply by entering the name RH_DELETE_WS_VERSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHWP
Program Name: SAPLRHWP
Main Program: SAPLRHWP
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_DELETE_WS_VERSION 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 'RH_DELETE_WS_VERSION'".
EXPORTING
* COMMIT_FLG = 'X' "Commit flag
* NO_DIALOG_FLG = ' ' "
* NO_ENQ_FLG = ' ' "
IMPORTING
DEL_WFD_ID = "
DEL_VERSION = "
TABLES
WFDV_P1205 = "
* INST1205 = "
EXCEPTIONS
NO_VERSIONS_IMPORTED = 1 DELETE_ERROR = 2 CANCELLED = 3
IMPORTING Parameters details for RH_DELETE_WS_VERSION
COMMIT_FLG - Commit flag
Data type: HRRHAP-COMMIT_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DIALOG_FLG -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_ENQ_FLG -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_DELETE_WS_VERSION
DEL_WFD_ID -
Data type: HRS1205-WFD_IDOptional: No
Call by Reference: No ( called with pass by value option)
DEL_VERSION -
Data type: HRS1205-VERSIONOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_DELETE_WS_VERSION
WFDV_P1205 -
Data type: HRS1205Optional: No
Call by Reference: No ( called with pass by value option)
INST1205 -
Data type: HRS1205Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_VERSIONS_IMPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DELETE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CANCELLED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_DELETE_WS_VERSION 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_commit_flg | TYPE HRRHAP-COMMIT_FLG, " 'X' | |||
| lv_del_wfd_id | TYPE HRS1205-WFD_ID, " | |||
| lt_wfdv_p1205 | TYPE STANDARD TABLE OF HRS1205, " | |||
| lv_no_versions_imported | TYPE HRS1205, " | |||
| lt_inst1205 | TYPE STANDARD TABLE OF HRS1205, " | |||
| lv_del_version | TYPE HRS1205-VERSION, " | |||
| lv_delete_error | TYPE HRS1205, " | |||
| lv_no_dialog_flg | TYPE FLAG, " SPACE | |||
| lv_cancelled | TYPE FLAG, " | |||
| lv_no_enq_flg | TYPE FLAG. " SPACE |
|   CALL FUNCTION 'RH_DELETE_WS_VERSION' " |
| EXPORTING | ||
| COMMIT_FLG | = lv_commit_flg | |
| NO_DIALOG_FLG | = lv_no_dialog_flg | |
| NO_ENQ_FLG | = lv_no_enq_flg | |
| IMPORTING | ||
| DEL_WFD_ID | = lv_del_wfd_id | |
| DEL_VERSION | = lv_del_version | |
| TABLES | ||
| WFDV_P1205 | = lt_wfdv_p1205 | |
| INST1205 | = lt_inst1205 | |
| EXCEPTIONS | ||
| NO_VERSIONS_IMPORTED = 1 | ||
| DELETE_ERROR = 2 | ||
| CANCELLED = 3 | ||
| . " RH_DELETE_WS_VERSION | ||
ABAP code using 7.40 inline data declarations to call FM RH_DELETE_WS_VERSION
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 COMMIT_FLG FROM HRRHAP INTO @DATA(ld_commit_flg). | ||||
| DATA(ld_commit_flg) | = 'X'. | |||
| "SELECT single WFD_ID FROM HRS1205 INTO @DATA(ld_del_wfd_id). | ||||
| "SELECT single VERSION FROM HRS1205 INTO @DATA(ld_del_version). | ||||
| DATA(ld_no_dialog_flg) | = ' '. | |||
| DATA(ld_no_enq_flg) | = ' '. | |||
Search for further information about these or an SAP related objects