<?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: Disable multiple selection in search help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574897#M860513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that did not directly help. Because I already have a search help exit and don't know how to use a report there.&lt;/P&gt;&lt;P&gt;But with the help of you comment I found the parameter callcontrol-multisel. Unfortunately setting this to space did not help. But a where used list showed me this example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'F4UT_SUPPRESS_SELECT_OPTIONS'
        EXPORTING
          parameter         = 'my_fieldname'
        TABLES
          shlp_tab          = shlp_tab
          record_tab        = record_tab
        CHANGING
          shlp              = shlp
          callcontrol       = callcontrol
        EXCEPTIONS
          parameter_unknown = 1
          OTHERS            = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and that helped me in the presel step.&lt;/P&gt;&lt;P&gt;Strange.. but this does not working in WD-ABAP. But that I'll clarify with the WD-guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for showing me the right path, even if this was not your motivation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2008 09:37:58 GMT</pubDate>
    <dc:creator>marcus_hoepfner</dc:creator>
    <dc:date>2008-03-31T09:37:58Z</dc:date>
    <item>
      <title>Disable multiple selection in search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574895#M860511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a search help with a function call inside. I am just using a search help to get all the logic so that I do not need to implement a dynpro popup.&lt;/P&gt;&lt;P&gt;I am getting up to five different values now in the selopt-table. Since fm can not handle multiple values I have the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF callcontrol-step = 'SELECT'.
    LOOP AT shlp-selopt INTO ls_shlp_selopt
        WHERE ( shlpfield = 'COUNTRY'
           OR shlpfield = 'STATE'
           OR shlpfield = 'ZIPCODE'
           OR shlpfield = 'CITY'
           OR shlpfield = 'COUNTY' )
          AND ( sign &amp;lt;&amp;gt; 'I'
           OR option &amp;lt;&amp;gt; 'EQ' ).
      callcontrol-step = 'PRESEL'.
      MESSAGE i651(56) DISPLAY LIKE 'E'.
      EXIT.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine but may confuse the user (because first he can enter multiple values and afterwards they are forbidden. Is it possbile to remove the multiple selection button from the sh? Maybe in the &lt;EM&gt;PRESEL&lt;/EM&gt; step?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help,&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 08:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574895#M860511</guid>
      <dc:creator>marcus_hoepfner</dc:creator>
      <dc:date>2008-03-18T08:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Disable multiple selection in search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574896#M860512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following sample report &lt;STRONG&gt;ZUS_SDN_CALL_SEARCHHELP&lt;/STRONG&gt; shows how to switch between single and multiple selection for a search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_CALL_SEARCHHELP
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Thread: Disable multiple selection in search help
*&amp;amp; &amp;lt;a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="786400"&amp;gt;&amp;lt;/a&amp;gt;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_call_searchhelp.


TYPE-POOLS: abap, shlp.

DATA: gs_shlp     TYPE shlp_descr,
      gt_retval   TYPE STANDARD TABLE OF ddshretval.


parameters:
  p_multi   as CHECKBOX DEFAULT ' '.

START-OF-SELECTION.

  CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
    EXPORTING
      shlpname       = 'DEBIA'
*     SHLPTYPE       = 'SH'
    IMPORTING
      shlp           = gs_shlp.


  CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
    EXPORTING
      shlp                = gs_shlp
*     DISPONLY            = ' '
*     MAXRECORDS          = 500
      multisel            = p_multi
*     CUCOL               = SY-CUCOL
*     CUROW               = SY-CUROW
*   IMPORTING
*     RC                  =
    TABLES
      return_values       = gt_retval.


END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you look under the hood of the second function module you see how the switch is done internally:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION F4IF_START_VALUE_REQUEST.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(SHLP) TYPE  SHLP_DESCR
*"     VALUE(DISPONLY) LIKE  DDSHF4CTRL-DISPONLY DEFAULT ' '
*"     VALUE(MAXRECORDS) LIKE  DDSHF4CTRL-MAXRECORDS DEFAULT 500
*"     VALUE(MULTISEL) LIKE  DDSHF4CTRL-MULTISEL DEFAULT ' '
*"     VALUE(CUCOL) LIKE  SY-CUCOL DEFAULT SY-CUCOL
*"     VALUE(CUROW) LIKE  SY-CUROW DEFAULT SY-CUROW
*"  EXPORTING
*"     VALUE(RC) LIKE  SY-SUBRC
*"  TABLES
*"      RETURN_VALUES STRUCTURE  DDSHRETVAL
*"----------------------------------------------------------------------
  DATA CALLCONTROL LIKE DDSHF4CTRL.
  DATA: OCXINTERFACE LIKE DDSHOCXINT.
  DATA: HELP_INFOS LIKE HELP_INFO.

  CALLCONTROL-DISPONLY = DISPONLY.
  CALLCONTROL-MAXRECORDS = MAXRECORDS.
  CALLCONTROL-MULTISEL = MULTISEL.  " switch single/multiple selection
  CALLCONTROL-CUCOL = CUCOL.
  CALLCONTROL-CUROW = CUROW.
  CALLCONTROL-OCX_OFF = ' '.
...
&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2008 21:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574896#M860512</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-03-30T21:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disable multiple selection in search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574897#M860513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that did not directly help. Because I already have a search help exit and don't know how to use a report there.&lt;/P&gt;&lt;P&gt;But with the help of you comment I found the parameter callcontrol-multisel. Unfortunately setting this to space did not help. But a where used list showed me this example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'F4UT_SUPPRESS_SELECT_OPTIONS'
        EXPORTING
          parameter         = 'my_fieldname'
        TABLES
          shlp_tab          = shlp_tab
          record_tab        = record_tab
        CHANGING
          shlp              = shlp
          callcontrol       = callcontrol
        EXCEPTIONS
          parameter_unknown = 1
          OTHERS            = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and that helped me in the presel step.&lt;/P&gt;&lt;P&gt;Strange.. but this does not working in WD-ABAP. But that I'll clarify with the WD-guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for showing me the right path, even if this was not your motivation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2008 09:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disable-multiple-selection-in-search-help/m-p/3574897#M860513</guid>
      <dc:creator>marcus_hoepfner</dc:creator>
      <dc:date>2008-03-31T09:37:58Z</dc:date>
    </item>
  </channel>
</rss>

