<?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: Am I missing any syntax ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156160#M1194487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Remove the colon after the statemet subscreen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN: 'REF1' INCLUDING 'ZPROG'  '5000'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN: 'REF1' INCLUDING 'ZPROG'  '5000'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that REF1 is a subscreen area defined in the screen 4000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 10:03:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-10T10:03:46Z</dc:date>
    <item>
      <title>Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156158#M1194485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt; I am new to Dialog Prog, can you please let me know what is the prob in the below code.I have to call a Subscreen 5000 up on one condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 *&amp;amp;      Module  STATUS_4000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE status_4000 OUTPUT.
  SET PF-STATUS 'PF4000'.
  CALL SUBSCREEN: 'REF1' INCLUDING 'ZPROG'  '5000'.


*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_4000  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_4000  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_4000 INPUT.
CASE SY-UCOMM.
WHEN 'GETP'.
CALL SUBSCREEN '5000'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Ref1 is my sub screen name in screen 4000 ( in tab strip). It is throwing me this error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; "," OR "ID... FIELD..." EXPECTED AFTER SUBSCREEN  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 09:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156158#M1194485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156159#M1194486</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;Create a screen of type sub-screen and take a sub screen area SUB_AREA on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want to call this sub screen on a condition, use this code, its working:-&lt;/P&gt;&lt;P&gt;At screen logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
   MODULE INIT_SUBSCREEN.
   CALL SUBSCREEN SUB_AREA INCLUDING V_PROG V_DYNNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE INIT_SUBSCREEN.
  IF &amp;lt;condition&amp;gt;. "if condition is true then call sub-screen
    V_PROG = sy-repid.
    V_DYNNR = '800'.
  ENDIF.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156159#M1194486</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-10T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156160#M1194487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Remove the colon after the statemet subscreen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN: 'REF1' INCLUDING 'ZPROG'  '5000'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN: 'REF1' INCLUDING 'ZPROG'  '5000'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that REF1 is a subscreen area defined in the screen 4000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156160#M1194487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156161#M1194488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarun,&lt;/P&gt;&lt;P&gt;Thanks for the reply, when I saw sap help there it was written that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL SUBSCREEN SUB_AREA INCLUDING V_PROG V_DYNNR.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  in PBO and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; Call Subscreen sub_area &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; in PAI. Did I get it wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code I have given 5000 instead of ref1 but still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156161#M1194488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156162#M1194489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Advait,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Yes, I also tried removing that but it did not work.Also I made sure that the Subscreen area name in 4000 is REF1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156162#M1194489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156163#M1194490</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;Try calling the subscreen in PBO as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 MODULE STATUS_0500.
 call subscreen SCR1 including sy-repid screen_val.
*
PROCESS AFTER INPUT.

 MODULE CANCEL AT EXIT-COMMAND.
 call subscreen SCR1.
 MODULE USER_COMMAND_0500.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mention screen no in screen_val. Avoid giving it directly.&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;&lt;/P&gt;&lt;P&gt;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156163#M1194490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Am I missing any syntax ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156164#M1194491</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;First of all, you always use statement &lt;STRONG&gt;CALL SUBSCREEN&lt;/STRONG&gt; in flow logic not in module definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At screen logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
   CALL SUBSCREEN REF1 INCLUDING V_PROG V_DYNNR.

PROCESS AFTER INPUT.
   MODULE INIT_SUBSCREEN.
   CALL SUBSCREEN REF1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE INIT_SUBSCREEN.
  IF &amp;lt;condition&amp;gt;. "if condition is true then call sub-screen
    V_PROG = sy-repid.
    V_DYNNR = '5000'.
  ENDIF.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/am-i-missing-any-syntax/m-p/5156164#M1194491</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-10T11:14:25Z</dc:date>
    </item>
  </channel>
</rss>

