Delete mass master data from db

Hello All,
actually we need to delete several millions of master data from database tables. The only problem is, that a simple "delete from db_table where group_id = 'A' does not work.
Is there any possibility to cluster a delete?
Thank You!
Goliad001

Hi ,
try create program (se38) and schedule in background,
remark * I_T_CHAVL =, i haven't fix the code if i_t_chavl used, but tested the program done well.
hope this helps.
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 =
I_FLG_DIALOG = ''
I_FLG_FORCE_DELETE = 'X'.
I_FLG_SIMULATION = ''
I_WITHOUT_PROTOCOL = ''
endloop
You can use this instead of direct SQL.
Thanks and Regards,
MuraliManohar

Similar Messages

  • Problem with deleting old master Data from 0Material

    Hello, we try to delete the master data from 0Material.
    But we get the message that some data are used and can not be deleted.
    We can see the error message in slg1:
    "Master data 000000000100000007 (SID                                                   7) is used in /BI0/HMATERIAL; is not deleted"
    "Master data R23188 (SID                                                5316) is used in /BI0/D0RT_C071; is not deleted"
    Can we just clear these tables? Is it enough for resolving the problem?
    Thank You.

    Hi,
    no you just can't "clear" these table unless you want to screw your datawarehouse....
    the first message means that the material with SID 7 is used in a hierachy of 0MATERIAL ==> adjust the hierarchy first.
    the second message indicates that the material with SID 5316 is used in the ICube 0RT_C07 and you CANNOT delete master data if it is used in other objects.
    First run RSRV for this dimension in order to see if the DIMID is really used by the fact table. Perform the following test "Entries Not Used in the Dimension of an InfoCube " with your cube and dim.
    if the DIMID is not used then "correct" the error; you'll then be able to delete your SID.
    If the DIMID is used then you'll have to delete your cube data if you really want to delete this material; otherwise you'll have to keep it.
    Finally rerun you master data deletion.
    hope this helps...
    Olivier.
    Edited by: Olivier Cora on Jul 31, 2008 9:07 AM

  • Needs to delete one Master Data from main process chain in development syst

    Hi All,
    Can any one pls suggest how we can delete the master data load from main process chain in development system.
    In the main process chain nearly i am having 52 master data loads in that i required to delete one master data.
    Thnanks in Advance.
    karuna.

    Hi...
    1) go to RSPC1
    2) Give the technical name of the process chain
    3) in the top where we write tcode....there write COPY..and press enter...
    4) then remove the start process and the desired master data loads..
    5) create a new start process with a new variant..if you want to put ant condition you can put it there...
    6) then link the start process with the first process..
    7) activate your process chain...and schedule it as per your require...you can make it immediate run or can scedule it for a particular time...
    Or if you don't want to create anew process chain...then go to the design view of the PC and remove the desired load and again activate it...
    Hope this helps you...
    Regards,
    Debjani...
    Edited by: Debjani  Mukherjee on Sep 4, 2008 4:35 PM

  • Problem deleting Master Data from an InfoObject

    Hello Everyone,
    We have 0MATERIAL infoobject. There was no Master data in the infoobject. Then, i manually entered the data into the InfoObject. After a day, i tried to delete the Master data to load it from R/3. When i tried to delete the Master data from the InfoObject, it shows errors and does not allow me to delete the data. Say, i entered 2 into material column of a record, the error appears like 'Master Data 0000002' (SID   25) is being used in /BI0/DOSH21' and cannot be deleted'. could someone please help me with this. This is a bit urgent. Let me know if you need more information.
    Thanks.

    Hi Sachin:
    Your only hope is if R/3 has the Correct Master Data, it will overwrite your Master Data. But remember for this, the KEYS have to be same because the KEYS can never be deleted in your case.
    E.g., MATERIAL, LOC (is an attribute)
    You inserted:
            000000002, TEXAS
    If, in R/3 there is infact a material with  key 000000002, FLORIDA. THis will overwrite your Record.
    If R/3 doesn't have 000000002, there is not much you can do now.
    Ram Chamarty

  • Approach to deleting master data from BW

    Hi Gurus,
       Is there a way to quicly delete master data from BW? Since the master data object have dependencies with ither objects its taking me forever to go and delete it one by one...i go to the where used list ..delete the contents of the object in the where used list and then some back to delete the contents of the intial object..
    kindly let me know if there is a faster way of  doing it...
    Thanks,
    Nip

    Hi,
    You can use reports:
    RSDRD_DELETE_FACTS
    and
    RSDMD_DEL_BACKGROUND
    Pls chk this links on the same topic:
    Delete Unused Master Data
    Re: Cleanup of Master Data
    Re: Could not delete master data
    Hope it helps.
    Regards
    CSM Reddy

  • Deletion of huge master data from Admin console

    Dear All
    we are using EPM 10 of SP16. By mistake we have loaded wrong md to one of the dimension.
    we are trying to delete master data from a dimension with specific filter on one of the property.
    we are getting the errror  repeatedly...
    "An exception of type 'CX_SY_CONVERSION_CODEPAGE' occurred, that was not caught anywhere in the call hierarchy. It was not handled locally or declared using a RAISING clause."
    "Unhandled Error (HTTP Status:500): Error #1009"
    Steps followed.
    1. Deleted small small amounts of MD [ 100 to 200 at a time]. and then processed. It went fine. but the deleted members came back.
    2. 'CX_SY_CONVERSION_CODEPAGE'  exception while processing dimension : Followed this note and refreshed dimension cache. Even after which we are getting above error and all the deleted md has come back.;
    There are nearly 50,000 records needs to be deleted asap.
    Can somebody please help us...
    thanks
    Prasad

    Hi Prasad,
    I think you have to follow this note, for large volume of master data, 1672453 - BPC 10 NW Unhandled Error (HTTP Status: 500) Error #1009. Unable to Save or Process Master Data
    Regards
         Roberto

  • Mass Master data Upload from MS Excel and JDE into SAP ( ECC 6.0)

    Hi
    We are deciding the best method of uploading 2 million fixed assets Master data from Excel and JDE
    We are following Batch Input (RAALTD001) and Direct Input methods (RAALTD11)
    I am looking for some other efficient alternative for this upload
    Look forward ot hear form you experts !!
    Thanks
    Milind

    hi
    good
    both works not possible simultaneously.
    If you want to do it in two separate task than you can use the GUI_UPLOAD function module to fulfill your requirement.
    thanks
    mrutyun^

  • Deleted User Master Data with SQL Server Management Studio

    Hi All
    I've, recently restored an ECC 6.0 backup onto a test system. In an attempt to quickly delete most of the User Master Data from the source system, I deleted the User ID's from the USR02 table using SQL Management Studio.
    But within Transaction su01, the User ID's that were deleted that way, still show up in the "F4" search. I can select one of those deleted ID's, but get an informational pop up stating that the user does not exist, if I go to display.
    Does anyone know of a quick way to delete these User ID's from the "F4" search pop up?
    The only way I've found so far is to select the User ID, recreate it and then delete it from the su01 transaction. This is going to take me hours.
    Tried to save time, but caused more of a head ache.
    Ken

    Thanks Brian
    Yes, I have done this in the past as well. Although for this instance, I needed to keep about 20 of the 100 + User ID's that were in the system, and was hoping for an easy way to do it.
    In Table USR02, it was easy to pick all, but the 20 and delete. (Sometimes we think we're smarter than we really are I've since spoken to a Security team member and found out about there's a way to do "Mass" changes in transaction su01.
    tcode us01 -> Environment -> Mass changes.
    Ken
    Live - Learn - Laugh

  • Deletion of master data for 0CS_ORDER

    Hello Friends,
    I have a requirement to enhance an IOBJ 0CS_ORDER with Order status values(2 new statues are added). I have done the enhancement part to the extractor in the source system side. Now after replication in BW, to add 2 new IOBJs in CS_ORDER, I need to delete the master data.
    When I try to do this, I get the msg that some master data could not be deleted.
    This is fine as we have transaction data loaded for large no. of objects which has 0CS_ORDER.
    In dev, I have deleted the master data using SE14 for tables P, S , X, T.
    My concern is in Production, I have huge volume of transaction data. To transport the changes, I need to delete master data. But this would require deletion of Transaction data from all IP where CS_ORDER is used.
    If I do so using SE14, and tranport the changes and later load MD to CS_ORDER. Will this cause INCONSISTENCIES?
    What can be other possible ways??
    Please share your opinions.
    Many Thanks,
    VA
    Edited by: Vishwa  Anand on Sep 2, 2010 5:36 PM

    Definitely Yes.
    It will damage all the SID connections earlier which this master data had with the other objects likes transactiona objects (ODS, CUBES etc). Even You can not access the data from the cube or ODS where the navigational attributes are flagged for reading.
    So do not use SE14 for deletion of MD. This is very specific to use.
    You can delete the Master data as long as its not been used in other targets so that you can refill it easily and also there wont be any inconsistencies..
    Hope this is clear for you..

  • 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]

  • How to delete the Hierarchy data from Infoobjects.

    How to delete the Hierarchy data from Infoobjects. In my case I had 300 records in the corresponding table of info object.
    When i was trying to delete the hierarchy data, I am getting error message. "Some master data not deleted". Can any one tell me to delete all these records by using a program.

    Hi
    Go to SE11 and enter the hierarchy table name.
    /BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
    Thanks
    TG

  • Deleting the Master Data is not possible

    hai
    Im loaded the Master Data .
    I want to delete the Master Data. So how can i delete ??
    Im trying to delete Master Data by context menu of the Master InfoObject .But im unable to delete the master data .
    I heard that it is big issue.
    So what can i do for deleting the master data.
    pls tell me
    rizwan

    hai all
    Thanks for quick reply .
    I deleted the data from InfoCube and ODS .
    Im trying to delete the master data attribute data by context menu of master infoobject . But it is says that "Not all master data can be deleted".
    I looked at the help from that message .It says that i need to go SLG1 transaction and then delete like that
    But i dont have authorization for that transaction(SLG1).
    So plese tell me what i ahve to do for deleting the master data .
    txz
    rizwan

  • Delete Customer Master Data OBR2

    Hi
    I'm using LSMW to import data. I would like to delete it afterwards. Transaction OBR2 which is in spro Financial Accounting (New) -> Accounts Receivable And Payable -> Customer Accounts -> Master Data -> Delete Customer master data.
    But it does not delete the sales are segment, it also does not allow me to delete general data if sales segment exists.
    Can anyone please let me know if there is another way around this? Any other way to delete this test data???
    Thanks in advance

    Hi
    Please go through the SAP documentation on how to perform deletion of customer master data.
    This may help you in executing the function correctly.
    <b>Delete Customer Master Data</b>
    In this activity, you delete the master records for customers by using a program. Only use this program in the test phase.
    Note
    The company code for which master records are to be deleted, may not yet be flagged as productive.
    Only master records for accounts which do not have any transaction data may be deleted.
    Requirements
    The general customer master data is only deleted for customers who are not also created as customers in Sales and Distribution.
    Activities
    Delete the master records for the required company codes.
    Additional information
    Refer to the SAPF019 program documentation for further information on the program.
    Deleting Master Data
    Description
    This program deletes master data in Financial Accounting and is designed for preparing the system for productive startup. It deletes:
    •     Customer master data
    •     Vendor master data
    •     G/L account master data
    You can run this program in three different ways:
    1. Deleting general master data (in G/L accounts in one chart of accounts)
    2. Deleting master data dependent on company code
    3. Deleting general master data and master data dependent on company code
    For each deletion run, you can specify whether or not the system should take into account the deletion flag in master records ("Delete per deletion flag only"). If it takes into account deletion flags, it uses the following standard logic:
    Option 1: The "All areas" deletion flag must be set.
    Option 2: The "Specified co. code" deletion flag must be set.
    Option 3: It is sufficient to have the "All areas" deletion flag set.
    Note: Deletion blocks are always checked at general data and company code-dependent data level. If there is a block at company code-dependent data level, then the general data is not deleted either. The deletion block takes precedence over the deletion flag.
    General master data in Financial Accounting can also be used in other SAP applications:
    •     Customer master data in Sales and Distribution
    •     Vendor master data in Purchasing
    •     G/L accounts as primary cost elements in Cost Accounting
    The program deletes the following:
    •     Change documents for master data
    •     SAPscript text files
    •     The following data is deleted for customers:
    o     General master data
    o     Bank details
    o     VAT registration numbers
    o     Addresses
    o     Classifications
    o     Credit management: across control areas
    o     Credit management: centrally
    o     Unloading points
    o     Tax indicators
    o     Contact persons
    o     Licenses
    o     Partner function limit
    o     Shipping data
    o     Master data in the company code
    o     Dunning data
    o     Linked data
    •     The following data is deleted for vendors:
    o     General master data
    o     Bank details
    o     Contact persons
    o     VAT registration numbers
    o     Addresses
    o     Classifications
    o     Master data in the company code
    o     Dunning data
    o     Linked data
    •     The following data is deleted for G/L accounts:
    o     General master data in the chart of accounts
    o     Names in the chart of accounts
    o     Key word list in the chart of accounts
    o     Master data in the company code
    o     Sample accounts, if selected
    For customer and vendor contact persons, the addresses are not determined from central address management until the actual runtime. Therefore differences can arise as to the number of addresses in the detail log between the test run and the update run.
    Automatic worklists for customers and vendors are also deleted with the general master data. Matchcodes are always deleted.
    You may have to fix the number ranges after the program run.
    The system makes changes to the database in the update run only. It will then also write a system log entry for documentation.
    Requirements
    General master data can only be deleted if no other application makes reference to the account. Use the resetting programs from
    •     Sales and Distribution (customer master data)
    •     Purchasing (vendor master data)
    •     Cost Accounting (G/L account master data)
    If you want to delete only general master data, master data dependent on company code cannot have been created in Financial Accounting.
    If you want to delete master data in a test company code, master data dependent on company code cannot have been created in any other company code except the test company code. The productive indicator cannot be set for the company code.
    If a customer or vendor is referenced by another customer or vendor (for example, via fiscal address or alternative payee), you can only delete the referenced master record by deleting the referencing master record at the same time.
    Furthermore, you can only delete master data in Financial Accounting if no transactions have been posted to the corresponding accounts. If there are transaction figures in one of the selected accounts, you have to manually access and run program SAPF020 (reset transaction data from a company code) before you can delete that account.
    Output
    The log lists every table which is processed in the program selection.
    You can also create a detail log for each account type to find out why certain data cannot be deleted. The detail logs show you what other company codes and applications use the data and how customers and vendors are linked to one another.
    Note
    Since deleting or displaying even smaller volumes of data can result in runtime problems, you should run this program as a background job. Currently, the program individually deletes matchcodes for each master record in the database. Several match code IDs refer to each matchcode. This can place a considerable load on the database.
    You cannot delete transaction data in individual accounts.
    Important: The archiving programs in Financial Accounting are designed for the productive system.
    If you are running this deletion program for the first time, then you must start program SAPF047 before deletion in order to generate link information.
    I hope this may be of help to you
    Good Luck
    Hari

  • Delete customer master data

    I want to delete customer master data.There is no transactions posted yet.Also let me know how to archive.

    When i goto OBR2 to delete syatem says LINKS STORED INCOMPLETELY.
    THE MESSAGE SOWN BELOW :
    Links stored incompletely
    Message no. FG166
    Diagnosis
    Customer/vendor links are to be taken into consideration when archiving or deleting customers or vendors. To do this, link data from the database is required which in this case has not yet been put together.
    System Response
    Neither archiving nor deletion was carried out.
    Procedure
    Run program SAPF047 in the background at a time when no customer/vendor changes are being made. This program puts together the link information in table KLPA so that links (for example, specification of an alternative payee or dunning recipient) can be taken into consideration during deletion or archiving. You can find more information in the documentation for SAPF047.
    PLEASE HELP !!!!!

  • I want delete the Master data loads which i have already loaded earlier

    Hi BW Guru's,
    I want delete the Master data loads.
    But i am unable to delete.
    is there any option to delete from RSD1
    Please send steps

    Hi,
    If that master data related ifo is present in cube u cont delete master data.
    In that case u have to delete req in cube then u can delete
    let me know further
    *******Asgin Points if usefull***
    Cheers,
    Satya

Maybe you are looking for

  • Questions about the Program "Renamer4Mac" (file renamer program)

    Does anyone use this program? Or does anyone know of a good program that can be used to rename a large group of files? I have been trying to use this program to get rid of all the ",jpg" and ".doc" and ".ppt" etc, on my files. However, when I use the

  • Network bridging two cable connections. Worth it?

    I tend to be a bit (okay excessively) power hungry. My apartment complex provides a free shared wireless cable connection. I found it to be not reliable with uptime and was forced to get a dedicated cable line for myself. Then I had this thought: whe

  • Windows 7 installation issues (0x8007005)

    I recently added a SSD in the optical bay of my unibody macbook pro and am currently trying to install a fresh copy of Windows 7 Ultimate x64 on it. If I go to run the installer from my Windows 7 installation on my disk drive through the optical driv

  • Javascript - added images display as grey boxes

    I am attempting to add an Image to an InDesign document via a javascript that I am executing via the RunScript() soap method of InDesign Cs4 server.  The script I am using to add an image is something similar to this: var imageFile = File("//c/images

  • Encoding at different bit-rate that preset says?

    Greetings, I've run into a strange issue where Compressor 2 seems to be encoding at a different bit rate than that which I selected. I have a 113min video sequence from FCP 5 that I am trying to encode to Mpeg-2 for a DVD5. I originally went in and s