Mass deletion of Save Search

Hi,
I need to delete all saved searches on a specific component.
I have already check on table CRMD_SHORTCUT and I know which ones I shall delete.
But I don't like the idea of deleting directly the registers of that table.
Any FM or report that can be used?
Regards

I did some debuging on that and didn't get  much conclusions coding will be kind of.
identify your searches on CRM_SHORTCUT.
To get guid and type
       guid = iv_shortcut->get_property_as_string( iv_attr_name = 'GUID' ).
       type = iv_shortcut->get_property_as_string( iv_attr_name = 'TYPE' ).
*     Delete the saved search shortcut
       iv_shortcut->delete( ).
*     Clean-up references
       data: referencing_shortcuts type ref to if_bol_entity_col,
             referencing_shortcut type ref to cl_crm_bol_entity.
       referencing_shortcuts =
          me->get_shortcuts_by_reference_key( iv_referenced_key = guid ).
       referencing_shortcut = referencing_shortcuts->get_first( ).
       while referencing_shortcut is not initial.
         me->delete_shortcut( iv_shortcut = referencing_shortcut ).
         referencing_shortcut = referencing_shortcuts->get_next( ).
       ENDWHILE.
Any case still searching for a cleaner solution..

Similar Messages

  • My Contacts app has 100's of duplicate groups, is it possible to mass delete?

    My Contacts app has 100's of duplicate groups, is it possible to mass delete?
    These groups are a legacy of over a decade of mis-syncs (starting with Palm's crappy software, and then multiple simultaneous iTunes syncs). The app is so slow it's useless, and the database problem causes issues with my iOS devices too (a contact can take a over minute to save after editing).
    I can delete the groups, but it takes about two minutes each (multiply that by hundreds )
    I've found several "contacts cleaners" apps, but none remove duplicate groups.
    I'm thinking that I might be able to export the entire database and edit it manually, but I don't know what steps to take.
    Any help would be greatly appreciated.
    Cheers!
    Chas

    Hey Linc,
    Just in case anybody has searched this thread for a similar problem: taking all contacts out of the Contacts app doesn't erase groups: all my thousands of erronous groups remain (and still take up to a minute to delete each one, grrr).
    I've gone into the XML files that make up the contacts database and I painstakingly deleted every file that was one of the offending groups. I thought that that should have solved my problem but, when I replaced all the files in the relevant place in the System, all those thousands of groups were still there in the Contacts app. I'm stumped :-( It could be that the database was repopulated by what was up on iCloud, but in that case I'm not sure how to consolodate everything so that one source propagates to the others (it's all complicated by the fact that my phone hasn't been sharing contacts that were created on it with iCloud, so I can't just erase it). Ahh, gotta love multi-variate problems!
    Thanks again for the help, I do appreciate it.
    Chas

  • Best Practice for Mass Deleting Transactions

    Hi Gurus
    Can you please guide on this - We need to mass delete Leads from the system. I can use Crm_Order_Delete FM. But want to know if there are any best practices to follow, or anything else that i should consider before deleting these transactions from the system.
    We have our archiving policy under discussion which may take some time, but due to large volume of reduntatn data we have some performance issues. For example when searching for leads and using ACE, the system goes through all the lead data.
    That is the reason we are plannign to delete those old records. My concerns is that using CRM_ORDER_DELETE, would it clear all the tables for those deleted transactions and if there are any best practices to follow.
    Thanks in Advance.
    Regards.
    -MP
    Edited by: Mohanpreet Singh on Apr 15, 2010 5:18 PM

    Hi,
    Please go through the AppModel application which is available at: http://developers.sun.com/prodtech/javatools/jscreator/reference/codesamples/sampleapps.html
    The OnePage Table Based example shows exactly how to use deleting multiple rows from a datatable...
    Hope this helps.
    Thanks,
    RK.

  • Mass deletion of vendor

    Dear Gurus,
    I want executing mass deletion of the vendor using XK99 for Vendor (3000) and puchasing organization. for which i hve seleted
    tables: vendor master records purchasing organization data
    fields: del flag. porg (Lfm) = LFM1-LOEVM, but upon selection and save, system is giving error.
    Field LFM1-LOEVM. is not an input field
    Message no. 00347
    Diagnosis
    A transaction is processed using batch input.
    System Response
    The runtime error field xxx occurs (invalid entries)
    Procedure
    Correct the batch input data. Depending on the processing scenario, this can affect either of the following objects:
    Batch input session
    CATT procedure
    Application program
    Kindly help
    REgards,
    Prashanth Pai

    Hi all,
    This thread says its answered. But, the solution is not given. I request the threads starter to kindly put up the solution as I am facing the same problem.
    I don't have this problem in Quality or Development, but only in Production. Also there is no version change in the program of the MASS transaction in any of the three systems.
    Also, will the thread starter post what error message he got on running xk06 for the concerned vendor and purchasing organization?
    Thanks!

  • Mass deletion of variants for Total Records

    Hi there,
    during tranings we create a lot of variants for the Total Records (UCWB->Analysis->Total Records->Save Variant). Is there a way to do a mass deletion of those variants?
    The standard options of deleting variants only allows to delete one variant per selection.
    We work with a SEM BCS EHP 4.
    Thanks for all help,
    Helge

    Helge
    you can do a mass deletion of variants.
    First you will need to find the program name for the Totals Records.  This can be found from the totals records screen when you click the Get Variant button. Across the top of the dialogue box you will see;
    "Variant catelogue for program XXXXXXXXX". 
    Note this program ID.
    Go to TCode SE38
    Key in the program - make sure the Short description for the Program is "List of Totals Records"
    Check the Variants checkbox
    Click on Display
    From the menu - go Variants > Catelogue
    This should give a list of the variants for the Totals Records. If not then you must have the wrong program.
    Click the button which has the picture of the rubbish bin with the words "Selection Criteria".
    This will then allow you to put a check mark against all the variants you want deleted.
    Click the button which has the picture of the rubbish bin with the word "Variant"
    This will then mass delete your variants.
    Regards

  • Mass delete of condition records

    Hi All,
    Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long. Also please advise that if a record is marked for delete indicator, then can it be used again ? or can i reomve it completely becasue i want to upload again with correct prices.
    Appreciate your help
    SAPXPT

    Hi,
    Let's get one by one.
    > Please advise if there is a mass delete function of condition records. I have uploaded prices for customer/material conbination for the month of novemver and i want to delete them all. I can do it one by one but it will take tooooo long.
    There is no such Transaction available to delete those like in MASS.
    Best thing is to use a LSMW with VK12 transaction.
    > Also please advise that if a record is marked for delete indicator, then can it be used again ?
    Yes, You can.
    Once marked for deletion they won't appear in the sales order automatically. Pricing Analysis will show you like this.
    "Condition record has been deleted"
    If you want to use it again go to VK12, and go in to your condition record.
    Highlight the condition line item and press "Details" button (Magnifying Glass)
    Un-tick the "Deletion lndicator" check box.
    Save.
    Then you can use it again as normal way.
    > can i reomve it completely becasue i want to upload again with correct prices.
    Yes, You can.
    You can remove it completely from the data base. First you have to configuret your condition type in IMG to enable that function..
    Go to V/06
    Select you condition record & go in to details.
    There you get a filed called "delete fr. DB"  under "Master data" section.
    Change it to "A with popup" or "B without popup".
    Which means your going to delete it from the data base. (Where as you cannot use it again, like you do in Deletion indicator)
    Save
    Then come to VK12,
    Go in to your condition record.
    Highlight the condition line item and press Delete button from lower area.
    If you set "A with pop up" in the condition record, you'll get a pop up saying,
    "The condition type XXXX is set so that when the deletion indicator is set, the condition record can be physically deleted from the database.Do you want to delete the condition record physically?"
    Once save system will delete it from the data base.
    If you set "B without pop up", system will delete it without a pop up.
    Hope this helps you !
    Best regards,
    Anupa

  • Best Practices to Mass Delete Leads

    Hi Gurus
    Can you please guide on this - We need to mass delete Leads from the system. I can use Crm_Order_Delete FM. But want to know if there are any best practices to follow, or anything else that i should consider before deleting these transactions from the system.
    We have our archiving policy under discussion which may take some time, but due to large volume of reduntatn data we have some performance issues. For example when searching for leads and using ACE, the system goes through all the lead data.
    That is the reason we are plannign to delete those old records. My concerns is that using CRM_ORDER_DELETE, would it clear all the tables for those deleted transactions and if there are any best practices to follow.
    Thanks in Advance.
    Regards.
    -MP

    Hello,
    as the root is single label you could get only rid of it with migrating to a new forest. Therefore you should built a lab first and test the steps. As tool you could use ADMT.
    http://blogs.msmvps.com/mweber/2010/03/25/migrating-active-directory-to-a-new-forest/
    Also you might rethink your design if an empty root is really needed, there is no technical requirement and cost only additional hardware and licenses.
    Keep in mind that the new forest MUST use different domain/NetBios names otherwise you cannot create the required trust for migration steps.
    You can NOT switch a sub domain to the root and vice versa.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Looking for ideas: mass-delete qualified links

    Hello SDNers!
    I'm looking for an innovative idea on how to mass-delete qualified links. I want to delete all the qualified links to a specific non-qualifier from many records at once. Idealy the scenario would be to search on a specific qualifier, and be able to select all records and delete that qualified value from them. Data Manager can't do this, obviously.
    The closest I managed to get was to delete all the values in the qualified link using an import, but that's not enough, I need to delete the links completely.
    Before I turn to the APIs, anyone has an idea?
    Thanks
    Alon

    Alon,
    You should be able to accomplish this with an export and import.
    1. Select the qualified record you want to delete using the search parameters
    2. Export out the records with this qualified field - it should only export out the qualified record that you have selected in your search parameter
    3. Import this file with the Import Manager
    4. Map the qualified table name in the source to the destination
    5. Right click on the destination field name and select "Select Qualified Update > Update"
    6. A new dialog box will appear
    7. For new links select "Skip"
    8. For existing links scroll down and select "Delete"
    9. When the file imports it should delete all instances of that qualified record
    That was a quick explanation. Let me know if you need more detail.
    Regards,
    Tim

  • I can delete my Internet history but I can't delete my words searched in different web sites. Would you like to help me?

    I can delete my Internet history but I can't delete my words searched in different web sites. Would you like to help me?

    Hi Niel,
    There may be a problem with the definition of the rule to delete the characteristic. If you go to transaction RSMRT
    and use the 'check' option to check the rule you created are there any errors for the check?
    If not when you get the error message that you mention is there any additional error messages created in sm21
    or dumps in ST22?
    If not there may be a problem with the consistency of the cube if you goto RSRV>All Elementary tests>Transaction data
    and run these tests for the cubes are there any error messages? If yes please try to use the repair function in RSRV
    to correct any errors.
    If none of the above helps you should delete the run you created, make a dummy change to the cube (e.g add a '.'
    to the description of the cube, save the change and then activate the cube, please then try and create the
    remodelling rule again.
    Best Regards,
    Des.

  • Mass delete scheduling agreement and PIR

    Dear SAP Experts,
    1. My company is first time Run the MRP so i have maintain the material master MRP 1,2,3,4 tab based on the requirement.
        Currently having many old Scheduling agreements / PO is their so i am get the open goods receipt list from ME2L - based on the selection    parameter.
      I have checked the list and note the many scheduling agreement no.
      So what is the for mass delete scheduling agreement / PO ( STO, normal PO,Import PO )
      I have also try MEMASSSA - Mass delete scheduling agreement, i am select the SA item level , Copy the Agreement no, select the deletion indicator, execute and save.
    But after i have seen the list it is not updated the deletion indicator L, it is not working properly.
    Kindly share the another t.code or any other way for mass delete SA / PO 
    Thanks,
    Umapathy

    Dear Uma,
    Please check this thread. may be it can help you.  Mass deletion of PO

  • Mass deleting product specific transportation lanes

    I am trying to use MASSD transaction for mass deletion flag of T lanes. Can someone explain what component and attributes should I enter in selection criteria and components and attributes to be maintained?
    I am doing product u2013 product in u201Cselection criteriau201D
    Product u2013 block indicator in u201Ccomponents and attributes to be maintainedu201D
    When I set fixed value to u201CDu201D and save, itu2019s giving me lot of warning and error messages. I doubt if I am using the right selection criteria
    Example of error messages:
    LANE (Product) : Time-based validities overlap
    LANE (Means of Transport) : The validities of means of transportation XXXXX overlap
    LANE (Product) : Product X does not exist in source location Y
    Thx

    Satyajit,
    I deleted the product from location Y and tried MASSD again, still it shos some errors.
    Main error being
    LANE (Means of Transport) : The validities of means of transportation XXXX overlap
    what does this error mean? I cjhecked the vality for both product specific trans lane and means of transport. they both are same. even if I want to change it in change mode, its greyed out.
    I just checked one more material and it did not show any error message. but when I go check in SCC_TL1, i dont see "D" set for that product. do u know why it did not carry over from massd? Thx

  • Mass Delete of Alternative BOM

    Hi,
    Good day.
    I would just like to verify if there is a transaction code that we could use in order to mass delete the alterantive BOMs of materials.
    Thank you in advance.
    JMTafalla

    Hi Jasmin,
    First of all,
    in Tcode CS28 give variant name and then click on Maintain and then go to next screen.
    In archive variant You need to specify following things by selecting appropriate button :
    1.Control Parameters
    2.Selection Type
    3.BOM Categories for Archiving ( Material BOM, Equipment BOM etc)
    4.Additional Restrictions to the Archived BOMs
    Then you need to save above settings for variant and then excute the same. So you will be able Archive the BOM as per your requirement ( With / Without Deleting BOMs).
    Pls. revert if any doubt and reward if useful.
    Regards,
    Tejas Pujara

  • Physical Inventory documents mass delete and reference in material document

    Dear Experts,
    I have 3 questions,
    1. Is there any option to mass delete physical Inv documents
    2. How can i know if the physical inventory documents are posted  (MI07) or not yet
    3. If i see any material document of mov type 701 or 702, there is no reference of physical Inv Doc # in it. How can i know that this material document is created as a result of which physicl Inv document.
    Appreciate your help
    SAPXPT

    Hi,
    "1. Is there any option to mass delete physical Inv documents"
    Yes You can delete the Physical Inv Documents with MIAD but for that you need to maintain one variant with it and copy all the Document no. in TEXT file paste in the in Archiving Selection's.
    "2. How can i know if the physical inventory documents are posted (MI07) or not yet"
    Please check ISEG table and provide the time Period as search menu so that you can see all the Doc's posted on today's date.
    "3. If i see any material document of mov type 701 or 702, there is no reference of physical Inv Doc # in it. How can i know that this material document is created as a result of which physical Inv document."
    go to MB59 and check the Material documents with respect to Movement type and date. and the difference you will see in MMBE as per the movement used.
    Regards,
    Ninad Kshirsagar

  • Want to mass-delete an object

    I have a 700 page document that has thick rule objects I wish to mass-delete. I am putting them on master pages for consistency and to isolate them to their own layer. The ones I wish to delete are all locked, but are inconsistently positioned.
    The Find/Change dialog provides for finding objects that meet certain criteria, but I see no option to DELETE the found object, just to CHANGE it. I realize there is a certain amount of danger in such an option, but If I were to change the objects to some unique color before subsequently searching on that color and deleting them all, that would be a kind of safety step.
    As a safer alternative to deleting the objects automatically, I would like the option to move these found objects to their own layer, so that I could just delete the entire layer after reviewing what was placed there.
    Can this kind of mass deletion or mass movement to another layer be done?

    OK, here you go—it appears to be necessary to calculate the length with the Pythagorean theorem (distance formula), since InDesign just returns the corners of the bounding box surrounding the stroke.
    Also, for convenience, the commented-out lines print out some information about each rule that is operated on -- you might uncomment them and comment out the .remove() if you want to see what it is going to do first.
    var
        i,
        doc = app.activeDocument,
        rules = doc.graphicLines,
        bounds, length, x, y, g;
    for (i=rules.length-1; i>=0; i--) {
        g = rules[i].geometricBounds;
        x = g[3]-g[1];
        y = g[2]-g[0];
        length = Math.sqrt(x*x+y*y);
        if (rules[i].strokeWeight >= 2 && length > 4) {
            // $.writeln("Found rule "+i+" x "+x+" y "+y+" length "+
            // length+" weight "+rules[i].strokeWeight);
            rules[i].remove();
    strokeWeight appears to give the apparent stroke weight, regardless of whether it was initially set or if the rule was scaled to get there.

  • MASS deletion of materials

    Hi All,
    I have more than 1000 materials to be scrapped. Is there a way to "Flag for deletion" of the materials except LSMW.
    Regards
    SK

    Hi,
    By using either MASS T.Code or by using MM17 T.Code you can set mass deletion flag for materials.
    By using MM06 you can set deletion flag for one material only at a time.
    Goto MASS.
    Enter the object type as "BUS1001".
    Execute.
    Click  on Fields.
    Search for field name "MLGT-LVORM".Select that line and Execute.Enter the material numbers.
    Execute.
    Regards,
    Krishna.

Maybe you are looking for