RSDMDD_DELETE_MASTER_DATA 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 RSDMDD_DELETE_MASTER_DATA into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSDMDD
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RSDMDD_DELETE_MASTER_DATA' "Packetized delete master data
EXPORTING
i_iobjnm = " rsdiobjnm Name of characteristic whose master data should be deleted
* i_t_chavl = " rsd_t_chavl Table with CHAVL values of the master data to be deleted
* i_flag_delete_all = RS_C_FALSE " rs_bool Should all master data (independent of _t_chavl) should be deleted?
* i_flag_delete_sids = RS_C_FALSE " rs_bool Should the SIDs be deleted also?
* i_flag_dialog = RS_C_TRUE " rs_bool Should a deletion dialog be opened?
* i_flag_delete_texts = RS_C_TRUE " rs_bool Should the texts be deleted also?
* i_flag_force_delete = RS_C_FALSE " rs_bool Should not-used master data be deleted, if parts are used?
* i_flag_simulation = RS_C_FALSE " rs_bool Should deletion be only simulated?
* i_flag_log = RS_C_TRUE " rs_bool Should log information be written during deletion?
* i_usage_protocol = RS_C_TRUE " rs_bool Should a detailed where-used-list be created?
i_search_mode = 'O' " rsmd_uc_checkmode Mode: Where-used list check for master data
* i_t_expr = " rsds_texpr Select conditions for selective deletion
* i_storage_selection = '*' " rsda_storage_selection Read access NLS ONLINE DB or both
* i_store_usage_list = RS_C_FALSE " rs_bool
* i_reuse_usage_list = RS_C_FALSE " rs_bool
IMPORTING
e_prot_object = " balhdri-object Application Log: Object Name (Application Code)
e_prot_subobject = " balhdri-subobject Application Log: Sub-object
e_prot_extnum = " balhdri-extnumber Application Log: External Identification
e_t_msg = " rsdmd_t_balmi Messages created during the deletion
e_t_valsid_used = " rrsi_t_valsid CHAVL+SID of the not-deleted values
e_count_used = " i Number of not-deleted values
e_result = " i Result
. " RSDMDD_DELETE_MASTER_DATA
The ABAP code below is a full code listing to execute function module RSDMDD_DELETE_MASTER_DATA 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_e_prot_object | TYPE BALHDRI-OBJECT , |
| ld_e_prot_subobject | TYPE BALHDRI-SUBOBJECT , |
| ld_e_prot_extnum | TYPE BALHDRI-EXTNUMBER , |
| ld_e_t_msg | TYPE RSDMD_T_BALMI , |
| ld_e_t_valsid_used | TYPE RRSI_T_VALSID , |
| ld_e_count_used | TYPE I , |
| ld_e_result | TYPE I . |
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_e_prot_object | TYPE BALHDRI-OBJECT , |
| ld_i_iobjnm | TYPE RSDIOBJNM , |
| ld_e_prot_subobject | TYPE BALHDRI-SUBOBJECT , |
| ld_i_t_chavl | TYPE RSD_T_CHAVL , |
| ld_e_prot_extnum | TYPE BALHDRI-EXTNUMBER , |
| ld_i_flag_delete_all | TYPE RS_BOOL , |
| ld_i_flag_delete_sids | TYPE RS_BOOL , |
| ld_e_t_msg | TYPE RSDMD_T_BALMI , |
| ld_e_t_valsid_used | TYPE RRSI_T_VALSID , |
| ld_i_flag_dialog | TYPE RS_BOOL , |
| ld_e_count_used | TYPE I , |
| ld_i_flag_delete_texts | TYPE RS_BOOL , |
| ld_e_result | TYPE I , |
| ld_i_flag_force_delete | TYPE RS_BOOL , |
| ld_i_flag_simulation | TYPE RS_BOOL , |
| ld_i_flag_log | TYPE RS_BOOL , |
| ld_i_usage_protocol | TYPE RS_BOOL , |
| ld_i_search_mode | TYPE RSMD_UC_CHECKMODE , |
| ld_i_t_expr | TYPE RSDS_TEXPR , |
| ld_i_storage_selection | TYPE RSDA_STORAGE_SELECTION , |
| ld_i_store_usage_list | TYPE RS_BOOL , |
| ld_i_reuse_usage_list | TYPE RS_BOOL . |
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 RSDMDD_DELETE_MASTER_DATA or its description.
RSDMDD_DELETE_MASTER_DATA - Packetized delete master data RSDMDD_CHECK_IOBJ_TSTMP_CHANGE - Checks if the timestamp of MD deletion has changed RSDL_TRACEFILE_DISPLAY - Test the connections for DB Connect RSDL_DB_UPLOAD - Upload of DB data to an InfoSource RSDL_DB_STRUCTURE_GENERATE - Create / Modify DDIC Structure for DB Connect RSDL_DB_RFC_GET - Test the connections for DB Connect