<?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: initializing a field in search help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147754#M116693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one way (but it has a downside):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the Logical system field within your search help so that it contains a "Default value" that is the ID of a GET parameter.  Assign the same GET parameter ID to the selection screen parameter for logical system.  After the user enters a logical system in the first selection screen parameter, the search help will get its default from the GET parameter ID value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The downside to this solution is that the user must press Enter (or some other function) prior to selecting the drop-down (F4) on the second parameter.  Otherwise a newly entered logical system value will not be transferred to the GET parameter ID.  If the user does not press Enter, then the previous GET parameter ID value will be displayed in the search help instead of the newly entered one.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The might be a more elegant solution, but I figured I'd pass this along for you to try out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Feb 2006 16:59:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-20T16:59:02Z</dc:date>
    <item>
      <title>initializing a field in search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147753#M116692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen with some select options, first being the LOGICAL SYSTEM&lt;/P&gt;&lt;P&gt;the second one has a search help &lt;/P&gt;&lt;P&gt;This search help has three parameters logical system, storage location and description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to initialize the search help parameter logical system with value entered for the first parameter on the selection screen.&lt;/P&gt;&lt;P&gt;Pl let me know how to handle this&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 15:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147753#M116692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T15:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: initializing a field in search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147754#M116693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is one way (but it has a downside):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the Logical system field within your search help so that it contains a "Default value" that is the ID of a GET parameter.  Assign the same GET parameter ID to the selection screen parameter for logical system.  After the user enters a logical system in the first selection screen parameter, the search help will get its default from the GET parameter ID value.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The downside to this solution is that the user must press Enter (or some other function) prior to selecting the drop-down (F4) on the second parameter.  Otherwise a newly entered logical system value will not be transferred to the GET parameter ID.  If the user does not press Enter, then the previous GET parameter ID value will be displayed in the search help instead of the newly entered one.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The might be a more elegant solution, but I figured I'd pass this along for you to try out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 16:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147754#M116693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-20T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: initializing a field in search help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147755#M116694</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;This can be done using search help exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare the search help exit FM in search help, in that exit read the contents of the screen field and pass the values into search help fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_CUST is the selection screen parameter&lt;/P&gt;&lt;P&gt;ZOFFRCONT is search help field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION z_test_shelp_exit.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      SHLP_TAB TYPE  SHLP_DESCT&lt;/P&gt;&lt;P&gt;*"      RECORD_TAB STRUCTURE  SEAHLPRES&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     VALUE(SHLP) TYPE  SHLP_DESCR&lt;/P&gt;&lt;P&gt;*"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;  DATA : ws_flag(1) TYPE c,&lt;/P&gt;&lt;P&gt;         ws_rec(1)  TYPE c.&lt;/P&gt;&lt;P&gt;  DATA : i_dynpfields TYPE dynpread OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA : ws_data TYPE ddshiface,&lt;/P&gt;&lt;P&gt;         i_data TYPE ddshifaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ws_flag = 'X'.&lt;/P&gt;&lt;P&gt;  ws_rec = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ws_flag = 'X'.&lt;/P&gt;&lt;P&gt;    i_dynpfields-fieldname = 'P_CUST'.&lt;/P&gt;&lt;P&gt;    APPEND i_dynpfields.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        dyname               = sy-cprog&lt;/P&gt;&lt;P&gt;        dynumb               = '1000'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynpfields           = i_dynpfields&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_abapworkarea = 1&lt;/P&gt;&lt;P&gt;        invalid_dynprofield  = 2&lt;/P&gt;&lt;P&gt;        invalid_dynproname   = 3&lt;/P&gt;&lt;P&gt;        invalid_dynpronummer = 4&lt;/P&gt;&lt;P&gt;        invalid_request      = 5&lt;/P&gt;&lt;P&gt;        no_fielddescription  = 6&lt;/P&gt;&lt;P&gt;        invalid_parameter    = 7&lt;/P&gt;&lt;P&gt;        undefind_error       = 8&lt;/P&gt;&lt;P&gt;        double_conversion    = 9&lt;/P&gt;&lt;P&gt;        stepl_not_found      = 10&lt;/P&gt;&lt;P&gt;        OTHERS               = 11.&lt;/P&gt;&lt;P&gt;    READ TABLE i_dynpfields WITH KEY fieldname = 'P_CUST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ws_data-shlpfield = 'ZCUSTOMER'.&lt;/P&gt;&lt;P&gt;    ws_data-valfield = 'G_SIMFIELDS-FIELDNAME'.&lt;/P&gt;&lt;P&gt;    ws_data-value = i_dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;    APPEND ws_data TO i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ws_data-shlpfield = 'ZOFFRCONT'.&lt;/P&gt;&lt;P&gt;    ws_data-valfield = 'P_CONT'.&lt;/P&gt;&lt;P&gt;    ws_data-f4field =	'X'.&lt;/P&gt;&lt;P&gt;    APPEND ws_data TO i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT shlp_tab.&lt;/P&gt;&lt;P&gt;      IF ws_rec = 'X'.&lt;/P&gt;&lt;P&gt;        shlp_tab-interface[] = i_data[].&lt;/P&gt;&lt;P&gt;        APPEND shlp_tab.&lt;/P&gt;&lt;P&gt;        ws_rec = ' '.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DELETE shlp_tab INDEX 1.&lt;/P&gt;&lt;P&gt;    ws_flag = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still you have problem , copy your code , i will check.&lt;/P&gt;&lt;P&gt;Please Dont forget to reward points if answer is helpful to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 17:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initializing-a-field-in-search-help/m-p/1147755#M116694</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-02-20T17:01:24Z</dc:date>
    </item>
  </channel>
</rss>

