<?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 with condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197167#M1375541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign a function code to the check box..&lt;/P&gt;&lt;P&gt;and in PBO of the calling screen.. &lt;/P&gt;&lt;P&gt;1) write the code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL SUBSCREEN: &amp;lt;area&amp;gt; INCLUDING sy-repid &amp;lt;dynpronum&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;// &amp;lt;area&amp;gt; is the subarea u define for the subscreen.&lt;/P&gt;&lt;P&gt;in the PAI of calling screen.&lt;/P&gt;&lt;P&gt;1)write the statemnt..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN &amp;lt;area&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2) in a user_command module write the functionality &lt;/P&gt;&lt;P&gt;  for the func code o check box accordingly..&lt;/P&gt;&lt;P&gt;useful link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2009 07:18:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-23T07:18:06Z</dc:date>
    <item>
      <title>Call subscreen with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197163#M1375537</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 need to call subscreen 1001 when checkbox is clicked. I tried writing the IF statement in PBO but it returned me error "Statement 'IF' is not defined. Check your spelling..". But if I put it inside a module in PBO, it gave me error "." or "ID ... FIELD ..." expected after "SUBSCREEN". If I am not allowed to write the condition neither on PBO or MODULE, then how do I call a subscreen with a condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 06:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197163#M1375537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Call subscreen with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197164#M1375538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call a form routine inside module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 06:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197164#M1375538</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-09-23T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Call subscreen with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197165#M1375539</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;Put the IF condition in the main program. Based on the IF condition call the subscreen dyanmically.&lt;/P&gt;&lt;P&gt;Check program DEMO_DYNPRO_SUBSCREENS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 06:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197165#M1375539</guid>
      <dc:creator>rvinod1982</dc:creator>
      <dc:date>2009-09-23T06:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call subscreen with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197166#M1375540</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;Putting the code in FORM still give me error "." or "ID ... FIELD ..." expected after "SUBSCREEN". The demo program does not call subscreen with a condition. I need to know how to call a subscreen with condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 06:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197166#M1375540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T06:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Call subscreen with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197167#M1375541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign a function code to the check box..&lt;/P&gt;&lt;P&gt;and in PBO of the calling screen.. &lt;/P&gt;&lt;P&gt;1) write the code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL SUBSCREEN: &amp;lt;area&amp;gt; INCLUDING sy-repid &amp;lt;dynpronum&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;// &amp;lt;area&amp;gt; is the subarea u define for the subscreen.&lt;/P&gt;&lt;P&gt;in the PAI of calling screen.&lt;/P&gt;&lt;P&gt;1)write the statemnt..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL SUBSCREEN &amp;lt;area&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2) in a user_command module write the functionality &lt;/P&gt;&lt;P&gt;  for the func code o check box accordingly..&lt;/P&gt;&lt;P&gt;useful link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197167#M1375541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T07:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Call subscreen with condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197168#M1375542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Define one variable to have screen number.
&lt;PRE&gt;&lt;CODE&gt;DATA:g_screen TYPE sy-dynnr.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Assign function code to the Checkbox. Goto Layout-&amp;gt;double click on checkbox-&amp;gt;set FctCode.
&amp;lt;li&amp;gt;Define subscreen area on main screen with name SUB1.
&amp;lt;li&amp;gt;Flow logic of screen
&lt;PRE&gt;&lt;CODE&gt;process before output.
  MODULE status_100.
  CALL subscreen: sub11 including sy-repid g_screen
process after input.

  CALL subscreen: sub1.
  MODULE user_command_100.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;user_command_100 module should be like below
&lt;PRE&gt;&lt;CODE&gt;*----------------------------------------------------------------------*
*  MODULE user_command_100 INPUT
*----------------------------------------------------------------------*
MODULE user_command_100 INPUT.
  IF g_checkbox = 'X'.
    g_screen = '1001'.
  ELSE.
    g_screen = space.
  ENDIF.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;            

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-condition/m-p/6197168#M1375542</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-23T07:35:22Z</dc:date>
    </item>
  </channel>
</rss>

