Easy way to delete registers

Hi,
HI have one dbtable ( field1, kont ) and I want to delete the registers that the vkont is in the internal table itab2(vkont).
I try something like :
delete ZBKPF where HKONT NOT IN (select vkont from itab2).
But it doesnt work. Any easy idea to do this?

Hi!
You can't select data from an internal table, only from DDIC tables.
You can do it like this:
DATA: lv_tabix LIKE sy-tabix.
SELECT * FROM dbtab INTO TABLE it_dbtab.
LOOP AT it_dbtab INTO wa_dbtab.
  MOVE sy-tabix TO lv_tabix.
  READ TABLE itab WITH KEY vkont = wa_dbtab-hkont.
  IF sy-subrc <> 0.   "not found, delete
    DELETE it_dbtab FROM wa_dbtab INDEX lv_tabix.
  ENDIF.
ENDLOOP.
UPDATE dbtab FROM TABLE it_dbtab.
Regards
Tamás
Message was edited by:
        Tamás Nyisztor

Similar Messages

  • HT201302 I have over 1000 photos in my camera roll, and I have saved them to my computer.  Is there an easy way to delete some or all of them to clear out space on my iPhone?

    I have over 1000 photos in my camera roll, and I have saved them to my computer.  Is there an easy way to delete some or all of them to clear out space on my iPhone?

    The quick way is when you imprort them to an app on your computer, usually there is the option to delete everything on the phone that was imported.  If you declined that option, then you have to do it one by one or manualy select in edit mode.

  • If I've downloaded my music to an itunes library from an external hard drive and I have several duplicate songs, is there an easy way to delete the duplicate songs? Or, do I have to go through my entire library song by song to delete duplicates?

    If I've downloaded my music to an itunes library from an external hard drive and I have several duplicate songs, is there an easy way to delete the duplicate songs? Or, do I have to go through my entire library song by song to delete duplicates?

    In iTunes, File>Display Duplicates

  • I have many duplicates of my pictures on iPhoto there an easy way to delete these?

    I have many duplicates of my pictures on iphoto Is there an easy way to delete these, 23,000 pictures would take years to go through.

    Where are you seeing these duplicates?  In the iPhoto window or via the Finder?  If it's the Finder then you don't have true duplicates.  Each photo in iPhoto will have a minimum of two copies often three.  Then there will be additional faces images for each photo. 
    If you truly seeing duplicates while viewing in the iPhoto window there are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates
    However, do not ever remove files from iPhoto using the Finder.  That will corrupt the library.
    OT

  • My itunes library has duplicated all of my music and would take me hours to delete one by one. What is a quick easy way to delete over 2,500 duplicates?

    My itunes library has duplicated all of my music and would take me hours to delete one by one. What is a quick easy way to delete over 2,500 duplicates?

    Apple's official advice is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group of identical tracks to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. This can happen, for example, if you start iTunes with a disconnected external drive, then connect it, reimport from your media folder, then restart iTunes.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background. Please take note of the warning to backup your library before deduping, whether you do so by hand or using my script, in case something goes wrong.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • I there an easy way to delete photes from my iphone I have them all saved to iphoto

    is there an easy way to delete photes from my iphone I have them all saved to iphoto

    Photos in your camera roll? If so, launch Image Capture from your applications folder, connect your phone, highlight all the photos you want to delete, hit the delete key.

  • Is there an easy way to delete complete albums instead of selecting and deleting each single foto?

    I am using an ipad 4 with IOS 8.0.2
    I am using the Standard "Photo" app
    Is there an easy way to delete complete albums instead of selecting and deleting each single photo? I want to reorganize the structure of my Pictures and delete lots of the photos and download new Pictures via iTunes Synchronisation.

    Go to Albums. Tap edit in the upper right corner. Tap the x. Tap done.

  • Easy Way to Delete Duplicates?

    Can someone please tell me if there's an easier way to delete duplicates in my iTunes Library than selecting each of them individually and removing them to the trash? I'm sure there is but I can't seem to get beyond having iTunes show me the duplicates.
    Thanks,
    Beth

    Have a look at Doug's AppleScripts there are a couple of scripts there to help manage duplicates. Search the page for "Corral iTunes Dupes" and "Corral All dupes": Doug's AppleScripts for iTunes
    Doug also has a shareware application called Dupin specifically for managing duplicates, you can get it here: Dupin

  • Easy way to delete a book from a project w/o having to delete subfolders and topics first?

    Using TCS3 on Windows XP.
    One of my books has last minute changes and I would like to delete the book and then reimport the newly revised book. Is there an easy way to do this? I tried deleting from Windows Explorer, but RH just displayed a lot of messages that it was missing from the folder and that all of the topics would be recreated.
    Thanks in advance.

    I suspect it said all the folders would be recreated, not the files. Once you have imported, you must delete in RoboHelp in the same way as any other topic. Otherwise how does the database it maintains know what you are doing?
    If the book is going to change again, maybe linking would be a better option.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Ical Duplicate on iPhone any easy way to delete with out computer?

    any easy way to delte duplicate Ical entries on iPhone without home computer?

    The quick way is when you imprort them to an app on your computer, usually there is the option to delete everything on the phone that was imported.  If you declined that option, then you have to do it one by one or manualy select in edit mode.

  • HT1660 is there an easy way to delete the whole itunes library and and start again. I notice there is only an add file/folder button but no remove facility

    I recently upgraded to the iphone 5 and managed to sort the transition out with little trouble but noticed when I tried to put my music on that Itunes has messed with album info and either it or me has generated several copies of the same albums over the years and it makes it quite dificult to sort it all out before reloading on the phone. To stop the chaos I had hoped to clear the library and start again but cant find a way to do it. I was hoping to sort all my music out in original files and consolidate them into a proper folder. HOw do I do this. I notice there is an add fole and folder button but no take away??? is there an easy way?

    Use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. If you have multiple references to the same files then don't send to the recycle bin. Use my DeDuper script if you don't want to do it by hand. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • An easy way to delete a whole album without having to select it's tracks?

    I have only been using iTunes for the past week after purchasing an iPod Nano, and am used to using Wmp 11. In Wmp 11, if you want to delete an album from your local library or dap, you can just right-click the album art and select 'delete'- job done.
    However, in iTunes, I have found I have to make sure my Artist and Album categories are shown at the top of my track list (by clicking the 'eye' button at the bottom right), select the album so just that albums tracks are displayed, select one of the tracks, then Ctrl+A to highlight all the tracks, then press Del. Is there something I am missing here? I have checked the iTunes help, and can't see any other way of deleting a whole album without having to highlight all the albums tracks.
    Any help would be appreciated.

    Blimey! Why didn't I think of that? Especially as I knew to press the 'Del' key to delete highlighted tracks. I am assuming you can do the same if you want all an artists album collection removed too- highlight the artist and press 'Del'?
    I think what it is, I am just used to right-clicking with Wmp11, and I am not used to using the keyboard for such tasks.
    Thanks for the reply. I know now my question must seem rather silly.

  • Easy way to delete large chunks of audio by entering start and end time?

    I am removing segments from within an audio file. Right now I select the part I want to cut out using the mouse. Is there a way to delete exact portions by entering start and end times? For example, delete the audio from 5:03 to 7:16.
    Is this possible?
    Thanks!

    At the bottom of the track window at the left hand side ( bit above the loops window etc ) is a little slider. Look carefully, it is in line with the left control portion of the tracks at the bottom. Slide far left and see the whole of the song, slide right zooms in ........

  • Is there a quick, easy way to delete all the "lost" songs from my Library?

    OK, I'm storing all my music in my iTunes folder, which I moved to an external HD. In my iTunes Library (within the application itself), there must be thousands of MP3s listed that I no longer have the MP3 files for. Is there a quick way to update the library so that it only lists what music I actually have on my HD? Basically, I want to get rid of all the songs that show up in my library which I no longer have on my HD. Is there any way to do that?
    thanks!

    Thank you for your reply Diane. I'll look into that site. I probably did delete all the files through the finder, but to be honest, I don't know how they all got into my Library to begin with. Is there a way to erase my whole list and then rebuild it based on what files are contained in my iTunes folder? that might be easier.

  • Easy way to Delete errors?

    I've been managing my library of about 3k tracks. I like to make all of the folders organized and am in the slow process of entering all of the information about each track when I can.
    When I moved a folder, iTunes can't find the file so you have to import the file at it's new location. When this is done the player will now have 2 listings of each song (the old files, and now the new)
    My question is... How can I delete the old ones with out having to manually click on each track?
    Any help is appreciated.

    Now you know it's a problem the best way to do things is to delete the tracks from iTunes, move/rename them then reimport. Of course it would be better if you stopped worrying what your files were called & let iTunes manage them, but I'm not about to do that either. Help is at hand however...
    *Adding new items/removing orphans*
    Try iTunes Folder Watch or iTunes Library Updater. Folder Watch is much faster on the adding files front, can be set to run in the background and includes a useful exclusion feature, however it’s really slow at removing orphans. iTLU is better for this although doing it manually after looking at a list of proposed removals generated by Folder Watch is probably faster still. iTLU can also be set to update iTunes when you've used 3rd party tools to change tag info.
    tt2

Maybe you are looking for

  • Why can't I add text in the signature panel in firefox?

    why can't I add text in the signature panel in firefox?  I have adobe acrobat pro XI.  I can open a pdf in acrobat pro and am able to add text to a pdf, but when I open a pdf in firefox, the "add text" option is not available.

  • Socket Programming with TCP

    How do I do the following: From Client1, get the file, divide into packets, send those packets to server. From there client2 will get those packets. So basically, transfer file from client1 to server and then to the client2.

  • How to maintain counter in a for loop

    Hi,    How do we track counter in a loop?Isn't it the way I implemented.? Please suggest. Regards. Solved! Go to Solution. Attachments: for loop counter.jpg ‏219 KB

  • How can i access and assign java xml Document variable in javascript block

    How can i access and assign org.w3c.dom.Document variable in javascript block I tried this xmlDoc = "<%=xmldoc%>"; it is not working plz give me solution. thanx Vidya

  • PNG format

    Would someone in the know like to hesitate a guess, or maybe even know, why the PNG format is not supported in Lightroom other than in the Identity plate? It seem odd because PNG uses ZIP compression which is lossless, and slightly more effective tha