<?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 Problem, cant get the selected value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993792#M1605901</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; Give the dialog type as 'Display value immediately' and the sample code is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF callcontrol-step = 'SELECT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  get values of default&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT shlp_tab.&lt;/P&gt;&lt;P&gt;      LOOP AT shlp_tab-fieldprop INTO lv_wa_fieldprop.&lt;/P&gt;&lt;P&gt;        IF lv_wa_fieldprop-fieldname = 'SRCSTRUCT'.&lt;/P&gt;&lt;P&gt;          lv_tabname = lv_wa_fieldprop-defaultval.&lt;/P&gt;&lt;P&gt;          REPLACE ALL OCCURRENCES OF '''' IN lv_tabname WITH space.&lt;/P&gt;&lt;P&gt;          CONDENSE lv_tabname.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.                         "INTERFACE&lt;/P&gt;&lt;P&gt;    ENDLOOP.                           "SHLP_TAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  get fields of structure from DDIC&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        name      = lv_tabname&lt;/P&gt;&lt;P&gt;        state     = 'A'&lt;/P&gt;&lt;P&gt;        langu     = sy-langu&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dd03p_tab = lt_dd03p&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS    = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    flow control: go directly to last step&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      callcontrol-step = 'DISP'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    put selected entries into internal table for returning&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      REFRESH record_tab.&lt;/P&gt;&lt;P&gt;      LOOP AT lt_dd03p WHERE fieldname NA '.'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       RECORD_TAB-STRING         = LV_TABNAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        record_tab-string(30)  = lt_dd03p-fieldname.&lt;/P&gt;&lt;P&gt;        record_tab-string+30(60) = lt_dd03p-ddtext.&lt;/P&gt;&lt;P&gt;        APPEND record_tab.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    exit if no valid entries are found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      callcontrol-step = 'EXIT'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2011 15:30:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-23T15:30:02Z</dc:date>
    <item>
      <title>Search Help Problem, cant get the selected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993791#M1605900</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;I create a search help exit, it working ok, the only problem its when I double click on the value I choosed from the return list, this value is not displayed in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I didnt set wich of all the colums od the return table its the value to write in the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 15:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993791#M1605900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help Problem, cant get the selected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993792#M1605901</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; Give the dialog type as 'Display value immediately' and the sample code is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF callcontrol-step = 'SELECT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  get values of default&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT shlp_tab.&lt;/P&gt;&lt;P&gt;      LOOP AT shlp_tab-fieldprop INTO lv_wa_fieldprop.&lt;/P&gt;&lt;P&gt;        IF lv_wa_fieldprop-fieldname = 'SRCSTRUCT'.&lt;/P&gt;&lt;P&gt;          lv_tabname = lv_wa_fieldprop-defaultval.&lt;/P&gt;&lt;P&gt;          REPLACE ALL OCCURRENCES OF '''' IN lv_tabname WITH space.&lt;/P&gt;&lt;P&gt;          CONDENSE lv_tabname.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.                         "INTERFACE&lt;/P&gt;&lt;P&gt;    ENDLOOP.                           "SHLP_TAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  get fields of structure from DDIC&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'DDIF_TABL_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        name      = lv_tabname&lt;/P&gt;&lt;P&gt;        state     = 'A'&lt;/P&gt;&lt;P&gt;        langu     = sy-langu&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dd03p_tab = lt_dd03p&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS    = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    flow control: go directly to last step&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      callcontrol-step = 'DISP'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    put selected entries into internal table for returning&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      REFRESH record_tab.&lt;/P&gt;&lt;P&gt;      LOOP AT lt_dd03p WHERE fieldname NA '.'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       RECORD_TAB-STRING         = LV_TABNAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        record_tab-string(30)  = lt_dd03p-fieldname.&lt;/P&gt;&lt;P&gt;        record_tab-string+30(60) = lt_dd03p-ddtext.&lt;/P&gt;&lt;P&gt;        APPEND record_tab.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    exit if no valid entries are found&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      callcontrol-step = 'EXIT'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 15:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993792#M1605901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search Help Problem, cant get the selected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993793#M1605902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the function module to insert all the fields that you are to return to the search help. Also check also if the field you want to pass to screen field is specified under definition of search help as an exporting parameter.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
      EXPORTING
        parameter   = 'LIFNR'   
        fieldname   = 'LIFNR'   
      TABLES
        shlp_tab    = shlp_tab        
        record_tab  = record_tab
        source_tab  = lt_data01
      CHANGING
        shlp        = shlp
        callcontrol = callcontrol.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PrinceIsaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 15:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-help-problem-cant-get-the-selected-value/m-p/7993793#M1605902</guid>
      <dc:creator>prince_isaac</dc:creator>
      <dc:date>2011-06-23T15:33:12Z</dc:date>
    </item>
  </channel>
</rss>

