Table Search Help to Remove Duplicate Entry

Hi All Tha ABAP GURUS,
I have created 2 tables say A with fields main description and sub decription and another table B in which there are these 2 fields with other fields. I want to display search help for Table B for fields main description and sub decription separately and I have done the same by creating Elementary Search Help (ZDS and ZDM resp.) . For sub description it is working fine and for main description it is displaying value but duplicate. How to remove these duplicate values.
For Eg Values are
Main Desc   Sub Desc
1                   A
1                   B
1                   C
2                   D
2                   E
In my case it is showing
1
1
1
2
2
but I want
1
2
I want to achieve this without creating any ZProg. Can I use search help exit.Kindly guide me in this matter how to use it.
Thanks & Regards,
Bharti Jain

Yes you can delete duplicates in a search help exit, but not without "without creating any ZProg" as you will create a Function Module (and Group)
Duplicate the sample FM F4IF_SHLP_EXIT_EXAMPLE in a customer function group, and delete duplicate records of RECORD_TAB in the step 'DISP' (executed before display).
You could also perform the select yourself adding a DISTINCT option to the statement in the 'SELECT' step but this will take more time to develop, as you must read the other parameters to use selections provided by user or program.
Regards
Raymond,

Similar Messages

  • Help required on mapping to remove duplicate entries

    Hi all experts,
    I need some help in mapping. I am new to this tool. How would I remove duplicate entries in source payload? My structure is as follows
    Message Structure
    <List> 1-1
    <ParentNode> 0-unbounded
    <Child1> 0-1
    <Child2> 0-1
    Source:
    <List>
         <ParentNode>
              <Child1>PK1</Child1>
              <Child2>SomeValue1</Child2>
         </ParentNode>
         <ParentNode>
              <Child1>PK1</Child1>
              <Child2>SomeValue1</Child2>
         </ParentNode>
         <ParentNode>
              <Child1>PK2</Child1>
              <Child2>SomeValue2</Child2>
         </ParentNode>
    </List>
    Target I would like:
    <List>
         <ParentNode>
              <Child1>PK1</Child1>
              <Child2>SomeValue1</Child2>
         </ParentNode>     
         <ParentNode>
              <Child1>PK2</Child1>
              <Child2>SomeValue2</Child2>
         </ParentNode>
    </List>
    Any help?
    Thanks so much all

    Hi,
    Please note that in my reply I asked you to map ParentNode with <Child1> Please see the below.
    <Child1>-->RemoveContext Node function>Split by Value(set the property as on value change)->CollapseContext---<ParentNode>
    Secondly: introduce split by value(for each value ) after collapse context for child1 and child2. as shown below.
    <Child1>-->RemoveContext Node function>Split by Value(set the property as on value change)->CollapseContext>Split by value(for each value)----</Child1>
    <Child2>-->RemoveContext Node function>Split by Value(set the property as on value change)->CollapseContext>Split by value(for each value)----</Child2>
    it will surely work,

  • Remove duplicate entries from dropdownlist in web dynpro abap

    How to remove duplicate entries from dropdownlist in web dynpro abap? Can someone please help me
    I have maintained the data in the z table wherein the records of particular fields are repeated but when i show that record in the Web Dynpro application dropdown list, the user should only be able to view the unique data for selection of that particular field.

    Hi,
    try this code in init method.
    use the
    Delete adjacent duplicates.
    <set the table>
    select <f1>  from <table> into TABLE <Itab> whre <condition>.
       DELETE ADJACENT DUPLICATES FROM <Itab> COMPARING <f1>.
         lo_nd_vbap->bind_table( new_items = <itab> set_initial_elements = abap_true ).

  • HT2905 My itunes looks nothing like the examples in this tutorial.  I do not have "display exact duplicates" or "date added".  Can someone please help me remove duplicate songs?  Also, I downloaded two audio books and they are showing up in my song list.

    My itunes looks nothing like the examples in this tutorial.  I do not have "display exact duplicates" or "date added".  Can someone please help me remove duplicate songs?  Also, I downloaded two audio books and they are showing up in my song list. Why???

    'Show duplicates' is now under the 'View' menu. To see the 'Date added' column go to 'View options' from the 'View' menu and check it in the section under 'Stats'.
    Click an audiobook once to select it and hit command-i (Mac) or control-i (Windows). Go to the 'Options' tab and set 'Media Kind' to 'Audiobook'.

  • F4-Help without using a table search help

    Hi,
    We´re using CRM 2007 and I have created several F4-Helps for different fields on the webui.
    There it was always necessary to use an existing table search help in the GET_V-method:
    CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = lv_help_id   "search help name
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap
          iv_trigger_submit           = abap_true.
    But how can I create a f4-help without an existing search help. I have an internal table that I want to be shown like an f4-help (not as dropdown -> a dropdown-field wouldn´t be a problem).
    Structure of the internal table: COML_PROD_CAT_REL_F4
    Thanx for help.
    Greetings,
    Sven
    Edited by: Sven Keller on Aug 13, 2008 4:26 PM

    Hi Sven,
    you already pasted the correct call for creating a value help. Now what you have to alter is the variable lv_help_id to reflect a F4-Valuehelp class.
          CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id        = '(CL_CRM_UIU_BP_IDTYPE_2_F4)' "#EC NOTEXT
              iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
              iv_input_mapping  = lt_inmap
              iv_output_mapping = lt_outmap.
    As you can see CL_CRM_UIU_BP_IDTYPE_2_F4 is a normal ABAP class implementing interface IF_BSP_WD_CUSTOM_F4_CALLBACK. Please take a look at it.
    It should not be very hard to implement the single method
    cheers Carsten

  • TS4062 how do i remove duplicate entries from my phone directory?

    question; how do i remove duplicate entries from my phone directory?

    go to your contacts icon and choose the one you want to delate
    Choose edit, top right and go (scroll) to the bottom of the page and press delete contact

  • Trick to remove duplicate entries from tables ?

    hi.
    i have 53tables which are having duplicate entries and names of all 53 tables r listed in top_t table ?
    can any1 provide me solution to show and if possible ask for remove of those duplicates entries from each table if required ?
    daily i am removing duplicates manually ....its too tedious now !
    can any1 help me out ?

    Well, I suppose if the duplication is such that
    SELECT DISTINCT * FROM tablename;gives you the required result, then you could have a procedure that made a copy of the table, deleted/truncated the original, then inserted the distinct values back into it.
    In 10g you could even use flashback to avoid the temp copy - but it also means you can't use TRUNCATE so whether it's any more efficient I'm not sure. But just for fun and since it's urgent:
    CREATE OR REPLACE PROCEDURE dedupe_table
        ( p_table_name user_tables.table_name%TYPE )
    IS
        k_start_timestamp TIMESTAMP := SYSTIMESTAMP;
    BEGIN
        SAVEPOINT start_of_dedupe;
        BEGIN
            EXECUTE IMMEDIATE 'DELETE ' || p_table_name;
        EXCEPTION
            WHEN OTHERS THEN
                ROLLBACK TO start_of_dedupe;
                RAISE_APPLICATION_ERROR
                ( -20000
                , 'Error deleting ' || UPPER(p_table_name) ||
                   CHR(10) || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE
                , TRUE );
        END;
        BEGIN
            EXECUTE IMMEDIATE
            'INSERT INTO ' || p_table_name ||
            ' SELECT DISTINCT * FROM ' || p_table_name || ' AS OF TIMESTAMP :b1'
            USING k_start_timestamp;
        EXCEPTION
            WHEN OTHERS THEN
                ROLLBACK TO start_of_dedupe;
                RAISE_APPLICATION_ERROR
                ( -20000
                , 'Error repopulating ' || UPPER(p_table_name) ||
                   CHR(10) || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE
                , TRUE );
        END;
    END dedupe_table;
    SQL> select * from wr_test;
          COL1 C C
             1 A B
             1 A B
             2 C D
             2 C D
    4 rows selected.
    SQL> BEGIN
      2      dedupe_table('WR_TEST');
      3  END;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select * from wr_test;
          COL1 C C
             1 A B
             2 C D
    2 rows selected.I make no claims for robustness, efficiency or human safety.
    Edited by: William Robertson on Sep 24, 2009 7:12 PM

  • Remove duplicate entry from table

    Hello all,
    In my one table
    File Stage log (File_Stage_Log_ID int identity(1,1),File ID int ,Quarter_Date nvarchar(50),StageID int )
    have done duplicate entry by mistake on similar quarter_date 
    something like ..
    FILE_ID
    Quarter
    FILE_STAGE_LOG_ID
    STAGE_ID
    22401
    Dec-13
    233091
    450
    22401
    Dec-13
    244116
    420
    22401
    Mar-14
    233095
    450
    22401
    Mar-14
    237478
    405
    22401
    Jun-14
    237479
    405
    22401
    Jun-14
    233099
    450
    22401
    Sep-14
    233102
    450
    22401
    Sep-14
    237480
    405
    22401
    Dec-14
    237481
    405
    22401
    Dec-14
    227275
    420
    there are too many files which have the same duplicacy ..
    now , above you can see that dec -13 quarter coming twice for a single file 
    tell me the way to delete one entry from the table for a files 
    so that i have output at the end like ...
    FILE_ID
    Quarter
    FILE_STAGE_LOG_ID
    STAGE_ID
    22401
    Dec-13
    233091
    450
    22401
    Mar-14
    233095
    450
    22401
    Jun-14
    237479
    405
    22401
    Sep-14
    233102
    450
    22401
    Dec-14
    237481
    405
    Please help me with easiest possible way ..
    Dilip Patil..

    How do you determine which one out of duplicate to be kept? As per output it doesnt follow any pattern
    so it may be this
    --DELETE t
    SELECT *
    FROM
    SELECT ROW_NUMBER() OVER (PARTITION BY FILE_ID,Quarter_Date ORDER BY FILE_ID) AS Rn,*
    FROM FileStageLog
    )t
    WHERE Rn >1
    Run the select above to see records to be removed and once happy uncomment the delete, comment the select * and run the query to do the delete
    If it doesnt give expected records, explain on what basis you want to identify records to be deleted
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Table - search help - restrict user entries .

    I have created table with
    Field         Data element.
    WERKS     WERKS_D
    MTART     MTART
    MATKL     MATKL
    created_by  SYUNAME
    Changed_by SYUNAME
    1).I am getting search help for WERKS and MATKL
    However I am not getting search help for MTART field.
    Can you tell me how to get search help for MTART also
    2).  In WERKS and MTART fields wild cards (*) should not be permitted.
    How/where to code this.
    3). I need to make created_by and changed_by fields not editable.
    when user create the entry, then user name can appeared in created_by and Changed_by fields.
    And wherever another user changes the same record ...his user id should come under changed_by field.
    how /where can I do this.
    i know there are three questions.  but I also suggest me how to give more points...because there are three questions.
    YOUR HELP IS APPRECIATED.
    Thanks in ADVANCE.

    Total Posts:  585 
    Total Questions:  321 (170 unresolved) 
    Please clean up your old posts....
    3) Search!!
    Rob

  • Search help - Display only 500 entries at one time from Internal Table

    Hi,
    I have an internal table with 1000000 entries. And when I use F4IF_INT_TABLE_VALUE_REQUEST function module to display the search help with internal table, it gives me dump. Can somebody help me - how to display limited values when we process search help?
    Thanks,
    Sheel

    Hi Sheel
    u have a variable callcontrol-maxrecords in search help exit to limit the number of records.. check my weblog for more help: https://wiki.sdn.sap.com/wiki/x/du0

  • How to remove duplicate entries from Settings General iTunes Wi-Fi Sync?

    On my iPhone under Settings > General > iTunes Wi-Fi Sync there is a duplicate entry for my Mac. One is active, the other one shows options greyed out, as if it can't see the Mac on the network (although it's the same name). Is there a way to manually remove that entry from the iPhone?
    I am running iOS 7.0.4, and OS X 10.9.1, iTunes 11.1.3 on the Mac.

    iPhone 3G doesn't support Wi-Fi sync or IOS 5.1.1. You have to connect to iTunes using the dock connector to sync.
    Unless you have a iPhone 3GS or jailbroken.

  • How to remove duplicate entries in OID due to an AD-OID bootstrap

    Don't worry about the "why" but there were changes made to the mapping file for an AD-OID synch and dipassistant commands mp and bootstrap run and now there are some duplicate entries for users in OID. The only difference between the duplicates for each of those user (besides the creation/modify timestamps) is their ORCLGUID. Their orclobjectsid, orclobjectguid, dn, uid, etc. are the same. Also, our OID is used for SSO to an oracle portal. So ... is there any way to programmtically get rid of the duplicates or do I have to manually go through and delete. And if manually, which one of the two should be removed? The one created first or last?
    You'll have to excuse myself and my co-workers 'cause we're still newbies when it comes to OID. :-)

    Found an easier way to delete my unwanted users ... Softerra LDAP Administrator 3.5. :-)
    After I did the deletes, we implemented a new mapping file (see my post at Changing Domain Rules in mapping file for Active Directory-OID synch ) and ran bootstrap. Now I just have to update the GUID and DN in portal.wwsec_person$ with the new orclguid and dn from OID for each affected user.

  • Help in removing duplicates?

    Does Bridge help automate the task of removing duplicate images as I understand ACDSee does? I know this isn't the right forum, but perhaps someone knows if PS Elements automates duplicate removal? Thanks for your help.

    You could try using Robert Jacobson's script itunes_remove_notfound, or install iTunes Folder Watch and set its option to check for dead tracks on startup, or you can make a set of Lost & Found Playlists and delete what is in lost, assuming you're certain there is nothing in there that you want to repair.
    I've also got a script for cleaning real duplicates. The current version just ignores missing tracks but I'm contemplating an update which would safely eliminate the broken link while preserving ratings, play counts, playlist membership etc, assuming a live duplicate to merge this data to has been found.
    tt2

  • Search help supporting only 5000 entries

    Hi,
    I have created a search help, my data base table consists of
    22,676 records. when I am executing my search help,
    I am getting a pop up saying 'Only first 5000 wil be displayed'
    Can anyone tel me how to show all records.
    Regards,
    Shilpa

    hi,
    In the search help (SE11)
    give the dialog behaviour as Display values Immediately
    (or)
    in the help menu
    goto setting
    in the F4 tab
    you can restrict the hits
    give  in field your required value  Max. number of hits to be displayed
    regards
    prasanth

  • 11g Search Index is returning duplicate entries

    We are building up our 11g environments in preparation for migrating over from 10g. In one of our env's (UAT), we have an issue where, if we do a search on a Metadata field or Full Text value, the search engine is returning duplicate results - i.e. each document is listed twice.
    I have done several full rebuilds, including one where I deleted the IdcColl1 folder before kicking it off. No luck at fixing the issue.
    The environment is configured for Full Text searching using Sql Server 2005.
    I am not worried so much about finding out why this is like it is, I just want to fix it because I am running short of time. Any ideas?
    Thanks,
    Alec

    Srinath
    Thanks for your suggestion. I tried the process you described and did a full Reindex (which took several hours). However, when I did the search again this morning, I am still getting the duplicates.
    I am now thinking of exporting all the content using Archiver, reindexing the empty environment and then chcking that the index is empty. This way I have aclean sheet to start with. I would then reimport the content and do another reindex. Hopefully then, the index should be clean. My suspision is that after I have done the export and reindex, that there will still be stuff in the index. Have to wait and see.....
    Cheers

Maybe you are looking for

  • Creating a sound from an array of numeric values and playing it on speakers

    How do I create take a sound I have stored as an array (or could be an arraylist if needed) of numeric values (at the moment as doubles) whiten my program and output it to speakers? I am using blueJ. for example (0, 0.1, 0.4, 0.8, 0.9, 1, 0.8, 0.6, 0

  • My contact list is in a mess, thanks to ios 7 FaceTime.

    Before ios 7, we have a choice to FaceTime the number or email. Now, we don't have the choice, it's up to FaceTime to decide which to call. So in order to call a particular person on their email or phone, I have to create a new contact that only has

  • Set of string into array or a table....

    Hi Experts, I am using Oracle 10G, where I need to accomplish a task... I am getting a set of string of the sort "|session_id~q_id~q_key~rt_id~rt_key~request_type~field_id|session_id~q_id~q_key~rt_id~rt_key~request_type~field_id| ....." Here, as you

  • After updating to CP 8.0.1 content play locally, but not on the web

    After updating to CP 8.0.1 I have the problem - published HTML 5 content work locally on comupter ok, but when is uploaded to web (at the same place as older version of the same content), it plays preloader only - forever.... Hundred times I check wh

  • Customer Services Contact

    How can I contact Custoemr Services with paying for the privilege?