<?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 based on previous selected list box value. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763730#M1305309</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 you be more clear in your requirement...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2009 11:44:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-15T11:44:52Z</dc:date>
    <item>
      <title>List Box values based on previous selected list box value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763729#M1305308</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 an issue related to list box.i have 2 list box in selection scren&lt;/P&gt;&lt;P&gt;a) p_bst_ty&lt;/P&gt;&lt;P&gt;b) p_bst_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in p_bst_ty there is one drop down list which is populated with values like 1C 1F 1Z etc.&lt;/P&gt;&lt;P&gt;suppose user select 1C then all the object id corresponding to 1C object shud be selected from table HRP100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not using F4 help .p_bst_id  list should be populated in the same manner as p_bst_ty is populated.&lt;/P&gt;&lt;P&gt;can anybody help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Mona Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 11:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763729#M1305308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T11:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: List Box values based on previous selected list box value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763730#M1305309</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 you be more clear in your requirement...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 11:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763730#M1305309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T11:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: List Box values based on previous selected list box value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763731#M1305310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In p_bst_ty i am populating object types from table T777O ...user can select any object type from the drop down list.&lt;/P&gt;&lt;P&gt;Now based on this Object id  ..data should come in the 2nd one p_bst_id from table HRP1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if i select 1C as object type then all the object id which belong to object type 1C should come to the drop down list of the 2nd list (p_bst_id).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 11:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763731#M1305310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T11:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: List Box values based on previous selected list box value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763732#M1305311</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;Depending on the value which you get from the first list... Select  the value from the database table and then pass that internal table to the function module 'F4IF_INT_TABLE_VALUE_REQUEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

gv_repid = sy-repid.

  IF not p_bst_ty IS INITIAL.
    SELECT f2 FROM HRP1000
           INTO TABLE gt_f4table
           WHERE field1 = p_bst_ty.
  ENDIF.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield     = your field
            dynpprog     = gv_repid
            dynpnr       = sy-dynnr
            window_title = text-002
            value_org    = 'S'
       TABLES
            value_tab    = gt_f4table
            return_tab   = gt_matnr_returned.

  IF sy-subrc EQ 0.
    IF NOT gt_matnr_returned[] IS INITIAL.
      READ TABLE gt_matnr_returned INTO gs_matnr_returned INDEX 1.
      p_matnr = gs_matnr_returned-fieldval.
    ENDIF.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 11:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763732#M1305311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: List Box values based on previous selected list box value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763733#M1305312</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;You need to use the function module DYNP_VALUES_READ.&lt;/P&gt;&lt;P&gt;You have to get the value selected in the first list box ..after that based on that value you nee dto write query on HRP1000 to get the related values. Correct me if I understood diffrently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar Bandanadham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 12:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/list-box-values-based-on-previous-selected-list-box-value/m-p/5763733#M1305312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T12:00:57Z</dc:date>
    </item>
  </channel>
</rss>

