<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SEARCH HELP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487827#M227366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  One way is to delete duplicate entries comparing name &lt;/P&gt;&lt;P&gt;field via search help exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2006 19:31:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-25T19:31:41Z</dc:date>
    <item>
      <title>SEARCH HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487825#M227364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help in creating  a search help or f4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field in my first screen lets &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name .I need to provide a search help for this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a created a  search help  using se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem , the table which iam using has duplicates names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for item  name &lt;/P&gt;&lt;P&gt;     1     abc&lt;/P&gt;&lt;P&gt;     2     abc      because item and name are both primary keys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use my search help for name field in initial screen it shows&lt;/P&gt;&lt;P&gt; abc&lt;/P&gt;&lt;P&gt; abc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e it shows TWICE instead i need only once&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET ME KNOW IF ANYBODY HAS AN IDEA HOW THIS CN BE ACHEIVED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAVE A NICE WEEKEND&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 19:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487825#M227364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: SEARCH HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487826#M227365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using a search help defined in the dictionary, you can code it directly in your program, and you can take care of the duplicates then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example, notice here we are getting data from T001 and putting into IT001, this internal table is what will be shown in the search help.  Of course there will be no duplicates here, but if there were, you can see that the DELETE ADJACENT DUPLICATES statement would take care of the that problem.  You can use this same type of thing for  your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

tables: t001.

data: begin of it001 occurs 0,
      bukrs type t001-bukrs,
      butxt type t001-butxt,
      ort01 type t001-ort01,
      land1 type t001-land1,
      end of it001.

select-options s_bukrs for t001-bukrs.

initialization.

  select bukrs butxt ort01 land1 into table it001 from t001.

&amp;lt;b&amp;gt;  sort it001 ascending by bukrs.
  delete adjacent duplicates from it001 comparing bukrs.&amp;lt;/b&amp;gt;

at selection-screen on value-request for s_bukrs-low.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'BUKRS'
            dynprofield = 'S_BUKRS'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = it001.

start-of-selection.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 19:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487826#M227365</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-25T19:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: SEARCH HELP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487827#M227366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  One way is to delete duplicate entries comparing name &lt;/P&gt;&lt;P&gt;field via search help exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 19:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help/m-p/1487827#M227366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T19:31:41Z</dc:date>
    </item>
  </channel>
</rss>

