<?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: call subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386282#M1544728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prerna&lt;/P&gt;&lt;P&gt;As you have mentioned, there are 2 subscreen areas in main screen (normal screen).&lt;/P&gt;&lt;P&gt;you have designed 2 subscreen say scrn1(1000) and scrn2(1001).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create 1 blank subscreen for not displaying if condition does not match.&lt;/P&gt;&lt;P&gt;say 1002 is a blank screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now on your main screen you want to call both the subscreens in appropriate subscreen area based on some conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define  variable as below:&lt;/P&gt;&lt;P&gt;data: v_dynnr type sy-dynnr value '1000',&lt;/P&gt;&lt;P&gt;      v_dynnr1 type sy-dynnr value '1001',&lt;/P&gt;&lt;P&gt;      v_dynnr2 type sy-dynnr value '1002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;call subscreen sub1 (subscreen area1 on main screen) including sy-repid v_dynnr.&lt;/P&gt;&lt;P&gt;call subscreen sub2 (subscreen area2 on main screen) including sy-repid v_dynnr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call subscreen sub1.&lt;/P&gt;&lt;P&gt;call subscreen sub2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if condition one (true)&lt;/P&gt;&lt;P&gt;dynnr = 1000. (screen with data).&lt;/P&gt;&lt;P&gt;else if condition two (second true condition).&lt;/P&gt;&lt;P&gt;dynnr1 = 1001.&lt;/P&gt;&lt;P&gt;else (any non-true condition).&lt;/P&gt;&lt;P&gt;dynnr = 1002.&lt;/P&gt;&lt;P&gt;dynnr1 = 1002.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in above conditions&lt;/P&gt;&lt;P&gt;if your condition is true then display firs subscreen with data in first subscreen area of normal screen and if secodn condition is also true display second subscreen with data in second subscreen area of normal screen. Otherwise display balnk screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence both the subscreens 1000 and 1001 with data will be shown at appropriate subscreen area on normal screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get the idea by this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 09:23:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-11T09:23:48Z</dc:date>
    <item>
      <title>call subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386278#M1544724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive created 2 subscreens on a screen and based on a condition im calling the subsreen&lt;/P&gt;&lt;P&gt;but sometimes a subscreen is appearing twice on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE get_ebeln .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_ebeln OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ww_ekorg = wk_ekorg.    &lt;/P&gt;&lt;P&gt; w_dynr = wk_9100.                          &lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        w_dynr = wk_9399.                                   &lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then on the PBO&lt;/P&gt;&lt;P&gt;   CALL SUBSCREEN subscreen_9399 INCLUDING sy-repid W_DYNR.&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN SUBSCREEN_9100 INCLUDING sy-repid w_dynr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and on the PAI&lt;/P&gt;&lt;P&gt;  CALL SUBSCREEN subscreen_9399.&lt;/P&gt;&lt;P&gt; CALL SUBSCREEN SUBSCREEN_9100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was wondering if i wrote the proper code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help me on that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386278#M1544724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T07:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386279#M1544725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is simply because you have two &lt;EM&gt;subscreen areas&lt;/EM&gt; where you embed the same subscreen. So you have it displayed twice on screen. Remove one subscreen area and that's it.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
MODULE get_ebeln .
CALL SUBSCREEN subscreen_area INCLUDING sy-repid W_DYNR.

and on the PAI
CALL SUBSCREEN subscreen_area.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Based on value of W_DYNR the respective subscreen will be placed in subscreen area. No need to have two subscreen areas for two subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386279#M1544725</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T07:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386280#M1544726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i understand what u mean&lt;/P&gt;&lt;P&gt;but since i have 2 subscreen areas, i should display them based on the condition, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if in the PAI, i write only, CALL SUBSCREEN SUBSCREEN_9100., it will call only that screen and if the other condition is true, it wont call the other subscreen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am I right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386280#M1544726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T07:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386281#M1544727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but since i have 2 subscreen areas, i should display them based on the condition, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, it is &lt;EM&gt;subscreen&lt;/EM&gt; which you called based on the condition, not the &lt;EM&gt;subscreen area&lt;/EM&gt; . Subs. area have to be statically known both in PBO and PAI. So you mention it only once. Then based on the condition you determine which &lt;STRONG&gt;subscreen&lt;/STRONG&gt; you want to display in this subscreen area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUBSCREEN_9100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This doesn't mean tha subscreen 9100 is called. Alll that means is that screen has &lt;EM&gt;subscreen area&lt;/EM&gt; called &lt;EM&gt;subscreen_9100&lt;/EM&gt; . The parameter which determines which subscreen is placed there is &lt;STRONG&gt;W_DYNR&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN SUBSCREEN_AREA INCLUDING sy-repid W_DYNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note! I changed the name of subscreen area &lt;EM&gt;subscreen_9100&lt;/EM&gt; to &lt;EM&gt;subscreen_area&lt;/EM&gt; intentionally so you would see that it is not dispalyed based on condition, but once it displays W_DYNR = 9100 and second time it shows W_DYNR = 9399. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you ge the difference &lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 08:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386281#M1544727</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T08:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386282#M1544728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prerna&lt;/P&gt;&lt;P&gt;As you have mentioned, there are 2 subscreen areas in main screen (normal screen).&lt;/P&gt;&lt;P&gt;you have designed 2 subscreen say scrn1(1000) and scrn2(1001).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create 1 blank subscreen for not displaying if condition does not match.&lt;/P&gt;&lt;P&gt;say 1002 is a blank screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now on your main screen you want to call both the subscreens in appropriate subscreen area based on some conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define  variable as below:&lt;/P&gt;&lt;P&gt;data: v_dynnr type sy-dynnr value '1000',&lt;/P&gt;&lt;P&gt;      v_dynnr1 type sy-dynnr value '1001',&lt;/P&gt;&lt;P&gt;      v_dynnr2 type sy-dynnr value '1002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;call subscreen sub1 (subscreen area1 on main screen) including sy-repid v_dynnr.&lt;/P&gt;&lt;P&gt;call subscreen sub2 (subscreen area2 on main screen) including sy-repid v_dynnr1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call subscreen sub1.&lt;/P&gt;&lt;P&gt;call subscreen sub2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if condition one (true)&lt;/P&gt;&lt;P&gt;dynnr = 1000. (screen with data).&lt;/P&gt;&lt;P&gt;else if condition two (second true condition).&lt;/P&gt;&lt;P&gt;dynnr1 = 1001.&lt;/P&gt;&lt;P&gt;else (any non-true condition).&lt;/P&gt;&lt;P&gt;dynnr = 1002.&lt;/P&gt;&lt;P&gt;dynnr1 = 1002.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in above conditions&lt;/P&gt;&lt;P&gt;if your condition is true then display firs subscreen with data in first subscreen area of normal screen and if secodn condition is also true display second subscreen with data in second subscreen area of normal screen. Otherwise display balnk screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence both the subscreens 1000 and 1001 with data will be shown at appropriate subscreen area on normal screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get the idea by this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 09:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386282#M1544728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T09:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386283#M1544729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks marcin&lt;/P&gt;&lt;P&gt;it really helped&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 10:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen/m-p/7386283#M1544729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T10:01:40Z</dc:date>
    </item>
  </channel>
</rss>

