<?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 Query Regarding Selection-Screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122841#M1363988</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 a Report program written where in I am writing a code something similar to this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF SELECTION-SCREEN '1020'.....&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test1 TYPE I.&lt;/P&gt;&lt;P&gt;END OF SELECTION-SCREEN..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a selection screen gets created with the number 1020 and has a parameter p_test1 when the report is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am going to the screen 1020's layout and I am creating a CONTAINER to display something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the report is executed, the parameter p_test1 and the CONTAINER (containing the data) are displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am adding another parameter p_test2 to the code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF SELECTION-SCREEN '1020'.....&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test1 TYPE I.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test2 TYPE I.&lt;/P&gt;&lt;P&gt;END OF SELECTION-SCREEN..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this and activate the code, the Selection-Screen 1020 gets regenerated and the CONTAINER that I manually created in the Screen Layout gets deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every time, I am making a change to that SELECTION-SCREEN code, I have to manually recreate the CONTAINER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any work around for this apart from creating a normal screen and call it in the program? That is can I create a CONTAINER in the program itself just like the Radio buttons, Checkboxes, List boxes, etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Aug 2009 07:21:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-31T07:21:00Z</dc:date>
    <item>
      <title>Query Regarding Selection-Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122841#M1363988</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 a Report program written where in I am writing a code something similar to this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF SELECTION-SCREEN '1020'.....&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test1 TYPE I.&lt;/P&gt;&lt;P&gt;END OF SELECTION-SCREEN..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a selection screen gets created with the number 1020 and has a parameter p_test1 when the report is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am going to the screen 1020's layout and I am creating a CONTAINER to display something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the report is executed, the parameter p_test1 and the CONTAINER (containing the data) are displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am adding another parameter p_test2 to the code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF SELECTION-SCREEN '1020'.....&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test1 TYPE I.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test2 TYPE I.&lt;/P&gt;&lt;P&gt;END OF SELECTION-SCREEN..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this and activate the code, the Selection-Screen 1020 gets regenerated and the CONTAINER that I manually created in the Screen Layout gets deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every time, I am making a change to that SELECTION-SCREEN code, I have to manually recreate the CONTAINER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any work around for this apart from creating a normal screen and call it in the program? That is can I create a CONTAINER in the program itself just like the Radio buttons, Checkboxes, List boxes, etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 07:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122841#M1363988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T07:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding Selection-Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122842#M1363989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When ever your change in the Selection screen parameters in your report it will not reflect in already defiend screen.You have to define manually in the screen level.This one is applicable for selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kanagaraja L&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 09:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122842#M1363989</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2009-08-31T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding Selection-Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122843#M1363990</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;When you try to change the selection screen, it actually gets regenerated resulting in your container that you created in the Screen Layout to disappear. It is always advisable not to change the selection screen when you have a container manually laid out in the Screen Painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can do is create a docking container using &lt;STRONG&gt;cl_gui_docking_container&lt;/STRONG&gt;, that is a container created programmatically. SDN gives you a lot of examples on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the code given by Alvaro&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="7896468"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nitwick on Aug 31, 2009 3:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 09:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122843#M1363990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T09:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding Selection-Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122844#M1363991</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;It is not advised to modify the selection-screen generated via code in SE51, as every re-generation of the code removes any manual modifications. In the current case since you just want to add a custom container in the selection screen, you need to achieve the same via code only. SAP provides a docking container for the same u201Ccl_gui_docking_containeru201D. Using this you can create a placeholder on your selection-screen to hold a custom container and then host any object in that custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: lo_dock TYPE REF TO cl_gui_docking_container,&lt;/P&gt;&lt;P&gt;          lo_cont TYPE REF TO cl_gui_container.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT lo_dock&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        repid     = &amp;lt;sy-cprog&amp;gt;&lt;/P&gt;&lt;P&gt;        dynnr     = &amp;lt;sy-dynnr&amp;gt;&lt;/P&gt;&lt;P&gt;        ratio     = 80&lt;/P&gt;&lt;P&gt;        side      = cl_gui_docking_container=&amp;gt;dock_at_bottom&lt;/P&gt;&lt;P&gt;        name      = 'DOCK_CONT'.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Error in the Docking control' TYPE 'E'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;      lo_cont ?= lo_dock.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;Or you will need to code your program in dynpro (SE51).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ahamed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2009 11:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122844#M1363991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-31T11:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query Regarding Selection-Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122845#M1363992</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;if you need selection screen together with other GUI elements, you can also create a normal screen with all the elements you need and a subscreen area for your selection screen. Create your selection screen like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of screen1020 as subscreen.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tahn call your screen and your subscreen from PBO/PAI of that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hans Hohenfeld&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 15:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-selection-screen/m-p/6122845#M1363992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T15:02:52Z</dc:date>
    </item>
  </channel>
</rss>

