Deleting unused master data

Hi All,
We want to delete unused master data. In our case, we need to delete material numbers from infoobject ZVD_MAT that is no longer used.
There is standard SAP program RSDMD_DEL_BACKGROUND to perform this activity.
But the problem is there is huge amount of data in ZVD_MAT and the above program will not give us any information of the material numbers that are deleted.
By using this program, it might happen that new material numbers which are required are deleted. In this case, it will be difficult to refresh ZVD_MAT for those new material numbers.
Can anyone suggest if there is any other way or programs/transactions to check the deleted materials?

Hi,
Try using the program
RSDMDD_DELETE_BATCH
Selective Deletion Using the Report
       1.      Enter report RSDMDD_DELETE_BATCH in ABAP Editor (transaction SE38) and create a variant for it.
       2.      Execute the variant.
       3.      Enter the InfoObject whose master data you want to delete.
       4.      In Filter Data, you can specify which data you want to delete.
       5.      You can specify a deletion mode for the data (parameter P_SMODE).
More information: Deleting Attributes and Texts for a Characteristic
       6.      You can simulate the report before running it (parameter P_SIMUL).
       7.      You can schedule the report in the background. If you want to clear up your master data at regular intervals, you can also integrate the report into a process chain using process type ABAP Program
or you can use function module as well
Check if the function module RSDMD_DEL_MASTER_DATA
Couple of import parameters:
I_IOBJNM -
Give info object name
I_T_CHAVL---Characteristic values
I_FLG_FORCE_DELETE-- to force delete
Use I_FLG_SIMULATION to simulate first and then delete
Thanks and regards
Kiran

Similar Messages

  • Delete unused master data of a characteristic in BW7.30

    Hi
    I try to delete some master data entries in a characteristic.
    Unfortunately I got an error message:
    Lock of master data attributes deletion is set.
    Then BW 7.30 set an entry for the characteristic in the table RSMASD (Lock Table for Master Data Deletion) and I canu2019t delete the master data.
    I try to delete the master data via a job (maintain master data) and manually (select the wrong master data in the table -> delete and save the table), but I get the same error message above.
    I also delete all open lock entries in SM12 and try again, but wonu2019t solve the issue.
    Can someone explain me why BW 7.30 set the master data lock and how I can delete the unused master date of this characteristic?
    Best regards
    Tobias

    Anyone with a solution for this? We have the exact same problem.
    Can the record in RSMASD be deleted?
    I created a new InfoObject and inserted a new masterdata text record. Then I tried to delete it immediatly, and i got the same error. If the object is in RSMASD, it gives a shortdump in ST22. If there's no record in RSMASD, then it gives a error (Lock not set...)
    Category               ABAP Programming Error
    Runtime Errors         SAPSQL_KEYS_NOT_CONVERTIBLE
    ABAP Program           CL_RSDMDD_DELETE==============CP
    Application Component  BW-WHM-DBA
    Date and Time          31.07.2013 15:13:50
    Short text
         Inconvertible key at an Open SQL work area operation.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "CL_RSDMDD_DELETE==============CP" had to be
          terminated because it has
         come across a statement that unfortunately cannot be executed.
    Error analysis
        In the Open SQL work area operation used, the work area in the key part
        must be convertible to a database table.
        For Unicode semantics this means the Unicode fragment views must
        correspond in length to the databse key.
        In non-Unicode systems, both structures must be flat for the length of
        the database key, with the exception of string components. This means
        that the key parts may not contain either references or internal tables.
        In this case the key of the database table has a width of 14 bytes.
    Thanks.

  • To delete unsed master data's in info object

    Hi.,
      Can any one please tell me how to delete unused master data's in an info object.
    Thanks,
    Selva

    Hi,
    Select the info object fro which you want to delet the data. Right clik on the info object and select delet master data. This will delete all the matster data whcih is not used any where in transaction data. The data which is used will not get deletd. Save the data.
    Hope this helps.
    Regards,
    Amol

  • Unused Master Data Display and Deletation

    Hi all,
    To delete any unused master data we have to goto infoobject and execute delete master data.
    Is there any other way to display or delete master data records which is not used anywhere in BW system?
    Because when we are trying to delete master data it is taking long time and lost of resource. Then after also due to other processes are waiting in the system we have to kill that job after 20 to 24 hours.
    Can anybody please guide me through this?
    Regards,
    Rohan Shah

    Hi Rohan,
    You can delete the data in the tables by the way below.(However this is not the ideal approach)
    1. Go to SE14 -> select 'Tables' from Dictionary objects & give table name (e.g. /BI0/SCOMP_CODE) -> Click Edit -> choose the option "Activate and adjust Database" and select "Delete Data".
    On execution, it will delete the data.
    Hope it helps.
    Rgds,
    VA

  • 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 master data of a Customer created in a SALES AREA?

    Hi All,
    I've deleted a Customer (master data) by t.code OBR2. But it exists again in its SALES AREA.
    Could anyone tell me how to delete it in the sales area too?
    Thanks

    Hi,
    I dont think you can delete a customer. you can market it for deletion in XD06.
    for deleting customer master data you have to setup an archiving project.
    Also check the similar thread
    doubt in obr2
    Hope it helps you.
    Regards,
    Sats.

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

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

  • 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

  • Deleting a Master Data InfoSource and Application component

    I am not able to delete a Master Data InfoSource.  I have deleted the attributes.  If I try and double click it says active version not available.  However, I can access from the (text??) icon which is white.
    Thanks

    I have deleted the InfoObject from the InfoObject tab strip.  It still appears in the InfoSources Tab Strip.  If I try Save/Activate I get a dump message there is a problem on the line
    RAISE EXCEPTION TYPE cx_rs_input_invalid
    Thanks

  • How to find record for deleted credit master data?

    Some credit master data been deleted.
    While do SAP has report to show the deleted credit master data? when deleted? and by who?
    Thanks!

    Hi,
    You can find out all the master data tales used in the BW system by
    Tcode : SE11
    Enter as /BIC/P* for master data tables and press F4 which gives list of master data tables currently used in BW system.
    Similarly for Texts  /BIC/T*  and press F4
    Similarly for Hierarchies /BIC/H-* press F4
    and can know the size of the all tables.
    Thanks,
    Gopal

Maybe you are looking for

  • Automatic carryforward only allowed for amount 0

    On 4.7, we are attempting to process a payment for on a FY2007 Purchase order using MIRO. We are now in our FY2009 year but we are receiving the error message FMCF101 - Automatic carryforward is only allowed for amount 0. What could be the cause of t

  • Adobe Photoshop CS3 has stopped working... HELP?

    Everytime I try to make a GIF, and I select the length of the video, and press okay, a box comes out saying: Adobe Photoshop CS3 has stopped working. I've tried the "CTRL-ALT-SHIFT," but it doesn't work! Please help? ): I make a GIF like this: File-I

  • Copy to finder folder by dragging from Aperture

    MacBook Pro,  OS X Mountain Lion (10.8.5), Aperture 3.4.5 i just dragged about 30 pics (at once)  from Aperture to a folder in my documents and about 1/2 (not exactly 1/2) copied with date created as the day the pic was taken and they were full size

  • SSL Certificate for Software LifeCycle Management

    Dear Friends, We have Solution Manger 70 with EhancementPack 1 (Java 7.01 SP4). Trying to configure the Software LifeCycle Management and I am stuck at the first stage i.e. generating SSL SSL Certificate. Here is what I have done and please let me kn

  • Exporting a movie with time code when time code doesn't exist

    Title says it all. I need to export a 150 frame movie from CG rendered frames that contain no time code so that I can find which frames to re-render