<?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: Error using a call screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609277#M1278183</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;&lt;STRONG&gt;CALL SCREEEN ...&lt;/STRONG&gt;  is for normal screen.&lt;/P&gt;&lt;P&gt;Make these two screen as &lt;STRONG&gt;normal screen&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;Your issue will be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I f you do not want to make those subscreens to  normal screens, then you need to use &lt;/P&gt;&lt;P&gt;the proper &lt;STRONG&gt;syntax of subscreen  from the flow logic not from the program&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN  sub_area INCLUDING sy-repid  '0200'.
  CALL SUBSCREEN  sub_area1 INCLUDING sy-repid  '0300'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your specified code , I suggest you to write like ---&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM mostra_cabecalho.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0002'.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0001'.
ENDFORM. "mostra_cabecalho

----------------------------------------------------------------------
* FORM esconde_cabecalho *
----------------------------------------------------------------------
FORM esconde_cabecalho.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0022'.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0001'.
ENDFORM. "esconde_cabecalho&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" But you need to write the CALL SUBSCREEN ... in the Flow logic of the screen only.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 17:17:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T17:17:00Z</dc:date>
    <item>
      <title>Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609275#M1278181</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've a z program with two different screens (one made by copy of another), both with atribute "screen type subscreen" at my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM mostra_cabecalho.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 0002.&lt;/P&gt;&lt;P&gt;  call SCREEN 0001.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "mostra_cabecalho&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM esconde_cabecalho                                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM esconde_cabecalho.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 0022.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 0001.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "esconde_cabecalho&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i've a system error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erro tpo.exec.         DYNP_WRONG_SCREEN_TYPE                                                      &lt;/P&gt;&lt;P&gt;Data e hora            15.05.2009 18:00:10                                                                                &lt;/P&gt;&lt;P&gt;Texto breve                                                                                &lt;/P&gt;&lt;P&gt;Incorrect screen type: Screen is incorrectly defined or used.                                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609275#M1278181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T17:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609276#M1278182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the syntax..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"Write this way...
  CASE ok_code.
    WHEN 'FC1010'.
      LEAVE TO SCREEN 1010.
  Encase.


or

FORM mostra_cabecalho.
   CALL SCREEN 0002.         "Comment this
   LEAVE TO SCREEN 0002. "Write this
   call SCREEN 0001.             "Comment this
    LEAVE TO SCREEN 0001.  "Write this
 ENDFORM.                    "mostra_cabecalho

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609276#M1278182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609277#M1278183</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;&lt;STRONG&gt;CALL SCREEEN ...&lt;/STRONG&gt;  is for normal screen.&lt;/P&gt;&lt;P&gt;Make these two screen as &lt;STRONG&gt;normal screen&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;Your issue will be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I f you do not want to make those subscreens to  normal screens, then you need to use &lt;/P&gt;&lt;P&gt;the proper &lt;STRONG&gt;syntax of subscreen  from the flow logic not from the program&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN  sub_area INCLUDING sy-repid  '0200'.
  CALL SUBSCREEN  sub_area1 INCLUDING sy-repid  '0300'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your specified code , I suggest you to write like ---&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM mostra_cabecalho.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0002'.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0001'.
ENDFORM. "mostra_cabecalho

----------------------------------------------------------------------
* FORM esconde_cabecalho *
----------------------------------------------------------------------
FORM esconde_cabecalho.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0022'.
CALL SUBSCREEN  &amp;lt;sub_area&amp;gt; INCLUDING sy-repid  '0001'.
ENDFORM. "esconde_cabecalho&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" But you need to write the CALL SUBSCREEN ... in the Flow logic of the screen only.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609277#M1278183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T17:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609278#M1278184</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 try, but i've the same error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erro tpo.exec.         DYNP_WRONG_SCREEN_TYPE                                                      &lt;/P&gt;&lt;P&gt;Data e hora            15.05.2009 18:22:57                                                                                &lt;/P&gt;&lt;P&gt;The attribute screen type with the values 'Normal Screen' and                                 &lt;/P&gt;&lt;P&gt;     'Subscreen' determines the use of the screen. If a normal screen is used                      &lt;/P&gt;&lt;P&gt;      as subscreen or vice versa, an error occurs.                                                                                &lt;/P&gt;&lt;P&gt;The screen "ZPRMM02_TROCAS_DEVOLUCOES" 0022 has, in this respect, an                          &lt;/P&gt;&lt;P&gt;      inappropriate screen type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609278#M1278184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T17:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609279#M1278185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call screen is not for 'sub' screens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609279#M1278185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T17:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609280#M1278186</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;Pinaki gave you right clues. I will extend them to make sure you get the idea correcly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;CALL SCREEN&lt;/STRONG&gt; can be used in ABAP program directly&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;CALL SUBSCREEN&lt;/STRONG&gt; can only be used in main screen's flow logic&lt;/P&gt;&lt;P&gt;- main screen must be "normal" screen and should be called via CALL SCREEN&lt;/P&gt;&lt;P&gt;- main screen has to have subscreen area where you put your subscreen&lt;/P&gt;&lt;P&gt;- inside main screen flow logic (NOT in ABAP program) use CALL SUBSCREEN to call you subscreen on this main screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the example code would look like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"ABAP program
CALL SCREEN 0100. "main screen (type normal) with subscreen area placed on it (i.e 'SUB_AREA')

"flow logic of screen 0100
PROCESS BEFORE OUTPUT.
   ...
   CALL SUBSCREEN sub_area INCLUDING sy-repid '0200'.   "0200 is subscreen (type subscreen)

PROCESS AFTER INPUT.
   ...
   CALL SUBSCREEN sub_area.
&lt;/CODE&gt;&lt;/PRE&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>Sat, 16 May 2009 12:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609280#M1278186</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-16T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609281#M1278187</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 want to display the screens in the sub screen area then you need to call these screen in this way..&lt;/P&gt;&lt;P&gt;(The screen type should be &lt;STRONG&gt;SubScreen&lt;/STRONG&gt; in screen attributes tab... Refer to example DEMO_DYNPRO_TABSTRIP_LOCAL&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call subscreen: sub1 including sy-repid '0110',
                  sub2 including sy-repid '0120',
                  sub3 including sy-repid '0130'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to call these screen as normal screen then screen type should be &lt;STRONG&gt;Normal&lt;/STRONG&gt; in screen attributes tab.The code should be &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Call Screen 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 14:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609281#M1278187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T14:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error using a call screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609282#M1278188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u have created 2 screens with subscreen attribute tick on. so those screens are not normal screen.&lt;/P&gt;&lt;P&gt;to call normal screen  we use 'CALL SCREEN' statement but for subscreens we have to use &lt;/P&gt;&lt;P&gt;'CALL SUBSCREEN' statements.&lt;/P&gt;&lt;P&gt;now for this  u hve to create screen of type subscreen which u hve already created.&lt;/P&gt;&lt;P&gt;after go to the screen layout and create a subscreen area by selecting the subscreen icon on the left side of the layout screen.&lt;/P&gt;&lt;P&gt;after this set the name n attr of ur subscreen area.&lt;/P&gt;&lt;P&gt;once this is done call ur subscreen in ur PBO &amp;amp; PAI by using:&lt;/P&gt;&lt;P&gt;'CALL SUBSCREEN &amp;lt;subscreen_area_name&amp;gt; INCLUDING prog_name/sy-repid &amp;lt;dynnr no. screen no&amp;gt; this will come in ur PBO&lt;/P&gt;&lt;P&gt;n in PAI u jst have to use :&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN &amp;lt;subscreen_area_name&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now as per the SAP rules the 1 statement shld come after all the statements of PBO i.e it shld be the last statement of the PBO and the 2 statement shld be the first statement of the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Punit Raval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 15:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-a-call-screen/m-p/5609282#M1278188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-16T15:12:59Z</dc:date>
    </item>
  </channel>
</rss>

