<?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 regarding an input field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053158#M968850</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;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR&lt;/P&gt;&lt;P&gt;xxxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not possible to use in a search help exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which alternatives do we have if I need to e.g.&lt;/P&gt;&lt;P&gt;to call a function module regarding an input field&lt;/P&gt;&lt;P&gt;on the search help window ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 12:58:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T12:58:31Z</dc:date>
    <item>
      <title>regarding an input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053158#M968850</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;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR&lt;/P&gt;&lt;P&gt;xxxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not possible to use in a search help exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which alternatives do we have if I need to e.g.&lt;/P&gt;&lt;P&gt;to call a function module regarding an input field&lt;/P&gt;&lt;P&gt;on the search help window ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 12:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053158#M968850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T12:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: regarding an input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053159#M968851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ilhan Ertas ,&lt;/P&gt;&lt;P&gt;You can check the below report logic :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Value Request For Parameter 
* If you have two parameters, you want to display values(f4) in parameter 2  
* depending on the values entered in parameter 1. 

REPORT Z_SRI_HELP_VALUE_FOR_TABLES . 

tables tcurt. 
DATA   DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE. 
PARAMETERS: P_WAERS LIKE TCURT-WAERS,        "Currency 
            P_LTEXT LIKE TCURT-LTEXT,        "Long Text 
            P_KTEXT LIKE TCURT-KTEXT.        "Short Text 
*----------------------------------------------------------------------- 
*--- Example of updating value of another field on the screen ---------- 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS. 
  CLEAR: DYFIELDS[], DYFIELDS. 
*--- select currency 
  CALL FUNCTION 'HELP_VALUES_GET' 
       EXPORTING 
            fieldname        =  'WAERS' 
            tabname          =  'TCURT' 
       IMPORTING 
            SELECT_VALUE     =   P_WAERS. 
*--- get long text for the selected currency 
  SELECT SINGLE LTEXT FROM TCURT 
    INTO DYFIELDS-FIELDVALUE 
    WHERE SPRAS = SY-LANGU 
    AND   WAERS = P_WAERS. 
  IF SY-SUBRC &amp;lt;&amp;gt; 0. 
    CLEAR DYFIELDS-FIELDVALUE. 
  ENDIF. 
*--- update another field 
  DYFIELDS-FIELDNAME = 'P_LTEXT'. 
  APPEND DYFIELDS. 
  CALL FUNCTION 'DYNP_VALUES_UPDATE' 
       EXPORTING 
            DYNAME               = SY-CPROG 
            DYNUMB               = SY-DYNNR 
       tables 
            dynpfields           = DYFIELDS . 
*----------------------------------------------------------------------- 
*--- Example of reading value of another field ------------------------- 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT. 
*--- read another field 
  CLEAR: DYFIELDS[], DYFIELDS. 
  DYFIELDS-FIELDNAME = 'P_WAERS'. 
  APPEND DYFIELDS. 
  CALL FUNCTION 'DYNP_VALUES_READ' 
       EXPORTING 
            DYNAME                   = SY-CPROG 
            DYNUMB                   = SY-DYNNR 
       TABLES 
            DYNPFIELDS               = DYFIELDS . 
  READ TABLE DYFIELDS INDEX 1. 
*--- get short text and update current field 
  SELECT SINGLE KTEXT FROM TCURT 
    INTO P_KTEXT 
    WHERE SPRAS EQ SY-LANGU 
    AND   WAERS EQ DYFIELDS-FIELDVALUE. 
*-----------------------------------------------------------------------&lt;/CODE&gt;&lt;/PRE&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;PARAMETERS: p_name(10). 
DATA: BEGIN OF value_tab OCCURS 0, 
               name(10), 
             END OF value_tab. 
DATA :field_tab LIKE dfies  OCCURS 0 WITH HEADER LINE. 
DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE. DATA : x TYPE string. 

  AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name. 
   
  REFRESH value_tab[]. 
  REFRESH field_tab[]. 
  REFRESH return_tab[]. 
    field_tab-fieldname = 'ERNAM'. 
  field_tab-tabname = 'VBAK'. 
  APPEND field_tab. 
    value_tab-name = 'John'. 
  APPEND value_tab. 
  value_tab-name = 'Abraham'. 
  APPEND value_tab. 
  value_tab-name = 'Lingam'. 
  APPEND value_tab. 

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' 
    EXPORTING 
      retfield        = field_tab-fieldname 
    TABLES 
      value_tab       = value_tab 
      field_tab       = field_tab 
      return_tab      = return_tab 
    EXCEPTIONS 
      parameter_error = 1 
      no_values_found = 2 
      OTHERS          = 3. 
  IF sy-subrc = 0. 
    p_name = return_tab-fieldval. 
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 13:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053159#M968851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T13:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: regarding an input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053160#M968852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetson Shunmu please read my posting more correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excatly those both possiblities I can't use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ertas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 13:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053160#M968852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T13:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: regarding an input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053161#M968853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ilhan Ertas ,&lt;/P&gt;&lt;P&gt;                            Sorry for the wrong posting . We have the Seach hep exit when we create Search help in SE11. Use that for your logic. Check the below documentation from SAP :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search help exit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A search help exit is called at certain timepoints in the input help process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 13:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-an-input-field/m-p/4053161#M968853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T13:15:31Z</dc:date>
    </item>
  </channel>
</rss>

