Skip to Content
0
Former Member
Jan 22, 2007 at 07:37 PM

Delete MasterData

20 Views

Hi BW Experts,

I want to delete master data . So i first deleted all the data in IC's and ODS wherever my infoobject is connected in Data Targets. Still i am not able to delete Master Data and its giving the Msg : Not all master data can be deleted.

I followed previous threads, Edwin suggested to write a program which contains the following code.

REPORT Z_DEL_MASTER .

tables : RSDIOBJ.

select-options:

s_iobj for RSDIOBJ-IOBJNM.

start-of-selection.

loop at s_iobj.

call function 'RSDMD_DEL_MASTER_DATA'

exporting

I_IOBJNM = s_iobj-low

I_FLG_DELETE_ALL = 'X'

I_FLG_DELETE_SIDS = 'X'

  • I_FLG_DELETE_SIDS_ASK

I_FLG_DELETE_TEXTS = 'X'

  • I_T_CHAVL 0 Entries

  • I_FLG_DIALOG = ''

I_FLG_FORCE_DELETE = 'X'.

  • I_FLG_SIMULATION = ''

  • I_WITHOUT_PROTOCOL = ''

endloop.

Where i have to specify my InfoObject name (Ex: 0PLANT ) to delete the data in the above code ? and also pls letme know the other areas to check and guide me the steps.

Points will be awarded.

Thanks,

Abhi.

Message was edited by:

Abhi