Delete MasterData

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

Thanks Sudheer,
I checked Where used list. From there only i am trying to delete all T.Data for Info Providers. Still i will check.
Any other suggestions please.
Regards,
Abhi

Similar Messages

  • How to delete masterdata via process-chain

    Hi Specialists,
    I need to delete masterdata which is not used in any cube/osd on a daily base.
    But I cannot find a possibility to do that via the process-chain. There seems only to
    be the option to delete the content of cubes and ods-object, but not of info-objects.
    Could you please gimme some hint?!
    Best regards,
      Marco

    Use function module RSDMD_DEL_MASTER_DATA  in a ABAP program.. then schedule it in process chain..
    Cheers,
    DK
    Giving points is another way to say thanks )

  • Deleting masterdata by program RSDMDD_DELETE_BATCH

    Hi,
    I need to delete the masterdata. I used RSDMDD_DELETE_BATCH to perform the same.
    This program is working fine when i am executing it manually but when using the same program in process  chain ,it is not working.
    Can anyone suggest me how i can proceed further.
    Thanks,
    Priya

    Hi Priya,
    We  also used the  programme  to delete the masters and then load it. But we used a  zprogramme  which  was built on the FM: RSDMD_DEL_MASTER_DATA.
    BELOW IS THE CODE:
    TABLES:RSDIOBJ.
    TYPES:BEGIN OF TY_RSDIOBJ,
             IOBJNM TYPE RSDIOBJNM,
           END OF TY_RSDIOBJ.
    DATA:LT_IOBJNM TYPE TABLE OF TY_RSDIOBJ.
    FIELD-SYMBOLS:<FS_IOBJNM> TYPE TY_RSDIOBJ.
    ******************Selection Screen*********************************
    SELECTION-SCREEN:BEGIN OF BLOCK ZHR WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:S_IOBJNM FOR RSDIOBJ-IOBJNM.
    SELECTION-SCREEN:END OF BLOCK ZHR.
    ******************Start-of-Selection*******************************
    START-OF-SELECTION.
       PERFORM CALL_FUNCTION USING S_IOBJNM.
    END-OF-SELECTION.
    *&      Form  CALL_FUNCTION
    *       text
    *      -->P_S_IOBJNM  text
    FORM CALL_FUNCTION USING P_S_IOBJNM.
       SELECT IOBJNM INTO TABLE LT_IOBJNM
         FROM RSDIOBJ WHERE IOBJNM IN S_IOBJNM.
       IF SY-SUBRC = 0.
          LOOP AT LT_IOBJNM ASSIGNING <FS_IOBJNM>.
            CALL FUNCTION 'RSDMD_DEL_MASTER_DATA'
              EXPORTING
                I_IOBJNM                    = <FS_IOBJNM>-IOBJNM
                I_FLG_DELETE_ALL            = 'X'
                I_FLG_DELETE_SIDS           = 'X'
                I_FLG_DELETE_SIDS_ASK       = ' '
                I_FLG_DELETE_TEXTS          = 'X'
    *          I_T_CHAVL                   =
                I_FLG_DIALOG                = ' '
                I_FLG_FORCE_DELETE          = 'X'.
    *          I_FLG_SIMULATION            = ' '
    *          I_WITHOUT_PROTOCOL          = ' '
    *        IMPORTING
    *          E_RESULT                    =
    *          E_T_SIDVAL_USED             =
    *          E_T_PROTOCOL                =
    *          E_T_ULIST_DIM               =
    *          E_T_ULIST_ATR_NAV           =
    *          E_T_ULIST_HIE               =
    *          E_T_ULIST_HIE_NODE          =
    *          E_T_ULIST_QUERY             =
    *          E_T_ULIST_ODSO              =
    *          E_PROT_OBJECT               =
    *          E_PROT_SUBOBJECT            =
    *          E_PROT_EXTNUM               =
    *        EXCEPTIONS
    *          ILLEGAL_INPUT               = 1
    *          IOBJ_ERROR                  = 2
    *          SID_ERROR                   = 3
    *          PROGRAM_ERROR               = 4
    *          ENQUEUED                    = 5
    *          QUEUE_ERROR                 = 6
    *          NO_CHKTAB                   = 7
    *          CHKTAB_NOT_GENERATED        = 8
    *          NO_AUTHORITY                = 9
    *          RSDPW_ERROR                 = 10
    *          OTHERS                      = 11.
          ENDLOOP.
       ENDIF.
    ENDFORM.                    " CALL_FUNCTION

  • How to delete masterdata

    plz give posting

    HI
    In RSA1, you can right click an InfoObject and select Delete Master Data. The system will prompt you whether the SIDs should be deleted as well or not. You can read the Info on this screen for more details. The system will no tbe able to delete all the master data. It cannot delete the values that are being used in transactional data. You can then look up the Logs with object RSDMD, sub-object MD_DEL for details about usage of the master data.
    Pls do check the link
    Re: Delete master data
    Thanks= Points in SDN
    Sanjeev kumar Hamsala

  • Delete masterdata from two infoobjects which have each other as attribut

    Hello,
    we have the infoobject 0BPARTNER und 0CUSTOMER which have each other within as an attribut.
    0BPARTNER
       Attribute 0CUSTOMER
    0CUSTOMER
       Attribute 0BPARTNER
    Now we want to delete the master data from both of them. But it's not possible the delete in RSA1because of the assignment to each other.
    Can you help me?
    Best regards
    Stefan

    Hi Stefan:
      Do you want to delete ALL the Master Data records from the 2 InfoObjects? In case you need to do this on your DEVELOPMENT environment, then you could use Tcode SE14 to delete the CONTENTS from the SID table, Master Data Table, etc., please be aware that you need to use Tcode SE14 very carefully, because you could also delete the physical tables and not only the contents.
    *Important: Also note that it is not recommended to use SE14 on your PRODUCTION environment, unless you perfectly understand the implications (you would need to reload your DSOs or Cubes).
    Regards,
    Francisco Milán.
    Edited by: Francisco Milan on Jun 15, 2010 10:48 AM

  • Masterdata Not loading !

    Hi,
    i am trying to load masterdata Attributes from Flat file, the problem i have is that infoobject has already some masterdata loaded. and now when i tries to load from FF, its giving me an error about duplicate recoards.
    i tried to delete masterdata . hoping that if i delete existing master data then i can load only what i need and so there are no duplications.
    But, the master data is in use and so i am not able to delete it.
    what is the solution for this ?

    Ok,
    Its still giving me an error..Duplicate REcoards.
    So... I deleted all the requests from PSA, then Changed my .csv file with diff. values so i can find easily if its gets loaded to info object.
    I have "UN - Check "  Allow duplicate in DTp. -
    > this gives me the same Error.." Duplicate Record found "
    Now,  in the error, there are atlest 15 duplicate recoards found error..
    Now, i am sure that my CSV dont have any duplicate records.( If there are 1 duplicate records, then you can miss, but NOT more then 15 )
    IF i check " Allow Duplicate Records " in DTP, it does load all the Attributes value.
    Now, this is How the data is loaded in the Zcustomer .
    Cust ID - Attr 1 - Attr 2
    1000 - A1 - A2
    2000 - B1 - B2
    3000 - C1 - C2.........So ON
    And , now i want to change those A1-A2- B1 B2, so my CSV file is something like this.
    1000,D1,D2
    2000,E1,E2
    3000,F1,F2...................So ON
    There are no duplicate records in CSV files for Sure.
    What am i doing wrong ?

  • Archive BW master data

    Is it possible to archive master data in BW? I don't see any option to archive..
    Alok

    Hi,
    You can delete masterdata (rightklick infoobject -> delete masterdata), but only if there a no referencing records present in any infoprovider. Otherwise the information chain: Fact record -> DIM -> SID gets broken; since when you delete masterdata the corresponding SID table entry gets deleted. The system does not allow this. The deletion run can be time consuming since the system checks this condition for the masterdata to be deleted. I don't think there is an archiving solution for masterdata yet in BW.
    Kind regards, Patrick Rieken.

  • Changing USEREXIT CODE

    Hi All,
    I have an Master data infoobject showing wrong values because of incorrect code in User Exit(CMOD). This Masterdata is accessed in many data targts(Infoobject& Cubes only).
    To get right values I want to change my code at EXIT_SAPLRSAP_02.
    Before I do changes  shall I delete 
    1. cube data
    2. master data 
    Or
    No need to delete any type of data. If it is the case, My Info object and cube contained incorrect data with old code(before change the code)  and will contain with correct data with new code (after change the code).
    Question is:
    After changing and activation exit code,  it atomaticaally maintains the correct data  in all targets?  Or not ? pls clarify?
    Cheers,
    Murali.

    Hi Roberto,
    Thanks for u and Mahantha.
    I think with my new code i will get new values.I don't delete anything my infoproviders contain old and new values.
    I think it's not possible to delete masterdata first, witout deleting cube data because cube is accesiing master data.
    Pls correct me in case of wrong in my assumptions.
    Cheers,
    Murali.

  • Delete all masterdata in BW at once

    At this moment I'm with a customer, where we have to redesign almost all masterdata. But first we have to delete the master data.
    The easiest way of doing this, is by deleting all masterdata of all info-objects (Attributes, Hierachies and Text)at once, instead of deleting info-object after info-object.
    I know that there is no formal way of doing this. Does anybody know a workaround?
    With regards,
    Alex

    HI Alex,
    While it is true that the reason why you cannot delete master data is because of referential integrity checks between MD and data in the infoproviders it should be noted that these are surrogate keys and not the actual key values (ie. customer id, employee #, etc).  Assuming that you are not looking to change these but rather the attributes hanging off of these you can do the following:
    - adjust the /BI0/Q and /BI0/P tables using SE14 (activate and adjust database - drop contents).  This will delete the contents of the time dep and time indep master data tables.
    - do the same for the text tables assuming that you have this
    - you may have to also do this for the navigational attributes tables, again assuming that these have been turned on at the infoobject level.
    - Do NOT touch the /BI0/S table since this provides the link to your infoproviders.
    - reload your master data.
    Cheers,
    Robert Zovic
    Arinso International

  • How to delete a Record in  Masterdata  and its Child Tables

    Hi ,
    i want to delete a  record in masterdata and its childtable .
    I am using generalservices.But it  gets error "Attempt to read or write protected memory"
    If there is another solution to delete records in all child tables.
    Edited by: tharunireddy on Aug 13, 2010 3:08 PM

    Hi,
    There must be something wrong with your code.
    Please post it here so we can determine the problem and present a solution.
    Regards,
    Vítor Vieira

  • How to delete the Masterdata existing Contents

    Hi Experts,
    I have some problem with Masterdata double records.
    In my Customer Master have double records which is first record have only chanle & country rest of the attributes are empty.
    in Second recard having with all attributes. When i display in the report it's taking only first record only.
    I want to delete the first record.
    can you pls suggest someone.
    Siri

    HI Siri,
    I hope this post helps you
    Deleting a record from Master data
    Regards,
    Rajkandula

  • Deleting UDO Masterdata doesn't delete ChildTables

    Hi there
    Just recognised when clicking "remove" on my Master UDO with linked Childs it just deletes the masterdata and leave the childs. This produces orphaned childs.
    But maybe i'm just doing something wrong?
    Thanks

    Hi Curtis
    Yes i can. had to implement it myself:
              private void AddLine()
                   if (contextMtx != null) {
                        string dataSourceName = contextMtx.Columns.Item(0).DataBind.TableName;
                        if (dataSourceName != "") {
                             SAPbouiCOM.Form form = (SAPbouiCOM.Form) application.Forms.ActiveForm;
                             form.DataSources.DBDataSources.Item(dataSourceName).Clear();
                             contextRow = contextMtx.RowCount;
                             contextMtx.AddRow(1,contextRow+1);
                             ClickFirstColumn();
              private void DelLine()
                   if (contextMtx != null) {
                        string dataSourceName = contextMtx.Columns.Item(0).DataBind.TableName;
                        if (dataSourceName != "") {
                             SAPbouiCOM.Form form = (SAPbouiCOM.Form) application.Forms.ActiveForm;
                             form.DataSources.DBDataSources.Item(dataSourceName).Clear();
                             contextMtx.DeleteRow(contextRow);
                             form.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE;
              private void ClickFirstColumn()
                   foreach (SAPbouiCOM.Column col in contextMtx.Columns) {
                        if (col.Editable && col.Visible && col.Width>0) {
                             col.Cells.Item(contextRow+1).Click(SAPbouiCOM.BoCellClickType.ct_Regular,0);
                             break;
    Greets

  • How to mapp in UDF column of MasterData  &  Master Data Rows  UDO add time?

    Hi   all ,
      I have one MasterData(A) & 3 MasterData Rows(B&C) table
        A (Code ,Name ,U_SKU,U_AName,U_AID)      Master table
        B(Code ,Name ,U_SKU,U_BName,U_BID)        Child table
        C(Code ,Name ,U_SKU,U_CName,U_CID)        Child table
       Now tables are automatic Mapped with  Code  UDO Creation time but i want  to mapping with U_SKU  column
       please help  how to mapp MasterData(A) and  3 MasterData Rows(B&C) table with UDF Column
    Thanks in Advance
        Surajit kundu

    in the start routine of transformation from 0MAT_SALES_ATTR to znewmat do the following:
    select materials from /BIC/PZNEWMAT into i_mat
    for all entries in source_package where material eq source_package-material.
    loop at source_package.
    p_ind = sy-tabix.
    read table i_mat with key material = source_package-material.
    if sy-subrc ne 0.
    delete i_mat index p_ind.
    endif.
    this way you'll only update records that have previously been loaded by 0MATERIAL_ATTR DS
    loading sequence:
    first load ZNEWMAT from 0MATERIAL_ATTR. then activate ZNEWMAT. then load 0MAT_SALES_ATTR to ZNEWMAT.
    M.

  • Deletion of master data with / without SID

    Hi Experts,
    Client have requested for master data clean up.
    Requirement:
    "Several masterdata tables in Production system contain wrong entries. These entries should be cleaned up. The attached Excel contains the keys of the entries to be deleted"
    Steps to be taken:
    1. emptied/deleted content of all the cube.
    2. delete data from master data
    Help required:
    What will be impact of deleting master data with SID when DSO data is not deleted.
    What if i choose without SID option for deletiing master data
    Regards
    Suresh Kumar

    Hi Suresh,
    Deleting master data is one critical job and ned to be very care ful.
    First try to find out the where used list of that particular IO. delete data from all the CUBEs and DSOs. i don't think without deleting the transaction data from all the objects that you see from where used list, you will be able to delete the maste data.
    System doesn't allow you, it will say "Not all selected data is deleted" Some message of this sort when you try deleting the master data.
    If you are deleting the TD and  master data, why do you need the SID to be spared, delete them too. next time you load the correct master data. the SIDs are again generated.
    Go thru the below thread, this gives you lot if info on MD deletion.
    [Re: SID Tables]

  • BPC 7.5NW : How to delete all data in application

    Hi,
    I need to delete transactional data in an planning application. I've run a "clear" and I clears all the data, but unfortunately, it's "only a delta" delete. So there are still several datapackage request in my application. Of course the sum is zero, but there are still lot's of data.
    How to I do a full delete af all transactional data and request ?
    i need this in order to delete all masterdata and reload it.
    Thank you,
    Joergen Dalby

    Hi,
    Easiest way of complete deletion of transactional data from application is from back end.
    Login into back end(BPC BW) via logon pad
      --Goto tcode RSA1 and click on infoproviders tab
       --Search for Application (from where you want to delete data)
       --Select the application and change from planning mode to data load mode from context menu
       --Select delete data from context menu
         --Select No to keep dimension data
       --Once data deleted from application(infocube) change back planing mode(from context menu)
    hope it works..
    regards,
    Raju

Maybe you are looking for