<?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: Filtering data on a listbox based on a selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523731#M847566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries... I generally code examples as reports because it's quicker and easier but please keep in mind that when you compile a report program it actually creates a dynpro for you automagically (screen 1000 typically) so almost everything you can do in a report screen you can do in your own dynpros.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your own dynpro, you would code two fields (as per the sample) and define each as having a listbox... for each field define a function code that is triggered when you change the screen value (as in the report example).  You can prefill the listboxes during the PBO logic for the dynpro, and in the PAI you can pick up which user command has been selected and allow the flow logic to go back round to the PBO and change the second listbox list depending on the value chosen in the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 11:34:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T11:34:25Z</dc:date>
    <item>
      <title>Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523728#M847563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very new to abap and am struggling with a few basics just wondering if anybody can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a screen with two pik lists/listboxes. One pick list is dependant on another (like a parent-child relationship or in this case category and sub category).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I need to do is when a Parent Category is selected I want the SubCategory to be filtered by the parent selection, is there any way of doing this??? (the two check tables the values are coming from are related by a foreign key to each other and I have tried to use a search help but I'm not sure if I am implementing it correctly as its not working on the screen itself although on a selection screen it works okay). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some other info that might help is that the screen is populated by a structure which has FK's to the two pik lists (not sure if that will be helpful). I though that the screen may just work like the selection screen but it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523728#M847563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523729#M847564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the example I posted for:&lt;/P&gt;&lt;P&gt;&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="4434362"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(apologies for the indentation in the sample code - it was laid out using neatly with the old message editor)... it changes the options in the second listbox based on the selection in the first listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523729#M847564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523730#M847565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a real beginner so don't yet fully understand all the ins and out of abap. Can you tell me what your doing as it looks like your working on a selection screen, I need to do this on a dynpro screen will it work as the search help didn't.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 11:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523730#M847565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T11:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523731#M847566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries... I generally code examples as reports because it's quicker and easier but please keep in mind that when you compile a report program it actually creates a dynpro for you automagically (screen 1000 typically) so almost everything you can do in a report screen you can do in your own dynpros.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your own dynpro, you would code two fields (as per the sample) and define each as having a listbox... for each field define a function code that is triggered when you change the screen value (as in the report example).  You can prefill the listboxes during the PBO logic for the dynpro, and in the PAI you can pick up which user command has been selected and allow the flow logic to go back round to the PBO and change the second listbox list depending on the value chosen in the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 11:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523731#M847566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T11:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523732#M847567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your, your assistance and this example &lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_F4_HELP_MODULE&lt;/P&gt;&lt;P&gt;allowed me to solve the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 09:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523732#M847567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T09:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523733#M847568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to hear it's solved... can you close this thread now then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523733#M847568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523734#M847569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought I had..What do I need to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523734#M847569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523735#M847570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523735#M847570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data on a listbox based on a selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523736#M847571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;splendid!... you must have been closing it as I typed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 10:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filtering-data-on-a-listbox-based-on-a-selection/m-p/3523736#M847571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T10:37:18Z</dc:date>
    </item>
  </channel>
</rss>

