cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of Master data failed although there is data

Former Member
0 Kudos

Dear all,

It try to delete Master data with this Function call:


CALL FUNCTION 'RSDMDD_DELETE_MASTER_DATA'
   EXPORTING
     i_iobjnm                  = 'HRCHZBDAT'
*   I_T_CHAVL                 =
    i_flag_delete_all         = rs_c_true
    i_flag_delete_sids        = rs_c_true
    i_flag_dialog             = rs_c_false
*   I_FLAG_DELETE_TEXTS       = RS_C_TRUE
*   I_FLAG_FORCE_DELETE       = RS_C_FALSE
*   I_FLAG_SIMULATION         = RS_C_FALSE
    i_flag_log                = rs_c_false
    i_usage_protocol          = rs_c_false
*   I_SEARCH_MODE             = 'O'
*   I_T_EXPR                  =
*   I_STORAGE_SELECTION       = '*'
* IMPORTING
*   E_PROT_OBJECT             =
*   E_PROT_SUBOBJECT          =
*   E_PROT_EXTNUM             =
*   E_T_MSG                   =
*   E_T_VALSID_USED           =
*   E_RESULT                  =
           .

   CALL FUNCTION 'DB_COMMIT'.

But after running of that function I get the result that there is no master data to delete. I get the same info if I try to click right mouse button on the info object in RSA1 and then delete master data. But if I go to this info object in RSD1 I find data in the P-table and I see it in the maintain dialog (Internet explorer). I can select a row in this dialog and delete the row but why don't this work with this function or with the right mouse button?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

matt
Active Contributor
0 Kudos

First of all, I'd recommend using  RSDMD_DEL_MASTER_DATA instead as it has online documentation.

In I_T_CHAVL you must specify the entries to delete. This parameter has type RSD_T_CHAVL which is a table of strings. For a simple infoobject, it's just the infoobject's value. For compounded you must give the full compound.

E.g. if obj1 (length . with alpha conversion) is compounded with obj2 (length 3) - then if obj2 = ABC and obj1 = 345, the entry must be ABC0000345.

Former Member
0 Kudos

I want to delete all data

matt
Active Contributor
0 Kudos

Nonetheless, try the other function module.

Former Member
0 Kudos

The FM also returns E_RESULT = 3 altought in the Table is one record. This InfoObject is never used. It is only for controlling some abap routines.

matt
Active Contributor
0 Kudos

I use that FM to delete all master data successfully, so I know it can work.

Try running RSDMDD_DELETE_KERNEL directly from SE38 and see what messages you get. You may even have to debug it.It looks to me like there's something odd about your infoobject.

Former Member
0 Kudos

The programm has no output.

matt
Active Contributor
0 Kudos

Next step then: You may even have to debug - it.It looks to me like there's something odd about your infoobject.

If that leads you nowhere, then you'll need to raise a message with SAP.

Former Member
0 Kudos

Yes, sorry, rsrv showed me that there is a missing initial entry. So now it works!

Answers (0)