<?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 search help problem not solved in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074542#M974273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below code ist the "searchhelp exit code" for my search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a search help parameter (my input field later &lt;/P&gt;&lt;P&gt;on the search help pop up window). If somebody klicks&lt;/P&gt;&lt;P&gt;into this field and press F4 and then according to this&lt;/P&gt;&lt;P&gt;field there must be called  FM C14F_LOV_WAID (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cant relate to this search help parameter (input field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION z_search_help_exit.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  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
*"----------------------------------------------------------------------

*
*write: ''.

DATA:  gv_addinf  LIKE rcgaddinf,
       gv_selscr  LIKE ccihs_wasel VALUE IS INITIAL,
       e_waid     LIKE ccihs_wahiot-waid.

gv_addinf-valdat = sy-datum.

  IF callcontrol-step &amp;lt;&amp;gt; 'PRESEL' AND
     callcontrol-step &amp;lt;&amp;gt; 'SELONE' AND
     callcontrol-step &amp;lt;&amp;gt; 'SELECT' AND
     callcontrol-step &amp;lt;&amp;gt; 'DISP'    AND
     callcontrol-step &amp;lt;&amp;gt; 'RETURN'.
    EXIT.
  ENDIF.

  IF callcontrol-step = 'SELONE'.
    MESSAGE 'SELONE' TYPE 'I'.
    EXIT.
  ENDIF.


  IF callcontrol-step = 'PRESEL'.
    MESSAGE 'PRESEL' TYPE 'I'.
    EXIT.
  ENDIF.


  IF callcontrol-step = 'SELECT'.

  CALL FUNCTION 'C14F_LOV_WAID'
    EXPORTING
      i_addinf                             = gv_addinf
   IMPORTING
     E_WAID                                = e_waid   .
  ENDIF.

  IF callcontrol-step = 'DISP'.
    MESSAGE 'DISP' TYPE 'I'.
    EXIT.
  ENDIF.

  IF callcontrol-step = 'RETURN'.

    MESSAGE 'RETURN' TYPE 'I'.
    callcontrol-hide_list = 'X'.

    EXIT.
  ENDIF.


ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 12:59:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T12:59:52Z</dc:date>
    <item>
      <title>search help problem not solved</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074542#M974273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below code ist the "searchhelp exit code" for my search help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a search help parameter (my input field later &lt;/P&gt;&lt;P&gt;on the search help pop up window). If somebody klicks&lt;/P&gt;&lt;P&gt;into this field and press F4 and then according to this&lt;/P&gt;&lt;P&gt;field there must be called  FM C14F_LOV_WAID (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cant relate to this search help parameter (input field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION z_search_help_exit.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  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
*"----------------------------------------------------------------------

*
*write: ''.

DATA:  gv_addinf  LIKE rcgaddinf,
       gv_selscr  LIKE ccihs_wasel VALUE IS INITIAL,
       e_waid     LIKE ccihs_wahiot-waid.

gv_addinf-valdat = sy-datum.

  IF callcontrol-step &amp;lt;&amp;gt; 'PRESEL' AND
     callcontrol-step &amp;lt;&amp;gt; 'SELONE' AND
     callcontrol-step &amp;lt;&amp;gt; 'SELECT' AND
     callcontrol-step &amp;lt;&amp;gt; 'DISP'    AND
     callcontrol-step &amp;lt;&amp;gt; 'RETURN'.
    EXIT.
  ENDIF.

  IF callcontrol-step = 'SELONE'.
    MESSAGE 'SELONE' TYPE 'I'.
    EXIT.
  ENDIF.


  IF callcontrol-step = 'PRESEL'.
    MESSAGE 'PRESEL' TYPE 'I'.
    EXIT.
  ENDIF.


  IF callcontrol-step = 'SELECT'.

  CALL FUNCTION 'C14F_LOV_WAID'
    EXPORTING
      i_addinf                             = gv_addinf
   IMPORTING
     E_WAID                                = e_waid   .
  ENDIF.

  IF callcontrol-step = 'DISP'.
    MESSAGE 'DISP' TYPE 'I'.
    EXIT.
  ENDIF.

  IF callcontrol-step = 'RETURN'.

    MESSAGE 'RETURN' TYPE 'I'.
    callcontrol-hide_list = 'X'.

    EXIT.
  ENDIF.


ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 12:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074542#M974273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T12:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: search help problem not solved</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074543#M974274</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;you can - just define inputs in SE11 - you will receive a warning even if an EXIT is defined but you can proceed. Values will be in the select-options for the parameters defined. Pass values (one for each input parms ) to structure I_WASELSCR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like the selected value comes directly from C14F_LOV_WAID. If not you may poulate your list using FM F4UT*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the selected value to export parameter and set callcontrol-step = 'RETURN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun,&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Holger Pakirnus on Jun 27, 2008 3:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 13:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074543#M974274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T13:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: search help problem not solved</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074544#M974275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where is the connection between the input field&lt;/P&gt;&lt;P&gt;(search help parameter my input field on the search help pop up window) and return value ?????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I pass the selected value to export parameter and set callcontrol-step = 'RETURN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ilhan Ertas on Jun 27, 2008 4:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 14:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074544#M974275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T14:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: search help problem not solved</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074545#M974276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your search help exit should contain changing parameter SHLP of TYPE  SHLP_DESCR. This is a deep structure. Table SELOPT should contain some single values for input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To export the selected value you need to append a single line to record tab. This is quite difficult because it should not be done directly but by using function modules F4UT_PARAMETER*. However, theese FM have good documentation. An intructive example is SAPBC_GLOBAL_F4_SFLIGHT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;HP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 15:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-not-solved/m-p/4074545#M974276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T15:07:17Z</dc:date>
    </item>
  </channel>
</rss>

