<?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: Dynamic ALV on selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443659#M13162</link>
    <description>&lt;P&gt;Yeah but OP also wants "Expand/collapse the selection screen and accordingly the ALV should adjust". &lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 18:20:56 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2017-05-05T18:20:56Z</dc:date>
    <item>
      <title>Dynamic ALV on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443656#M13159</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a program in which I need to display the ALV on the same screen as selection screen. I should be able to expand/collapse the selection screen and accordingly the ALV should adjust.&lt;/P&gt;&lt;P&gt;Could you please suggest me on the design?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 02:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443656#M13159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-05T02:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443657#M13160</link>
      <description>&lt;P&gt;Create a subscreen as a special case of a &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapselection-screen_tabbed.htm"&gt;tabbed block &lt;/A&gt;and display your ALV in a custom container there.&lt;/P&gt;&lt;P&gt;Another way around, you can also display your ALV on a general screen and embed selection screen(s) as subscreen there. &lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 05:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443657#M13160</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-05-05T05:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443658#M13161</link>
      <description>&lt;P&gt;Or...&lt;/P&gt;&lt;P&gt;Run your selection and get your result set.  Export that to a memory parameter.&lt;/P&gt;&lt;P&gt;In initialisation  check to see if you have any results in the memory parameter.  If you have,  create a docking container docked to the default screen.  Then use that as a parent for your alv grid:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Initialization.
   Perform Init Changing gs_Run_Parameters.
*
*  Re-populate the select options.
*
   s_Bullet[] = gs_Run_Parameters-Bulletins.
   s_Werks[]  = gs_Run_Parameters-Plants.
   s_ArbPl[]  = gs_Run_Parameters-Work_Centres.
*
*  Display prior results ?
*
   If gs_Run_Parameters-Populated = Abap_True.
      Perform Display_Bulletins Changing gs_Run_Parameters
                                         gs_Display.
   EndIf.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/33093-capture.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Don't forget to clear the memory parameter after you have read it:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;     Clear es_Run_Parameters.
*
*    Protect the import from crashing - if there is a problem then just delete the
*    cluster.
*
     Try.
        Import ZDM_BULLETIN = es_run_Parameters From Memory.
     Catch CX_SY_IMPORT_MISMATCH_ERROR.
        Clear es_Run_Parameters.
        Delete From Memory Id 'ZDM_BULLETIN'.
     EndTry.
*
     If es_Run_Parameters-Populated = Abap_True.
        Delete From Memory Id 'ZDM_BULLETIN'.
     EndIf.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 07:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443658#M13161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-05T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443659#M13162</link>
      <description>&lt;P&gt;Yeah but OP also wants "Expand/collapse the selection screen and accordingly the ALV should adjust". &lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 18:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443659#M13162</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2017-05-05T18:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443660#M13163</link>
      <description>&lt;P&gt;For the Expand/Collapse, you could use the MODIFY SCREEN and alike statements to hide or show fields at runtime, but if you use a selection screen containing a subscreen area, as Horst suggested, I think it can't collapse as the compiler defines the area with option "vertical resize" equal to OFF.&lt;/P&gt;&lt;P&gt;So, I guess the only option is to use a dynpro with embedded selection screen (see Horst second part of his answer). But then, only the layout of the selection screen will work but not the other features (like program variant).&lt;/P&gt;&lt;P&gt;Otherwise, using a docking container could be the solution as Richard said, by estimating an approximate container's height based on expand/collapse status.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 19:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443660#M13163</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-05T19:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ALV on selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443661#M13164</link>
      <description>&lt;P&gt;Grab the horizontal sash of the docking container and move it up or down.... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Perhaps a better explanation of 'Expand/Collapse' of the selection screen would help,  because I'm not exactly sure what he means.  However, I would think a PAI would/needs to be involved some how and dependant on the input fields (for example if a check box radio button or drop down list is used) but other types of fields would require as far as I know a key stroke from the operator&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 07:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-alv-on-selection-screen/m-p/443661#M13164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-08T07:19:44Z</dc:date>
    </item>
  </channel>
</rss>

