SAP RH_DELETE_OBJECTS_PA_PB Function Module for
RH_DELETE_OBJECTS_PA_PB is a standard rh delete objects pa pb 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 objects pa pb FM, simply by entering the name RH_DELETE_OBJECTS_PA_PB into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHA2
Program Name: SAPLRHA2
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_DELETE_OBJECTS_PA_PB 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_OBJECTS_PA_PB'".
EXPORTING
VTASK = "
* COMMIT_FLAG = 'X' "
AUTHY = "
* OTYPE = 'P ' "
* INPUT_METHOD = "
TABLES
PA_OBJECTS = "
T_PROTOCOL = "
IMPORTING Parameters details for RH_DELETE_OBJECTS_PA_PB
VTASK -
Data type: HRRHAP-VTASKOptional: No
Call by Reference: No ( called with pass by value option)
COMMIT_FLAG -
Data type: HRRHAP-COMMIT_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
AUTHY -
Data type: HRRHAP-AUTHYOptional: No
Call by Reference: No ( called with pass by value option)
OTYPE -
Data type: WPLOG-OTYPEDefault: 'P '
Optional: Yes
Call by Reference: No ( called with pass by value option)
INPUT_METHOD -
Data type: BDWFAP_PAR-INPUTMETHDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_DELETE_OBJECTS_PA_PB
PA_OBJECTS -
Data type: HROBJECTOptional: No
Call by Reference: No ( called with pass by value option)
T_PROTOCOL -
Data type: HRALE_ERROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_DELETE_OBJECTS_PA_PB 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_vtask | TYPE HRRHAP-VTASK, " | |||
| lt_pa_objects | TYPE STANDARD TABLE OF HROBJECT, " | |||
| lt_t_protocol | TYPE STANDARD TABLE OF HRALE_ERR, " | |||
| lv_commit_flag | TYPE HRRHAP-COMMIT_FLG, " 'X' | |||
| lv_authy | TYPE HRRHAP-AUTHY, " | |||
| lv_otype | TYPE WPLOG-OTYPE, " 'P ' | |||
| lv_input_method | TYPE BDWFAP_PAR-INPUTMETHD. " |
|   CALL FUNCTION 'RH_DELETE_OBJECTS_PA_PB' " |
| EXPORTING | ||
| VTASK | = lv_vtask | |
| COMMIT_FLAG | = lv_commit_flag | |
| AUTHY | = lv_authy | |
| OTYPE | = lv_otype | |
| INPUT_METHOD | = lv_input_method | |
| TABLES | ||
| PA_OBJECTS | = lt_pa_objects | |
| T_PROTOCOL | = lt_t_protocol | |
| . " RH_DELETE_OBJECTS_PA_PB | ||
ABAP code using 7.40 inline data declarations to call FM RH_DELETE_OBJECTS_PA_PB
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 VTASK FROM HRRHAP INTO @DATA(ld_vtask). | ||||
| "SELECT single COMMIT_FLG FROM HRRHAP INTO @DATA(ld_commit_flag). | ||||
| DATA(ld_commit_flag) | = 'X'. | |||
| "SELECT single AUTHY FROM HRRHAP INTO @DATA(ld_authy). | ||||
| "SELECT single OTYPE FROM WPLOG INTO @DATA(ld_otype). | ||||
| DATA(ld_otype) | = 'P '. | |||
| "SELECT single INPUTMETHD FROM BDWFAP_PAR INTO @DATA(ld_input_method). | ||||
Search for further information about these or an SAP related objects