SAP RSDMD_DEL_MASTER_DATA Function Module for Deleting Master Data









RSDMD_DEL_MASTER_DATA is a standard rsdmd del master data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deleting Master Data 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 rsdmd del master data FM, simply by entering the name RSDMD_DEL_MASTER_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSDMD
Program Name: SAPLRSDMD
Main Program: SAPLRSDMD
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSDMD_DEL_MASTER_DATA 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 'RSDMD_DEL_MASTER_DATA'"Deleting Master Data
EXPORTING
I_IOBJNM = "Characteristic
* I_WITHOUT_PROTOCOL = ' ' "No Log for 'X' as to Where What is Being Used
* I_CALLER_MAINTENANCE = ' ' "provided by maintenance?
* I_FLG_DELETE_ALL = ' ' "All Master Data Is To Be Deleted
* I_FLG_DELETE_SIDS = 'X' "SID Table Entries Are to Be Deleted
* I_FLG_DELETE_SIDS_ASK = ' ' "Dialog for Request of Parameter I_FLG_DELETE_SIDS
* I_FLG_DELETE_TEXTS = 'X' "Delete Texts As Well
* I_T_CHAVL = "Table of Values to Be Deleted
* I_FLG_DIALOG = 'X' "With Dialog
* I_FLG_FORCE_DELETE = ' ' "Delete Parts When Everything Cannot Be Deleted
* I_FLG_SIMULATION = ' ' "Boolean

IMPORTING
E_RESULT = "Result
E_PROT_OBJECT = "Application log: Object name (Application code)
E_PROT_SUBOBJECT = "Application Log: Sub-object
E_PROT_EXTNUM = "Application Log: External number
E_COUNT_USED = "
E_T_SIDVAL_USED = "Master Data Used
E_T_PROTOCOL = "Messages
E_T_ULIST_DIM = "Master Data in Dimensions (InfoCubes)
E_T_ULIST_ATR_NAV = "Master Data as Navigation Attribute
E_T_ULIST_HIE = "Master Data in Hierarchies
E_T_ULIST_HIE_NODE = "Master Data in Hierarchy Nodes
E_T_ULIST_QUERY = "Master Data in Queries
E_T_ULIST_ODSO = "Master Data in ODS Objects

EXCEPTIONS
ILLEGAL_INPUT = 1 RSDPW_ERROR = 10 IOBJ_ERROR = 2 SID_ERROR = 3 PROGRAM_ERROR = 4 ENQUEUED = 5 QUEUE_ERROR = 6 NO_CHKTAB = 7 CHKTAB_NOT_GENERATED = 8 NO_AUTHORITY = 9
.



IMPORTING Parameters details for RSDMD_DEL_MASTER_DATA

I_IOBJNM - Characteristic

Data type: RSDIOBJ-IOBJNM
Optional: No
Call by Reference: No ( called with pass by value option)

I_WITHOUT_PROTOCOL - No Log for 'X' as to Where What is Being Used

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALLER_MAINTENANCE - provided by maintenance?

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DELETE_ALL - All Master Data Is To Be Deleted

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DELETE_SIDS - SID Table Entries Are to Be Deleted

Data type: RS_BOOL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DELETE_SIDS_ASK - Dialog for Request of Parameter I_FLG_DELETE_SIDS

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DELETE_TEXTS - Delete Texts As Well

Data type: RS_BOOL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T_CHAVL - Table of Values to Be Deleted

Data type: RSD_T_CHAVL
Optional: Yes
Call by Reference: Yes

I_FLG_DIALOG - With Dialog

Data type: RS_BOOL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_FORCE_DELETE - Delete Parts When Everything Cannot Be Deleted

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_SIMULATION - Boolean

Data type: RS_BOOL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSDMD_DEL_MASTER_DATA

E_RESULT - Result

Data type: I
Optional: No
Call by Reference: Yes

E_PROT_OBJECT - Application log: Object name (Application code)

Data type: BALHDRI-OBJECT
Optional: No
Call by Reference: Yes

E_PROT_SUBOBJECT - Application Log: Sub-object

Data type: BALHDRI-SUBOBJECT
Optional: No
Call by Reference: Yes

E_PROT_EXTNUM - Application Log: External number

Data type: BALHDRI-EXTNUMBER
Optional: No
Call by Reference: Yes

E_COUNT_USED -

Data type: I
Optional: No
Call by Reference: Yes

E_T_SIDVAL_USED - Master Data Used

Data type: RRSI_T_VALSID
Optional: No
Call by Reference: Yes

E_T_PROTOCOL - Messages

Data type: RSDMD_T_BALMI
Optional: No
Call by Reference: Yes

E_T_ULIST_DIM - Master Data in Dimensions (InfoCubes)

Data type: RSDDV_T_ULIST_DIM
Optional: No
Call by Reference: Yes

E_T_ULIST_ATR_NAV - Master Data as Navigation Attribute

Data type: RSDDV_T_ULIST_ATR
Optional: No
Call by Reference: Yes

E_T_ULIST_HIE - Master Data in Hierarchies

Data type: RSDDV_T_ULIST_HIE
Optional: No
Call by Reference: Yes

E_T_ULIST_HIE_NODE - Master Data in Hierarchy Nodes

Data type: RSDDV_T_ULIST_HIE_NODE
Optional: No
Call by Reference: Yes

E_T_ULIST_QUERY - Master Data in Queries

Data type: RSDDV_T_ULIST_QUERY
Optional: No
Call by Reference: Yes

E_T_ULIST_ODSO - Master Data in ODS Objects

Data type: RSDDV_T_ULIST_ODSO
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ILLEGAL_INPUT - Incorrect Input

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RSDPW_ERROR -

Data type:
Optional: No
Call by Reference: Yes

IOBJ_ERROR - Error in InfoObject

Data type:
Optional: No
Call by Reference: Yes

SID_ERROR - Error during SID Drag

Data type:
Optional: No
Call by Reference: Yes

PROGRAM_ERROR - Error during Creation of Deletion Program

Data type:
Optional: No
Call by Reference: Yes

ENQUEUED - Master Data or Text Table Already Locked

Data type:
Optional: No
Call by Reference: Yes

QUEUE_ERROR - Error during Locking or Unlocking

Data type:
Optional: No
Call by Reference: Yes

NO_CHKTAB - No Master Data Table Available

Data type:
Optional: No
Call by Reference: Yes

CHKTAB_NOT_GENERATED - The Master Data Table Was Not Generated

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY - No Authorization to Delete Master Data

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDMD_DEL_MASTER_DATA 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_result  TYPE I, "   
lv_i_iobjnm  TYPE RSDIOBJ-IOBJNM, "   
lv_illegal_input  TYPE RSDIOBJ, "   
lv_rsdpw_error  TYPE RSDIOBJ, "   
lv_e_prot_object  TYPE BALHDRI-OBJECT, "   
lv_i_without_protocol  TYPE RS_BOOL, "   ' '
lv_e_prot_subobject  TYPE BALHDRI-SUBOBJECT, "   
lv_i_caller_maintenance  TYPE RS_BOOL, "   ' '
lv_e_prot_extnum  TYPE BALHDRI-EXTNUMBER, "   
lv_e_count_used  TYPE I, "   
lv_iobj_error  TYPE I, "   
lv_e_t_sidval_used  TYPE RRSI_T_VALSID, "   
lv_i_flg_delete_all  TYPE RS_BOOL, "   ' '
lv_sid_error  TYPE RS_BOOL, "   
lv_e_t_protocol  TYPE RSDMD_T_BALMI, "   
lv_i_flg_delete_sids  TYPE RS_BOOL, "   'X'
lv_e_t_ulist_dim  TYPE RSDDV_T_ULIST_DIM, "   
lv_program_error  TYPE RSDDV_T_ULIST_DIM, "   
lv_i_flg_delete_sids_ask  TYPE RS_BOOL, "   ' '
lv_enqueued  TYPE RS_BOOL, "   
lv_e_t_ulist_atr_nav  TYPE RSDDV_T_ULIST_ATR, "   
lv_i_flg_delete_texts  TYPE RS_BOOL, "   'X'
lv_i_t_chavl  TYPE RSD_T_CHAVL, "   
lv_queue_error  TYPE RSD_T_CHAVL, "   
lv_e_t_ulist_hie  TYPE RSDDV_T_ULIST_HIE, "   
lv_no_chktab  TYPE RSDDV_T_ULIST_HIE, "   
lv_i_flg_dialog  TYPE RS_BOOL, "   'X'
lv_e_t_ulist_hie_node  TYPE RSDDV_T_ULIST_HIE_NODE, "   
lv_e_t_ulist_query  TYPE RSDDV_T_ULIST_QUERY, "   
lv_i_flg_force_delete  TYPE RS_BOOL, "   ' '
lv_chktab_not_generated  TYPE RS_BOOL, "   
lv_no_authority  TYPE RS_BOOL, "   
lv_e_t_ulist_odso  TYPE RSDDV_T_ULIST_ODSO, "   
lv_i_flg_simulation  TYPE RS_BOOL. "   ' '

  CALL FUNCTION 'RSDMD_DEL_MASTER_DATA'  "Deleting Master Data
    EXPORTING
         I_IOBJNM = lv_i_iobjnm
         I_WITHOUT_PROTOCOL = lv_i_without_protocol
         I_CALLER_MAINTENANCE = lv_i_caller_maintenance
         I_FLG_DELETE_ALL = lv_i_flg_delete_all
         I_FLG_DELETE_SIDS = lv_i_flg_delete_sids
         I_FLG_DELETE_SIDS_ASK = lv_i_flg_delete_sids_ask
         I_FLG_DELETE_TEXTS = lv_i_flg_delete_texts
         I_T_CHAVL = lv_i_t_chavl
         I_FLG_DIALOG = lv_i_flg_dialog
         I_FLG_FORCE_DELETE = lv_i_flg_force_delete
         I_FLG_SIMULATION = lv_i_flg_simulation
    IMPORTING
         E_RESULT = lv_e_result
         E_PROT_OBJECT = lv_e_prot_object
         E_PROT_SUBOBJECT = lv_e_prot_subobject
         E_PROT_EXTNUM = lv_e_prot_extnum
         E_COUNT_USED = lv_e_count_used
         E_T_SIDVAL_USED = lv_e_t_sidval_used
         E_T_PROTOCOL = lv_e_t_protocol
         E_T_ULIST_DIM = lv_e_t_ulist_dim
         E_T_ULIST_ATR_NAV = lv_e_t_ulist_atr_nav
         E_T_ULIST_HIE = lv_e_t_ulist_hie
         E_T_ULIST_HIE_NODE = lv_e_t_ulist_hie_node
         E_T_ULIST_QUERY = lv_e_t_ulist_query
         E_T_ULIST_ODSO = lv_e_t_ulist_odso
    EXCEPTIONS
        ILLEGAL_INPUT = 1
        RSDPW_ERROR = 10
        IOBJ_ERROR = 2
        SID_ERROR = 3
        PROGRAM_ERROR = 4
        ENQUEUED = 5
        QUEUE_ERROR = 6
        NO_CHKTAB = 7
        CHKTAB_NOT_GENERATED = 8
        NO_AUTHORITY = 9
. " RSDMD_DEL_MASTER_DATA




ABAP code using 7.40 inline data declarations to call FM RSDMD_DEL_MASTER_DATA

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 IOBJNM FROM RSDIOBJ INTO @DATA(ld_i_iobjnm).
 
 
 
"SELECT single OBJECT FROM BALHDRI INTO @DATA(ld_e_prot_object).
 
DATA(ld_i_without_protocol) = ' '.
 
"SELECT single SUBOBJECT FROM BALHDRI INTO @DATA(ld_e_prot_subobject).
 
DATA(ld_i_caller_maintenance) = ' '.
 
"SELECT single EXTNUMBER FROM BALHDRI INTO @DATA(ld_e_prot_extnum).
 
 
 
 
DATA(ld_i_flg_delete_all) = ' '.
 
 
 
DATA(ld_i_flg_delete_sids) = 'X'.
 
 
 
DATA(ld_i_flg_delete_sids_ask) = ' '.
 
 
 
DATA(ld_i_flg_delete_texts) = 'X'.
 
 
 
 
 
DATA(ld_i_flg_dialog) = 'X'.
 
 
 
DATA(ld_i_flg_force_delete) = ' '.
 
 
 
 
DATA(ld_i_flg_simulation) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!