<?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 Default selection for input field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806415#M1468274</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 have two fields on my selection screen.  When the user clicks the drop down for the second field the possible values displayed  is dependant on the first field.  I have done this using AT SELECTION-SCREEN ON VALUE-REQUEST FOR and CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.  This is working correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to populate the second field with all of the possible values by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want a user to enter a name in the first field and have the second field automatically populated with several names depending on whats in the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this at all possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 04:53:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-07T04:53:14Z</dc:date>
    <item>
      <title>Default selection for input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806415#M1468274</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 have two fields on my selection screen.  When the user clicks the drop down for the second field the possible values displayed  is dependant on the first field.  I have done this using AT SELECTION-SCREEN ON VALUE-REQUEST FOR and CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.  This is working correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to populate the second field with all of the possible values by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want a user to enter a name in the first field and have the second field automatically populated with several names depending on whats in the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this at all possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 04:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806415#M1468274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T04:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Default selection for input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806416#M1468275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During the event "on selection-screen output", populate the internal table (which will be value table) for the second input field.&lt;/P&gt;&lt;P&gt;Then call the function module "F4IF_INT_TABLE_VALUE_REQUEST" based on the above mentioned internal table.  Call this function module on the event "at selection-screen on value-request for &amp;lt;second input field&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 04:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806416#M1468275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T04:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Default selection for input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806417#M1468276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, This is possible only in one way(To the best of my knowledge)&lt;/P&gt;&lt;P&gt;[Refer to this i had a similar Issue|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1642591"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In TOP Include
  data : sval type standard table of sval with header line,
            first.
" I dont know to what extent you are convinced with this but this made my requirement realized

at selection-screen output.
data : str type string.
  if first = 'X'. " Declare this in TOP Include and Clear this in START-OF-SELECTOIN
Otherwise when you press back button this pop up agian Comes and Asks for input
    sval-tabname = 'T001W'.
    sval-fieldname = 'WERKS'.
    sval-field_obl = 'X'.
    append sval.
    perform popup_plant.
    select single werks from t001w into p_werks
      where werks = p_werks.
    if sy-subrc ne  0.
      concatenate 'Plant' p_werks 'Does not exist'
      'Check your Entry' into str separated by space.
      message str type 'W'.
      perform popup_plant. " You recieve the Value for FIrst Field from here
Based on this First Value, you can now populate your List Box
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As per &lt;EM&gt;Suhas&lt;/EM&gt; suggestion you can make the First input Field non Editable.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
if screen-name = 'P_WERKS'.
screen-input = 0.
modify Screen.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After this Follow your Earlier Post&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8882221"&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form popup_plant.
  call function 'POPUP_GET_VALUES'
    exporting
     no_value_check        = ' '
      popup_title           = 'Please Enter Plant'
* IMPORTING
*   RETURNCODE            = RETURNCODE
    tables
      fields                = sval
   exceptions
     error_in_fields       = 1
     others                = 2
            .
  if sy-subrc = 0.
    read table sval index 1.
    if sy-subrc = 0.
      move sval-value to p_werks.
    endif.
  endif.
endform.                    "popup_plant&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806417#M1468276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T05:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Default selection for input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806418#M1468277</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;Try to use following function modules:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUES_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUES_UPDATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806418#M1468277</guid>
      <dc:creator>former_member418469</dc:creator>
      <dc:date>2010-04-07T05:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Default selection for input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806419#M1468278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you manually type the value in the first field i suppose you cannot have the data populated in the second field automatically. The application has no way to know that the value in the first field has been changed / inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested by Ram you either attache a dropdown list to the first field or create an F4 help. Because as long as there is no user interaction in the screen the application cannot trigger an event on its own &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you get the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 06:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/default-selection-for-input-field/m-p/6806419#M1468278</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-07T06:02:47Z</dc:date>
    </item>
  </channel>
</rss>

