Delete unused Items by SDK

Dear All,
if a I use the SDK to delete many items never moved, the delete() function will anyway check if the items has never bought or sell in the database ?
Giuseppe

Hi Giuseppe,
Teun is absolutely correct, but keep in mind that the verification will be made only against system forms/objects. If the Item is used in a user form/UDO no verification is performed.
Regards,
Vítor Vieira

Similar Messages

  • Library setting to auto delete unused items?

    First, the library hides itself and will not show. And when
    it does show itself, the delete icon is so far over to the right
    that I have to modify the window size each time I need to delete
    something. Why does it store all this stuff that I don't want. If I
    delete the slide that contained the objects--it means I want it
    deleted. Is there a setting that I can check that tells Captivate
    to delete objects when I delete the slide? It would save me the
    step of accessing the library, finding the trash, and select unused
    items every time I save my file...?

    Hi Giuseppe,
    Teun is absolutely correct, but keep in mind that the verification will be made only against system forms/objects. If the Item is used in a user form/UDO no verification is performed.
    Regards,
    Vítor Vieira

  • Select Unused Items Selects Too Much

    I am attempting to use Select Unused Items to delete unused
    items in my library. I am using Flash Basic 8.0.
    I have objects in my library which are Exported for run time
    sharing. These objects contain textures. Despite the fact that
    these are exported when I do Select Unused Items, it selects many
    of these "Used" textures and deletes them. If I expand the related
    movie clips and then do it again, sometimes it will stop selecting
    those items.
    I have tried "Keep Use Counts Updated". I have also tried
    "Update Use Counts Now". The same results in either case. Why would
    it be unable to maintain my Use Counts accurately?

    Well, it is definitely not working. It seems to not be able
    to tell if an item that is Exported for Runtime Sharing is used or
    not. I know for sure that it is deleting things that it shouldn't
    because:
    a) The swf size changes
    b) On some files it deletes all of the textures just leaving
    behind empty movie clips. Those movie clips are all marked as
    Export for Runtime Sharing.
    c) Some of the items that it selects actually have a Use
    Count greater than zero.
    Though the size of the flash file doesn't matter, the
    complexity does. I have inherited these files and I am trying to
    clean them up so that they will be easier to work with in the long
    run. If I have to clean them up manually it is going to be a lot
    more time consuming.

  • Delete Unused LINE ITEM DIMENSION Entries

    Hi,
    I'm using RSDRD_DIM_REMOVE_UNUSED to remove unused items in the dimesions of a cube. However several of these dimensions are line item dimensions. RSDRD_DIM_REMOVE_UNUSED skips these diemensions. My questions are. Does someone know why? Secondly is there a way to control the size of this dimension?
    Thx Rolf

    Hi,
    A line item dimension does not exist in the database. So the report can not delete the unused entries as there are none.
    Explanations :when you have a single characteristic in a dimension of a cube, this is not worth to generate the Dimension IDs. This would be a copy of the indexes of the master data called SIDs.
    By ticking the box Line Item Dimension, you precise that the indexes for the fact table will not be those generated in the dimension, but those from the master data. This is the reason why we do have indexes for master data.
    To control the size of your dimensions, there is this report : SAP_INFOCUBE_DESIGNS
    Regards

  • Don't understand 'Delete unused media from duplicated items'

    Can anyone help with this?
    I have a large project spanned across 2 drives and want to tidy it all up to a third drive. Using Media Manager (with no specific sequences selected) it says the project size is 350Gb. If I check the 'Delete unused media from duplicated items' box it reduces to 267GB.
    Given that I'm not selecting a particular sequence edit I assume it is aimaing to manage all files. So what is the variation of 84GB. If I opt for the 267GB, what is in the 84GB that I'm about to loose. I haven't duplicated anything so unsure what I'll be losing?

    You won't lose anything if you copy the project with Media Manager. Test the copy afterwards to make sure it is exactly what it should be. Once you are happy with it, the original can be deleted.
    You can make the copy even smaller if you exclude render files. It will have to be re-rendered only if you have to revisit the project at some point. Use the space saved for something else until it is really needed.

  • Delete BOM items via DI API

    hello,,,
    I want to ask can i delete my bom items through DI API.
    Will the changes of addings and deleting of items through DI API(coding n sdk)be reflected in our SBO.

    Dim objBOM As SAPbobsCOM.ProductTrees
    Dim intCnt As Integer
    Dim strCode As String
    Dim objItem As SAPbobsCOM.Items
    Dim objRS As SAPbobsCOM.Recordset
    Dim boolFlag As Boolean
    objItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
                objRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                objRS.DoQuery("Select Code from  OITM ")
                If (objRS.RecordCount > 0) Then
                    For intI = 0 To objRS.RecordCount - 1
                        strCode = objRS.Fields.Item(0).Value
                        boolFlag = objItem.GetByKey(strCode)
                        If boolFlag = True Then
                            lngStatus = objBOM.Remove()
                        End If
                        objRS.MoveNext()
                    Next
                End If
    Note - This code will delete all BOM's.Change the as per u r requirement.

  • Deleting Unused Swatches

    Because I'm unable to invoke the "Select All Unused" menu item of the Swatches panel menu I'm trying to attack it programmatically.
    What I'm trying to determine is if it's sufficient to compare the Fill and Stroke Color of each Path Item (every path item of current document) or are there other items that should be examined to achieve the same results as the command in the Swatches panel menu? Page Items doesn't appear to contain a Fill Color property. I've got AppleScript code that appears to do the trick, but I'd like to get input so as to make sure I'm not missing something that my testing might not have uncovered.
    Thanks!
    Stephan

    Another method might be to remove the extra swatches from the startup files (or New Document Profiles as they are now known) So there are fewer unused swatches to deal with. Relatively few people take the time to modify the action sets aside from adding new ones. Here's how the Delete Unused Panel Items looks in the Default _Actions.aia file
    /action-10 {
        /name (Delete Unused Panel Items)
        /keyIndex 0
        /colorIndex 0
        /isOpen 0
        /eventCount 8
        /event-1 {
            /internalName (ai_plugin_symbol_palette)
            /localizedName (Symbols)
            /isOpen 0
            /isOn 1
            /hasDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette -1
                /type (enumerated)
                /name (Select All Unused)
                /value 12
        /event-2 {
            /internalName (ai_plugin_symbol_palette)
            /localizedName (Symbols)
            /isOpen 0
            /isOn 1
            /hasDialog 1
            /showDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette -1
                /type (enumerated)
                /name (Delete Symbol)
                /value 5
        /event-3 {
            /internalName (ai_plugin_styles)
            /localizedName (Graphic Styles)
            /isOpen 0
            /isOn 1
            /hasDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette 1
                /type (enumerated)
                /name (Select All Unused)
                /value 14
        /event-4 {
            /internalName (ai_plugin_styles)
            /localizedName (Graphic Styles)
            /isOpen 0
            /isOn 1
            /hasDialog 1
            /showDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette 1
                /type (enumerated)
                /name (Delete Style)
                /value 3
        /event-5 {
            /internalName (ai_plugin_brush)
            /localizedName (Brush)
            /isOpen 0
            /isOn 1
            /hasDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette 1
                /type (enumerated)
                /name (Select All Unused)
                /value 8
        /event-6 {
            /internalName (ai_plugin_brush)
            /localizedName (Brush)
            /isOpen 0
            /isOn 1
            /hasDialog 1
            /showDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette 1
                /type (enumerated)
                /name (Delete Brush)
                /value 3
        /event-7 {
            /internalName (ai_plugin_swatches)
            /localizedName (Swatches)
            /isOpen 0
            /isOn 1
            /hasDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette 1
                /type (enumerated)
                /name (Select All Unused)
                /value 11
        /event-8 {
            /internalName (ai_plugin_swatches)
            /localizedName (Swatches)
            /isOpen 0
            /isOn 1
            /hasDialog 1
            /showDialog 0
            /parameterCount 1
            /parameter-1 {
                /key 1835363957
                /showInPalette 1
                /type (enumerated)
                /name (Delete Swatch)
                /value 3

  • Unable to delete unused variables in Captivate 7

    Hi
    I am using CP 7.0.1.237 on a Windows 7 64 bit system.
    While testing few things on a project, I had created some dummy variables and used them in advanced actions. Now, I have deleted those advanced actions and I haven't used them anywhere else. But when I try to delete the associated variables, I am still asked to delete all references to the variable. Is this a bug? Is there a way / workaround to delete them?
    Thanks
    Sreekanth

    No, sorry, only possible in CP8. Finally there is an Unused Items button and an easy way to remove the variables.

  • [CS3][VBS] Delete Unused Swatches ALSO clears Gradient Swatches!

    Hi Folks!
    Heres another weird one. This code deletes unused CMYK swatches properly but also sets the background of some gradient swatches to black.
    myUnusedSwatches = currentdoc.UnusedSwatches.Count
    For myLoop = 1 To myUnusedSwatches
    On Error Resume Next
    Set myUnusedSwatches = currentdoc.UnusedSwatches.Item(1)
    *** I even through this in as a last ditch solution, but it only works sometimes***
    if instr(lcase(currentdoc.unusedswatches.item(1).name), "gradient") = 0 then
    myUnusedSwatches.Delete
    else myUnusedSwatches.Save
    end if
    Next
    Any ideas?

    I think i've gotten to the bottom of this - the designers have been using 'Paper' as a white background for gradients. When a colour swatch with CMYK 0 is used, the script works.
    If TypeName(currentdoc.UnusedSwatches.Item(1)) = "Gradient" Then
    Doesn't work, unfortunately, because its not actually deleting the gradient, its setting its background colour to black; the unused swatch its deleting is actually a color swatch.
    Since there will be a lot of files here set up this way, can you think of any way to work around this? Why does this not happen when you do the same action in the UI ('select all unsused'> 'Delete')?
    Thanks again Ole!
    Adam

  • Deleting Unused Clips?

    Is there a way to delete unused clips not used in a project?  iMovie has that option, but I can't find it in Final Cut Pro X.  Or is there a way to see which clips are used in your project and which are not?

    Witih the project open, click the "Page" button in the lower left of the window. If you mouse over it, the tooltip will tell you it is the "Timeline Index".  When you open it, by defauilt it will list all clips in use with that project.  It will actually show you every "clipped clip".  So if you have trimmed a lot of stuff and have 20 "subclips" of the original clip from the Event Browser, you will see 20 clips of the same name.
    If you have played around in it, perhaps it will show other information.  In that case, just click "clips" at the top and "Video" at the bottom. 
    It is a very useful little window.  If you want to go to a particular clip in the project, just click on it in the Index.
    If you have set up titles, click the "Titles" button at the bottom, and you can go to any title by clicking on it.
    Similarly, if you have set up markers, you can click "tags" at the top of the window and "markers" at the bottom of the window, then click any name and go to the marker.
    A feature I really love is being able to turn markers into "todo" items to remind yourself (for instance) to go back to put in a title, or work on the color correction a bit more, or whatever.
    Anyway.  More information than you asked, but that's the way to tell what clips have been used.
    Unfortunately, having left many things out of FCPX from FCP 7, I guess they felt obligated to leave a few things out of "iMovie Pro" as well, and one of them is that cool colored bar that quickly informed you of what parts of what clips have been used in the project.

  • I have the iPhone 4, and yesterday I synced my photos onto iTunes, but now I have albums on my phone that cannot be deleted, and there is not an option to delete the items in the albums individually... How do I get rid of these unwanted albums? Windows 7

    I have the iPhone 4, and yesterday I synced my photos onto iTunes, but now I have albums on my phone that cannot be deleted, and there is not an option to delete the items in the albums individually... How do I get rid of these unwanted albums? Using Windows 7.

    If you used iTunes to get the photos on the phone, then use the same iTunes and uncheck the music you don't want and do another sync.

  • Hacker problems so I reloaded Snow Leopard. Afterwards, Mac had to delete 798 items. Now looping on 4 items to delete for the past 2 weeks. Can't reboot, reload, or restart. I have to let the battery run down for it to turn off. How to fix this, please?

    I had hacker problems so I reloaded Snow Leopard. Afterwards, Mac had to delete 798 items. Now it is looping on 4 items to delete for the past 2 weeks. I can't reboot, reload, or restart. I have to let the battery run down for it to turn off. I think a big part of the problem is that someon one the internet (the hacker) was mirroring my hard drive. It seems to have locked up my system. I could be wrong about this guess, though. All I do know is that it is now looping on the last 4 iems, and I can't do anything.
    Well, I can get it to turn on, but all it does is continously try to delete the last 4 items. When I try to reload Snow Leopard, it tells me my hard drive is full and that I need to delete items.
    Can anyone help? I am so lost without my Mac. I am back on the PC, and though it works, I'm sure many of you will understand when I say it's just not a Mac.
    Thanks.

    I installed Snow Leopard using my Apple external Superdrive. I followed directions I found on the Apple site. Here is the article info:  Mac OS X v10.6 Snow Leopard: How to Erase and Install  
                     Article HT3910
                     located at: http://support.apple.com/kb/HT3910
    Everything was going smoothly until I got to the reinstall part. I had to choose to reinstall on a hard drive or network drive. I've never used a network drive; just the hard drive. It seems that's where the troubles began. I selected the hard drive. It seemed to go well, and then I got the message that I needed to delete some files because I was out of space. I chose to get rid of my music files, but, there were only 636. I don't know what the rest of the files were. I was using the Secure Empty Trash command.
    That was my first time doing an erase and install. I tried to do it again, but I now get a continuous error telling me that my hard drive is full and I must delete files. Only I can't delete files because 4 files are still being deleted and my computer won't let me stop the process.
    I found out about the hackers mostly by the fact that whenever I used to watch something like Hulu or Netflix, I never had problems with internet connection or speed. Lately, I had internet connection problems. I went in to check my settings for my internet provider and found out the settings had been changed to public and all these extra computers were connected to my network.

  • I tried to delete one item from an email folder, and my computer deleted the whole file. I cant fint it anywhere.

    I tried to delete one item from an email folder, my computer deleted the whole file and I cant find it anywhere. Any ideas?

    lindafromgainesville wrote:
    ...is there a seperate trash for email?
    In Mail, yes -

  • PURCHASE ORDER STATUS :When Deleting ALL ITEMS.

    Hi experts,
    I need  to make purchase order status stay  " Release Compleated " when deleting all items.
    Anyone Know How to do it?
    Or anyone Know how to use BAPI_PO_CHANGE in BAdI : ME_PROCESS_PO_CUST 
    In my project , I use Release Strategy of purchase orders, and there is a case of deleting all items.
    In this situation, purchase order status returns to "Active " and release strategy tab disappears.
    This is our problem.
    I need to make purchase order status stay  " Release Compleated " and prevent  release strategy tab disappearing.
    I tried to update the fields EREKZ(final invoice) and ELIKZ(delivery completed) in
    BAdI : ME_PROCESS_PO_CUST  Method : PROCESS_ITEM using BAPI_PO_CHANGE according to SAP Note 456691.
    But BAPI_PO_CHANGE couldn't update EREKZ because of our customize , and I couldn't find how to use
    BAPI_PO_CHANGE in the BAdI.
    Anyone know solutions to solve this problem?
    Thanks a lot.
    Regards,
    TKD

    Hi,
    please review the following information in SAP Note No. 456691 as
    copied below:
    18. Question:
    When are the header conditions updated if a purchase order item is
    deleted?
    Answer:
    If a purchase order item is deleted, the item is marked as 'statistical'
    (field EKPO-STAPO = X) and the change is reflected in the header
    conditions.
    However, if for the item the final invoice indicator(EKPO-EREKZ) or the
    inward delivery completed indicator (EKPO-ELIKZ) is set, the item is not
    marked as 'statistical' (EKPO-STAPO is not set) and thus the header
    conditions are not updated.
    I hope this helps you
    BR
    Nadia Orlandi

  • 2LIS_02_ITM deleted line items are not reflected in BW

    Hi,
    Our current Data flow 2LIS_02_ITM-->DSO-->CUBE.
    I am analyzing a Invoice, When it is created 01.04.2014 it has got 10 Line Items and all the data is load to BW,Invoice with 10 Line items.
    In ECC I can now see the same Invoice only got 5 line items and from change log I can see 5 line items are deleted on 15.04.2014.These changes are not reflected in BW.In BW invoice data still shows 10 line items.
    If I perform setup table job and ECC RSA3 for that invoice I am getting only 5.
    I believe it’s something to do with 0RECORDMODE,Can you please let me know how to fix this in BW.
    Thanks

    Yes this is a known behavior in case of deltas.
    For Deleted line items Rocancel field will have an entry with R.
    To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
    Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
    Regards,
    AL

Maybe you are looking for

  • "Forgot Password" link doesn't generate an e-mail ...

    Hi, I've been trying for five days to get access to a Skype account I set up but have not used for a few months. I apparently have the password wrong. I've used the "Forgot Password" link on the login page. That link should automatically generate an

  • Loading data from flat file...

    Hello, I am actually experiencing a problem where I cant load data from a flat file into a table. I have actually reverse engineered the flat file into ODI. But the thing is I don't know how to load the data that is reversed into a RDBMS table. Added

  • When watching a rented movie, it just stops and we have to wait for it to reload

    When watching a rented movie, the movie pauses and we have to wait for it to reload.  is there anything that we can do to stop this?

  • HELP:  EL page width

    Is there any way i can get the current width of the page with an EL expression? I'm developing a Fusion Web Application in JDev 11g. I am using an af:panelSplitter, but I want the SplitterPosition to be 50% of the page width. I noticed that SplitterP

  • Work book is not displayed

    Hi Gurus, I have one work book for a query which I find by using where used list option in the query tool bar. However I am unable to go to it .I put the query technical name in the find to get to that work book but I get the message 'work book is no