SAP RSDRD_SEL_DELETION Function Module for Selective deletion in data targets (InfoCube and ODS)
RSDRD_SEL_DELETION is a standard rsdrd sel deletion SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selective deletion in data targets (InfoCube and ODS) 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 rsdrd sel deletion FM, simply by entering the name RSDRD_SEL_DELETION into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDRD
Program Name: SAPLRSDRD
Main Program: SAPLRSDRD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSDRD_SEL_DELETION 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 'RSDRD_SEL_DELETION'"Selective deletion in data targets (InfoCube and ODS).
EXPORTING
I_DATATARGET = "Name of data target (InfoCube / ODS)
* I_PARALLEL_DEGREE = 1 "Degree of parallelism for new creation
* I_NO_LOGGING = RS_C_FALSE "Switch off DB-logging?
* I_NO_COMMIT = RS_C_FALSE "Do Not Execute Commit
* I_NO_ENQUEUE = RS_C_FALSE "No enqueue, the calling programm already does this
* I_SHOW_REPORT = RS_C_FALSE "Show genereated report?
* I_TRANSACTIONAL_ODS = RS_C_FALSE "ODS: Delete on transactional object
* I_WORK_ON_PARTITIONS = RS_C_FALSE "Work on partitions, e.g. 'Truncate partition'
* I_REBUILD_BIA = RS_C_FALSE "Recreate BWA after selective deletion
* I_WRITE_APPLICATION_LOG = RS_C_FALSE "Write directly into application log
* I_ARCHIVED = RS_C_FALSE "Archiving activity
I_THX_SEL = "Select condition for deletion
* I_DEL_ACTIV = RS_C_TRUE "ODS: Deletion from Active Version
* I_DEL_UPDATE = RS_C_FALSE "ODS: Deletion from Update Table
* I_DEL_CHANGE = RS_C_FALSE "ODS: Deletion from Change-Log
* I_AUTHORITY_CHECK = RS_C_TRUE "Execute authority check?
* I_MODE = RSDRD_C_MODE-CHOOSE "Mode selective deletion (constants: RSDRD_C_MODE)
* I_REQDELMOD = '2' "Mode request deletion
* I_THRESHOLD = '0.1' "Threshold for deletion mode 'CHOOSE'
IMPORTING
E_CNT = "Records to be deleted
CHANGING
C_T_MSG = "BW: Table with Messages (Application Log)
EXCEPTIONS
X_MESSAGE = 1 INHERITED_ERROR = 2 INVALID_TYPE = 3
IMPORTING Parameters details for RSDRD_SEL_DELETION
I_DATATARGET - Name of data target (InfoCube / ODS)
Data type: RSDDATATARGETOptional: No
Call by Reference: No ( called with pass by value option)
I_PARALLEL_DEGREE - Degree of parallelism for new creation
Data type: IDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_LOGGING - Switch off DB-logging?
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_COMMIT - Do Not Execute Commit
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_ENQUEUE - No enqueue, the calling programm already does this
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SHOW_REPORT - Show genereated report?
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TRANSACTIONAL_ODS - ODS: Delete on transactional object
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WORK_ON_PARTITIONS - Work on partitions, e.g. 'Truncate partition'
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REBUILD_BIA - Recreate BWA after selective deletion
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WRITE_APPLICATION_LOG - Write directly into application log
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ARCHIVED - Archiving activity
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_THX_SEL - Select condition for deletion
Data type: RSDRD_THX_SELOptional: No
Call by Reference: No ( called with pass by value option)
I_DEL_ACTIV - ODS: Deletion from Active Version
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DEL_UPDATE - ODS: Deletion from Update Table
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DEL_CHANGE - ODS: Deletion from Change-Log
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUTHORITY_CHECK - Execute authority check?
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MODE - Mode selective deletion (constants: RSDRD_C_MODE)
Data type: RSDRD_MODEDefault: RSDRD_C_MODE-CHOOSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REQDELMOD - Mode request deletion
Data type: RSDRD_MODEDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_THRESHOLD - Threshold for deletion mode 'CHOOSE'
Data type: FDefault: '0.1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSDRD_SEL_DELETION
E_CNT - Records to be deleted
Data type: FOptional: No
Call by Reference: Yes
CHANGING Parameters details for RSDRD_SEL_DELETION
C_T_MSG - BW: Table with Messages (Application Log)
Data type: RS_T_MSGOptional: No
Call by Reference: Yes
EXCEPTIONS details
X_MESSAGE - Cancellation
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INHERITED_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_TYPE - Invalid Type (Datatarget)
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDRD_SEL_DELETION 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_e_cnt | TYPE F, " | |||
| lv_c_t_msg | TYPE RS_T_MSG, " | |||
| lv_x_message | TYPE RS_T_MSG, " | |||
| lv_i_datatarget | TYPE RSDDATATARGET, " | |||
| lv_i_parallel_degree | TYPE I, " 1 | |||
| lv_i_no_logging | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_no_commit | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_no_enqueue | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_show_report | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_transactional_ods | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_work_on_partitions | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_rebuild_bia | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_write_application_log | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_archived | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_thx_sel | TYPE RSDRD_THX_SEL, " | |||
| lv_inherited_error | TYPE RSDRD_THX_SEL, " | |||
| lv_i_del_activ | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_invalid_type | TYPE RS_BOOL, " | |||
| lv_i_del_update | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_del_change | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_authority_check | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_mode | TYPE RSDRD_MODE, " RSDRD_C_MODE-CHOOSE | |||
| lv_i_reqdelmod | TYPE RSDRD_MODE, " '2' | |||
| lv_i_threshold | TYPE F. " '0.1' |
|   CALL FUNCTION 'RSDRD_SEL_DELETION' "Selective deletion in data targets (InfoCube and ODS) |
| EXPORTING | ||
| I_DATATARGET | = lv_i_datatarget | |
| I_PARALLEL_DEGREE | = lv_i_parallel_degree | |
| I_NO_LOGGING | = lv_i_no_logging | |
| I_NO_COMMIT | = lv_i_no_commit | |
| I_NO_ENQUEUE | = lv_i_no_enqueue | |
| I_SHOW_REPORT | = lv_i_show_report | |
| I_TRANSACTIONAL_ODS | = lv_i_transactional_ods | |
| I_WORK_ON_PARTITIONS | = lv_i_work_on_partitions | |
| I_REBUILD_BIA | = lv_i_rebuild_bia | |
| I_WRITE_APPLICATION_LOG | = lv_i_write_application_log | |
| I_ARCHIVED | = lv_i_archived | |
| I_THX_SEL | = lv_i_thx_sel | |
| I_DEL_ACTIV | = lv_i_del_activ | |
| I_DEL_UPDATE | = lv_i_del_update | |
| I_DEL_CHANGE | = lv_i_del_change | |
| I_AUTHORITY_CHECK | = lv_i_authority_check | |
| I_MODE | = lv_i_mode | |
| I_REQDELMOD | = lv_i_reqdelmod | |
| I_THRESHOLD | = lv_i_threshold | |
| IMPORTING | ||
| E_CNT | = lv_e_cnt | |
| CHANGING | ||
| C_T_MSG | = lv_c_t_msg | |
| EXCEPTIONS | ||
| X_MESSAGE = 1 | ||
| INHERITED_ERROR = 2 | ||
| INVALID_TYPE = 3 | ||
| . " RSDRD_SEL_DELETION | ||
ABAP code using 7.40 inline data declarations to call FM RSDRD_SEL_DELETION
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.| DATA(ld_i_parallel_degree) | = 1. | |||
| DATA(ld_i_no_logging) | = RS_C_FALSE. | |||
| DATA(ld_i_no_commit) | = RS_C_FALSE. | |||
| DATA(ld_i_no_enqueue) | = RS_C_FALSE. | |||
| DATA(ld_i_show_report) | = RS_C_FALSE. | |||
| DATA(ld_i_transactional_ods) | = RS_C_FALSE. | |||
| DATA(ld_i_work_on_partitions) | = RS_C_FALSE. | |||
| DATA(ld_i_rebuild_bia) | = RS_C_FALSE. | |||
| DATA(ld_i_write_application_log) | = RS_C_FALSE. | |||
| DATA(ld_i_archived) | = RS_C_FALSE. | |||
| DATA(ld_i_del_activ) | = RS_C_TRUE. | |||
| DATA(ld_i_del_update) | = RS_C_FALSE. | |||
| DATA(ld_i_del_change) | = RS_C_FALSE. | |||
| DATA(ld_i_authority_check) | = RS_C_TRUE. | |||
| DATA(ld_i_mode) | = RSDRD_C_MODE-CHOOSE. | |||
| DATA(ld_i_reqdelmod) | = '2'. | |||
| DATA(ld_i_threshold) | = '0.1'. | |||
Search for further information about these or an SAP related objects