<?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 Creating Search Help. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502104#M1654155</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;I have created the elementay search help for field ZWELS of table LFB!. ZWELS fileds contains values C and CDF for multiple vendor numbers. In search help i have included only ZWELS field. I have attached this search help to selection screen element by using matchcode object. But when i press F4 , repetitive values  are displaying. &lt;/P&gt;&lt;P&gt;I dont want to show the repeating values. I want to show only distinct values.&lt;/P&gt;&lt;P&gt;how to do it?&lt;/P&gt;&lt;P&gt;Please give solution for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 16:47:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-25T16:47:13Z</dc:date>
    <item>
      <title>Creating Search Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502104#M1654155</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;I have created the elementay search help for field ZWELS of table LFB!. ZWELS fileds contains values C and CDF for multiple vendor numbers. In search help i have included only ZWELS field. I have attached this search help to selection screen element by using matchcode object. But when i press F4 , repetitive values  are displaying. &lt;/P&gt;&lt;P&gt;I dont want to show the repeating values. I want to show only distinct values.&lt;/P&gt;&lt;P&gt;how to do it?&lt;/P&gt;&lt;P&gt;Please give solution for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 16:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502104#M1654155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-25T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Search Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502105#M1654156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you also supply company code and/or the partner number?  Alternatively look at the F4IF_INT_TABLE_VALUE_REQUEST function module with which you can create the value list and allow the user to select via that module.  There have been numerous postings on the use of that FM, so a search of the forum or of SDN should lead to code samples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 16:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502105#M1654156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-25T16:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Search Help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502106#M1654157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a search help exit as below along in the search help which you created. what i am doing here is i am deleting the duplicate records comparing the vendor number.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZF4IF_SHLP_EXIT_LFB.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  TABLES
*"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
*"      RECORD_TAB STRUCTURE  SEAHLPRES
*"  CHANGING
*"     VALUE(SHLP) TYPE  SHLP_DESCR_T
*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
*"----------------------------------------------------------------------
DATA : record_tab1 type TABLE OF SEAHLPRES.
  IF CALLCONTROL-STEP = 'DISP'.
    LOOP AT record_tab.
      delete record_tab WHERE string+0(13) = record_tab-string+0(13). 
      append record_tab to record_tab1.
    ENDLOOP.
    sort record_tab1 by string ASCENDING.
    record_tab[] = record_tab1[].

  ENDIF.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the code a bit in the debug. adjust the 0(13) if needed for you... 13 because, in lfb1 lifnr field is till 13 characters (3 for mandt and 10 for lifnr)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 23:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-search-help/m-p/8502106#M1654157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-25T23:03:40Z</dc:date>
    </item>
  </channel>
</rss>

