<?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: List Box Values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607851#M1569033</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;U need to read the input of the first field in order to fill the list box of second i/o field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to use the event AT SELECTION-SCREEN ON VALUE REQUEST, if you mean a LIST BOX for search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 12:27:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-27T12:27:55Z</dc:date>
    <item>
      <title>List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607846#M1569028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  I have searched already in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have 2 list boxes on my selection screen. second list box values will appear based on selection of fiest list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Ex: First list box contains  all STATE VALUEs.&amp;amp; Second list box contails all district valus .&lt;/P&gt;&lt;P&gt; Secon list box shoul fill on selction of state. How to do this....can any one please help me?&lt;/P&gt;&lt;P&gt; How to connect these two list boxes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 11:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607846#M1569028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T11:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607847#M1569029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI.&lt;/P&gt;&lt;P&gt;I guess you are referring to interactive report,if its interactive &lt;/P&gt;&lt;P&gt; Refer the below program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: manjunath4sap on Dec 27, 2010 1:08 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Dec 27, 2010 1:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607847#M1569029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607848#M1569030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Write the logic for second field in the event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT SELECTION-SCREEN ON p_list1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607848#M1569030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607849#M1569031</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;  Can any one please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607849#M1569031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607850#M1569032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON P_list1.&lt;/P&gt;&lt;P&gt;  PERFORM FILL_list2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working. i am getting balnks in second list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607850#M1569032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607851#M1569033</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;U need to read the input of the first field in order to fill the list box of second i/o field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to use the event AT SELECTION-SCREEN ON VALUE REQUEST, if you mean a LIST BOX for search help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607851#M1569033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: List Box Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607852#M1569034</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 this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

parameters: p_field1 type &amp;lt;field1&amp;gt;,
                     p_field2 type &amp;lt;field2&amp;gt; listbox visible length 30
                                                         modif id r1.


at selection-screen on value-request for p_field2.
  perform drilldown_field2.

form drilldown_field2.

  t_dynpfields-fieldname  = 'P_FIELD1'.
  append t_dynpfields.
  w_repid = sy-repid.
* reading Screen variables and Values
  call function 'DYNP_VALUES_READ'
       exporting
            dyname     = w_repid
            dynumb     = sy-dynnr
       tables
            dynpfields = t_dynpfields
       exceptions
            others.
  read table t_dynpfields index 1.
  value = t_dynpfields-fieldvalue.

*by the value fetch the entries from another table and push into  t_table

  w_dynprofld = 'P_FIELD2'.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
      retfield    = 'TABNAME'
      dynpprog    = sy-repid
      dynpnr      = '1000'
      dynprofield = w_dynprofld
      value_org   = 'S'
    tables
      value_tab   = t_table.
  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

Endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 12:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values/m-p/7607852#M1569034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-27T12:36:06Z</dc:date>
    </item>
  </channel>
</rss>

