DIsplaying duplicate entries

Hi,
I hav an intrenal table y_itab .
i need to find out whether it has any duplicate entries , if ther are then display that record r else process .
Plz provide me some logic for this .
Thanks.

Hi,
DELETE - duplicates
Syntax
... ADJACENT DUPLICATES FROM itab
[COMPARING { comp1 comp2 ...}|{ALL FIELDS}]... .
Addition:
... COMPARING {comp1 comp2 ...}|{ALL FIELDS}
Effect
With these additions, the statement DELETE deletes all lines in certain groups of lines, except for the first line of the group. These are groups of lines that follow one another and have the same content in certain components. If the addition COMPARING is not specified, the groups are determined by the content of the key fields.
Lines are considered to be doubled if the content of neighboring lines is the same in the components examined. In the case of several double lines following one another, all the lines - except for the first - are deleted.
Addition
... COMPARING {comp1 comp2 ...}|{ALL FIELDS}
Effect
If the addition COMPARING is specified, the groups are determined either by the content of the specified components comp1 comp2 ... or the content of all components ALL FIELDS. The specification of individual components comp is made as described in the section Specification of Components. Access to class attributes is possible through the object component selector only as of Release 6.10.
Example
Deleting all multiple-occurring lines in the internal table connection_tab. The result of this exanple corresponds to the one in the example for the position specification for INSERT.
DATA: BEGIN OF connection,
cityfrom TYPE spfli-cityfrom,
cityto TYPE spfli-cityto,
distid TYPE spfli-distid,
distance TYPE spfli-distance,
END OF connection.
DATA connection_tab LIKE SORTED TABLE OF connection
WITH NON-UNIQUE KEY cityfrom cityto
distid distance.
SELECT cityfrom cityto distid distance
FROM spfli
INTO TABLE connection_tab.
DELETE ADJACENT DUPLICATES FROM connection_tab.
Regards,
Priyanka.

Similar Messages

  • Office 2010 Displaying Duplicate Entries of the Same Printer

    Hi,
    Looking for some guidance on how to resolve this odd behavior we're seeing in Office 2010.  In each Office 2010 app, when you go to File > Print, we find that certain printer objects are duplicated.  I'm able to repro this problem which
    has been reported by some of our business users.  In my case, one of the printers shows a status of "Ready", while the other shows an unending status of "Connecting to printer...".  I have removed this printer object and associated
    drivers a couple of times and re-installed but every time I load Word, Excel, etc., the printer is listed twice in the printer list.  Just focusing on MS Word 2010, I've tried deleting Word's "data" key, renaming Normal.dotm, but I can't get
    these bad printer entries to disappear.  I've tried connecting to different printers but the result is the same.  The only common thread with this is that the printers that appear as duplicates are all network printers.  I don't have a problem
    with the send-to-onenote printer, Adobe printer or other local printers.  Anyone else seen this behavior?
    Thanks,
    Doug
    Douglas Cote

    Hi,
    Was it normal when you print PDF document and Text document with these network printers?
    Please try this:
    Printer must be off. Right click on printer icon. Delete device. Both instances will be deleted. Turn on printer. New device found. Installed device driver.
    This behavior can occur if a serial number is not stored in the printer's read-only memory (ROM). When this occurs, the bus cannot determine if the printer you reconnect
    is the same printer or a different one. As a result, a duplicate printer is added.
    Please contact the printer manufacturer to inquire about the availability of updated USB firmware.
    Karen Hu
    TechNet Community Support

  • Duplicate entries in iTunes display, but both entries point to the same physical location.

    I've seen lots of discussion about how to remove duplicate copies of the same song, but my issue is different.
    iTunes has duplicate entries in its database, but if I do show in finder, then both entries point to the same physical location.
    If I delete one entry, then the other entry becomes unusable.
    Any idea how I could clean this up? Its annoying because if I select an album to play, then each song gets played twice.

    @zoo_bink I too have exactly the same issue however it's not affecting all my files.
    One solution, which I'm contemplating, is to backup the iTunes Media folder, delete files, uninstall/reinstall iTunes then re-import the files. The issue may have arisen during initial import. (I'm not sure at this stage if Apple allow iTunes to be uninstalled.)
    iTunes music collection is showing 58.95GB versus 57.11GB in Finder so it's not a massive deal but annoying nonetheless as deleting entries isn't an option.
    Any suggestions welcome.
    MacBook Pro, OS X 10.9.1, iTunes 11.1.3 (8)

  • Missing and duplicate entries in the calendar

    I'm a long time (1997) Palm user who's moved to a BB 8330 last month. I can't seem to get calendar syncing to work correctly. In some instances, I am missing items on Outlook. I often have duplicate entries on the handheld. I've searched the forums and there seem to be similar issues and the solutions appear to be around Service Books, but I'm not confident I have a clue how not to lose lots of info.I also cannot seem to find information that explains the relationship between email addresses & calendar (I don't see why there should be any!!!)
    Scenario (trying to answer up front the questions from other forum posts):
    I am using Outlook on my home computer to manage my personal calendar. I do not have an email account associated with Outlook.I have set up 2-way sync with Outlook for calendar, tasks & contacts
    My work uses Lotus Notes. I have set up one sync to the handheld only from the Lotus Notes calendar
    The only email account configured on the BB is a gmail account (which is not associated with either calendar). I originally set this up via the wizard, then removed it, but added it back (under Email settings) when I discovered I couldn't send email from the Address book without it. I actually prefer google mobile for email management since it modifies the server state as well. Not sure if the add/remove/add sequence has somehow messed up the calendar?
    I have checked under Calendar > Options and two calendars appear. Based on the color associations it appears that Device Default is associated with Outlook personal calendar & my gmail account is associated with the Lotus Notes calendar entries. As far as I know I did not create these associations. 
    Checking under Options > Advanced Options > Default Services, I see CICAL & CMIME entry and those are both the gmail account.
    Checking under Options > Advanced Options > Service Book, I see only one CICAL & CMIME entry and those are both the gmail account.
    Separately, I do have a couple of mobile apps to read email (gmail- same acct - and yahoo), but those appear to not integrate into the BB apps directly. 
    Everytime I sync with Outlook, I end up with lots of duplicate entries on the handheld. I have also noticed that I am missing entries that are on the handheld, but are not on Outlook (in one very odd case, the entry was created on Outlook and now only exists on the handheld). I may have deleted duplicate entries related to the missing items at one time... I can't be sure about that. I believe I currently have a complete calendar on the handheld, but not 100% confident I have a good calendar anywhere. 
    And as an aside, have to say I'm really bummed that I have lost easy access all my Palm historical data. It appears BB will not bring in old calendar data by design (found that in some BB documentation on their site).  Now that I will not keep up with Palm upgrades, at some point I will lose access to that data. Sigh. 
    Any, all help appreciated.  

    Hello...correction:
    RaviStrs wrote:
    Ok. In that case, try this. (That worked for me when I had similar problem. Ignore if you already tried this)
    1) Turn off the phone
    2) Remove the battary and place it again
    3) Restart your phone
    Have the BB ON (e.g., something showing on the display, the HomeScreen would be fine) when you remove the battery. That is the cleanest hard reboot method.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT2905 iTunes 11 has no "Display Duplicates" ?

    I have upgraded to  iTunes 11 and cannot find "Display Duplicates" under File or anywhere else.  Anyone know where it has been relocated?

    The show duplicates/show exact duplicates features have been left out of iTunes 11.0. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library. Note that, as with the iTunes feature, this list makes no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicate copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • HT2905 How do you display duplicates in iTunes 11?  I cannot find it.

    I downloaded the latest iTunes version, 11, and now can't find "display duplicates" anywhere.

    Note that, as with the iTunes feature, this lists make no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicates copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • HT1386 HOW DO YOU DISPLAY DUPLICATES IN PLAYLISTS?

    How do you display duplicates on the playlist with the new itunes format?

    Note that, as with the iTunes feature, this lists make no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicates copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • Duplicate entries in calendar

    I have an entry in my calendar on iPhone for Sunday 13 April marked as Easter Monday. Of course Easter Monday is not until mon 21 Aoril.
    I don't have any way of deleting the entry.
    There are also five duplicate entries on my iPad, same as above.
    They display calendar Holiday[[email protected]]
    Can anyone please advise how I can correct the entries.

    Yeah thats a bad deal there.  Unfortunately the only way to remove these dupes is manually before you do anymore hotsyncing.  I suggest doing that through Outlook since its much faster.  After completion, set your Outlook Calendar conduit to Desktop Overwrites Handheld and hotsync your device.  That should put an end to the replication.  You could still try Slapstick app which removes dupes from Outlook and then sync with Desktop Overwrites Handheld for the Calendar conduit.
    Post relates to: Treo 650 (Unlocked GSM)

  • Duplicate entries in calendar and contacts

    I have many duplicate entries in my calendar and my contacts.  Deleting each one on my Z10 is very time consuming.  Is there a way to do this more efficiently, such as viewing the calendar and the contacts as a file on my computer, where editing would be much easier?

    Ok you can try one thing first, less invasive to see if it clears one set of contacts.
    Open your contacts
    Swipe down from the top edge > Settings.
    Scroll down and turn off each of the various contact accounts.
    tap BACK at lower left and now view your contacts.
    All that should be left are the "local" contacts. Do you see any, and are they the contacts duplicated?
    If so, then close all that and return to your main homescreen.
    To clear the local calendar or contact database on the BlackBerry 10 smartphone, complete the following steps:
    Swipe down from the top bezel on the home screen, and select Settings.
    Select Accounts.
    Tap the action menu button (3 vertical dots) on the bottom-right. 
    Select Clear Local Contacts or Clear Local Calendar.
    Now, view your contacts app again. Make sure the ALL TAB is displayed at lower left.
    Scroll through and check for duplicates.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Duplicate entries / Employee is appearing twice in report (OR more than onc

    Duplicate entries / Employee is appearing twice in report (OR more than once)
    When I hire an employee, I assign the position, and based on the positions other values get defaulted /assigned to that employee.
    I have one case where employee has been assigned to one position, but with different position descriptions, and in report it is showing duplicate entries for the same personnel number, now client need for one personnel number only one row to display in report
    Also I tries to run , Birthday list standard report , it is also showing 2 entries (Or sometime more than 2)for the same personnel number , May I know why this is happening?
    And how to fix this bug
    Thanks and Regards
    Jaydeep Jadhav

    Hi,
    Can you check where the code is written to get employees from position, there may be two cases where multiple records exists for single person.
    1) When getting data for pernr assigning to a position they may missed out date condition. If so we need to bring only active positions assigned to that employee.
    2) There may be multiple positions assigned to a single person. In this case you need to ask the client what you need to do.
    Delete adjacent duplicate is may  not be correct solution as which position we need to delete is not sure. You check above two cases and go head.
    Hope this information will help you.
    Regards,
    Narendra.Soma

  • Duplicate entry check in Tb control with 6 same fields

    actualy i have made a table control with six same fields.
    batch1      batch2     batch3    batch4        batch5           batch6
    the data type of all fields is same.
    i want to assign a check for duplicate entries.
    the value entered in batch1 (say bgp000001). then it cannot be entered in any row or column of table control.that means this value bgp000001 cannot be entered again in entire table control.
    although i have been able to create a validation for table control current line.
    In PAI
    loop at i_packcase.
    FIELD I_PACKCASE-batch1 MODULE CHECK_CRTNO1_0107.
        FIELD I_PACKCASE-batch2 MODULE CHECK_CRTNO2_0107.
        FIELD I_PACKCASE-batch3 MODULE CHECK_CRTNO3_0107.
        FIELD I_PACKCASE-batch4 MODULE CHECK_CRTNO4_0107.
        FIELD I_PACKCASE-batch5 MODULE CHECK_CRTNO5_0107.
        FIELD I_PACKCASE-batch6 MODULE CHECK_CRTNO6_0107 .
    endloop.
    corresponding modules are coded as below:
    there is no check in field-batch1( as this is the first entry in table contrl)
    module check_crtno2_0107 input.
    if i_packcase-batch2 eq i_packcase-batch1.
       message v_duplicate type 'E' display like 'I'.
    endif.
    endmodule.
    module check_crtno3_0107 input.
    if i_packcase-batch3 eq i_packcase-batch2
            or i_packcase-batch3 eq i_packcase-batch1.
            concatenate 'CASE'  i_packcase-batch3
            ' ALREADY ENTERED' into v_duplicate.
            message v_duplicate type 'E' display like 'I'.
    endif.
    endmodule.
    similarly field-batch6 is checked against all previous 5 fields
    this works only for current line of table control.
    *now i want to extend this check to all lines of table control.

    Hi,
    Save the entries of each row and column into an internal table containing one field (fieldx)  the required data type. Delete adjacaent duplicates for the internal table. If successful, give error message as required.
    Loop at i_packcase.
    itab-fieldx = i_packcase-batch1.
    append itab.
    itab-fieldx = i_packcase-batch2.
    append itab.
    itab-fieldx = i_packcase-batch3.
    append itab.
    itab-fieldx = i_packcase-batch4.
    append itab.
    itab-fieldx = i_packcase-batch5.
    append itab.
    itab-fieldx = i_packcase-batch6.
    append itab.
    endloop.
    delete adjacent duplicates from itab comparing fieldx.
    if sy-subrc eq 0.
    ****appropriate error message****
    endif.
    Regards,
    Konda Sravanthi.

  • HT2905 What happened to the "Display Duplicates" in iTunes 11?

    Just updated to iTunes 11 and thought I'd do a little cleaning up.  But I can't find the File > Display Duplicates or better yet, the File > Display Exact Duplicates.  Is it gone?  Or is there now a different (hopefullly better!) way to get rid of duplicates in iTunes 11? 

    The show duplicates/show exact duplicates features have been left out of iTunes 11. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library. Note that, as with the iTunes feature, this list makes no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicate copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning tobackup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice tobackup applies.
    tt2

  • HT2905 "Display Duplicates" in iTunes 11

    There doesn't seem to be a "Display Duplicates" item under Files in iTunes 11.  Anyone know where it might be found?  I love it when they change versions but don't change the Help answers.

    Note that, as with the iTunes feature, this lists make no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicates copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • HT2905 How do I display duplicates on the newest version of itunes?.help says its under file, but it is no longer there!

    How do I display duplicates on the newest version of itunes?.help says its under file, but it is no longer there!

    The show duplicates/show exact duplicates features have been left out of iTunes 11.0. Rumor suggests they will be restored in the next build. In the meantime I have written two Windows scripts to make playlists of Duplicates and Exact Duplicates, either from a selection of tracks or the entire library. Note that, as with the iTunes feature, this list makes no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicate copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • ABAP Querry Duplicate entries

    I have an ABAP querry which was created using SQ01 that display some vendor, invoice and PO information. When I Execute this Querry it brings up all entries for different line items in the PO for an Invoice related to a vendor. As I am not displaying the line item information in the final output this result in duplicate entries which give the same information.
      Is there a way to avoid these duplicate entries??
    Any input is highly appreciated.
    Thanks

    Hi,
    Please check
    the join conditions for the query in SQ02. Inner Joint or Outer joint as per your requirement and the join should be made with the correct fields
    if the join conditions are fine, it means that there is no sufficient input in order to filter and get your output
    Suppose if you want to code, you can insert the code for each output field.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jun 3, 2008 6:13 PM

Maybe you are looking for

  • Barcode Font not available in PDF after adding to Font Management

    Hello CF experts, I need to use a barcode font in a PDF document. I installed the font in Font Management, but nothing happens when I attempt to use it. I've tried to use it both in and out of PDF's, and it doesn't work either way. It does work in no

  • Episodes (some) of a podcast series "not compatible with this iPad"

    Lots of questions on here about this topic but didn't find the answer to my question. I download and listen and sometimes view iPad Today from TWIT TV. Lately, I have an error message that "Episode xxx of Ipad Today is not compatible with thisiPad".

  • PQAh ad hoc query

    Hi all, I need to know is it possible that i can draw Om report from ad hoc query the way we get PA report. If yes, then how should i get the OM infotypes to appear in SQ01, suery selection? Regards Aryan

  • Oracle Error ORA 03123 (operation would block)

    I get this error when I try to access data from a oracle sql clientt software tools sqldeveloper and TOAD The strange thing is if I use Oracle SQL*plus, it works fine. This problem will be occuring only in VIS Oracle EBS R12.1 database 11.1.0.7. In t

  • Unable to reinstall Microsoft Office 2008

    The Genius Bar reinstalled my operating system (Mavericks).  I have been unable to reinstall Microsoft Office 2008 for Mac.  It doesn't seem to even be able to read the CD.  Should I be able to install Microsoft Office 2008 or will I be forced to upg