<?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 Screen layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480688#M558870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do conditions in screen flow, but you can assign the subscreens dynamically by passing a variable instead of the literal screen number. So you in condition, you would be assigning the subscreen numbers that you want to the first to subscreen areas and leaving the last one empty, or assigning a dummy subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 14:32:09 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-07-04T14:32:09Z</dc:date>
    <item>
      <title>Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480687#M558869</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 to display fields dynamically based on certain conditions,so i started with grouping certain fields in several subscreens like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;subscreen A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;subscreen B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;subscreen C&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if for certain type of conditions i'll be displaying subscreen A and subscreen C next to that ,like subscreen C should move up to the palce of subscreen B and subscreen B will not be displayed.(so all combination of the three screens,without&lt;/P&gt;&lt;P&gt;any empty space inbetwen them).Wondering how to go abut that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there screen flow command which calls subscreen conditionally based on 'IF' conditions and how to move screens/fields up from its original locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 14:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480687#M558869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T14:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480688#M558870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do conditions in screen flow, but you can assign the subscreens dynamically by passing a variable instead of the literal screen number. So you in condition, you would be assigning the subscreen numbers that you want to the first to subscreen areas and leaving the last one empty, or assigning a dummy subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 14:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480688#M558870</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-04T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480689#M558871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what syntax should i use if you are saying "you can do conditions in screen flow,"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in screen flow if i call subscreen 1 and 3 in two separate statements ,will subscreen 3 will take the coordinates of subscreen 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 14:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480689#M558871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T14:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480690#M558872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry Dan,  when typing, your fingers sometimes do the exact opposite of what your mind is thinking.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant,  you CAN NOT do conditions with the screen flow.  So you condition will need to be inside a module of the PBO, where you can then set the subscreen numbers into variables and use these variables within your screen flow logic.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 14:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480690#M558872</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-04T14:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480691#M558873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Dan, I've spent the last view minutes putting together an example, which works quite well.  Here is the main program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT zrich_001.

DATA: v_suba TYPE sy-dynnr.
DATA: v_subb TYPE sy-dynnr.
DATA: v_subc TYPE sy-dynnr.

PARAMETERS: p_suba AS CHECKBOX.
PARAMETERS: p_subb AS CHECKBOX.
PARAMETERS: p_subc AS CHECKBOX.

CALL SCREEN 100.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  PBO  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE pbo OUTPUT.

*set pf-status 'Main'.

  IF p_suba = 'X'.
    v_suba = '0101'.
  ENDIF.

  IF p_subb = 'X'.
    IF v_suba IS INITIAL.
      v_suba = '0102'.
    ELSE.
      v_subb = '0102'.
    ENDIF.
  ENDIF.

  IF p_subc = 'X'.
    IF v_suba IS INITIAL.
      v_suba = '0103'.
    ELSEIF v_subb IS INITIAL.
      v_subb = '0103'.
    ELSE.
      v_subc = '0103'.
    ENDIF.
  ENDIF.

  IF v_suba IS INITIAL.
    v_suba = '9999'.
  ENDIF.
  IF v_subb IS INITIAL.
    v_subb = '9999'.
  ENDIF.
  IF v_subc IS INITIAL.
    v_subc = '9999'.
  ENDIF.

ENDMODULE.                 " PBO  OUTPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  pai  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE pai INPUT.

  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE PROGRAM.
  ENDCASE.

ENDMODULE.                 " pai  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you can put your own gui status and other stuff in here, but you get the idea.  Here is the screen flow logic of screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PROCESS BEFORE OUTPUT.
  MODULE pbo.
  CALL SUBSCREEN subsa INCLUDING sy-repid v_suba.
  CALL SUBSCREEN subsb INCLUDING sy-repid v_subb.
  CALL SUBSCREEN subsc INCLUDING sy-repid v_subc.



PROCESS AFTER INPUT.
  MODULE pai.
  CALL SUBSCREEN subsa .
  CALL SUBSCREEN subsb .
  CALL SUBSCREEN subsc .


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on screen 100, there are three subscreen areas,  called SUBSA, SUBSB, SUBSC.  Also in this program there are three subscreen dynpros, called 101, 102, and 103.  So all this will need to be created to make this example work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can see in the PBO, that I am dynamically assigning the subscreen numbers to the subscreen area variables depending on what you select on the selection screen.  Also, it is important to assign a dummy subscreen(with nothing in it) to any subscreen area which has not been assigned a real subscreen.  So you see that I am assigning subscreen 9999 for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 15:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480691#M558873</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-04T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480692#M558874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, for this example, I just put a text label in each subscreen, like "Subscreen A" so that I could see which subscreens where being embeded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 15:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480692#M558874</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-04T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Screen layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480693#M558875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich! . It should solve my issue .I'll be trying this now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 17:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-screen-layout/m-p/2480693#M558875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T17:01:19Z</dc:date>
    </item>
  </channel>
</rss>

