<?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 a condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141647#M1513563</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;You need one more &lt;STRONG&gt;Subscreen&lt;/STRONG&gt; having no Screen element on it say this screen as &lt;STRONG&gt;0112&lt;/STRONG&gt; in else case you can call this Screen like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if &amp;lt;logic&amp;gt;.
  dynnr = '0111'.
else.
  dynnr = '0112'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve our your problem, Please reply in case of any Confusion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 08:49:32 GMT</pubDate>
    <dc:creator>faisalatsap</dc:creator>
    <dc:date>2010-08-18T08:49:32Z</dc:date>
    <item>
      <title>call subscreen with a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141644#M1513560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi masters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having a problem with call subscren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a main screen. in main screen i have an input screen called LOCATION.&lt;/P&gt;&lt;P&gt;in location if the user gives 'SIDING' then i need to call the subscreen '0111'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have created a subscreen area in my main screen called SUB_AREA.&lt;/P&gt;&lt;P&gt;I have created a subscreen with '0111' type SUBSCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO of main screen i have declared like this &lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUB_AREA INCLUDING 'ZDYNAMIX_SCREE_TOMS' '0111'..&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUB_AREA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the user gives SIDING for LOCATION and clicks on ENTER i need to display my SUBSCREEN '0111'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where and how i have to write a conditioanl logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i have some info pls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;much appriciated and thanks to everyone for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;pasala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 07:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141644#M1513560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T07:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen with a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141645#M1513561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a variable for screen number,&lt;/P&gt;&lt;P&gt;and change this screen number depend on your logic : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* --1-- describe a screen number variable in _global data of your program_
DATA: gv_screen_number LIKE sy-dynnr.

* --2-- call a module from PBO 
*         this modul will decide which number to be called :

PROCESS BEFORE OUTPUT.
  MODULE decide_screen_number.

* --3-- use variable gv_screen_number for screen to be called :
CALL SUBSCREEN SUB_AREA INCLUDING 'ZDYNAMIX_SCREE_TOMS' gv_screen_number.

and     MODULE decide_screen_number should look like that :

  MODULE decide_screen_number.
if &amp;lt;...logic  &amp;gt;.
  gv_screen_number = '0111'.
else.
  gv_screen_number = ...
endif.

ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bulent Balci on Aug 18, 2010 9:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 07:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141645#M1513561</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-18T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen with a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141646#M1513562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much it was a great reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;small issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : dynnr type sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt; module fill_dynamic_screen.&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUB_AREA INCLUDING 'ZDYNAMIX_SCREE_TOMS' dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i give condition such as&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;module FILL_DYNAMIC_SCREEN output-----.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not location is initial.&lt;/P&gt;&lt;P&gt;  if location  = 'Depot'.&lt;/P&gt;&lt;P&gt;      dynnr = '0111'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule-----.            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after module call i have a statement like this.&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN SUB_AREA INCLUDING 'ZDYNAMIX_SCREE_TOMS' dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now at this stage in my DYNNR is eaither initial or '0100'(which is main screen) so it gives me runtime error  saying dynpor does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me as to how can i avoid this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141646#M1513562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T08:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen with a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141647#M1513563</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;You need one more &lt;STRONG&gt;Subscreen&lt;/STRONG&gt; having no Screen element on it say this screen as &lt;STRONG&gt;0112&lt;/STRONG&gt; in else case you can call this Screen like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if &amp;lt;logic&amp;gt;.
  dynnr = '0111'.
else.
  dynnr = '0112'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve our your problem, Please reply in case of any Confusion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141647#M1513563</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2010-08-18T08:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen with a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141648#M1513564</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;It's not possible to use logic in PBO directly,&lt;/P&gt;&lt;P&gt;so you can not use an if condition in PBO like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;logic&amp;gt;.&lt;/P&gt;&lt;P&gt;  call subscreen ....&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm with Faisal , you have to use an empty screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141648#M1513564</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-18T09:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: call subscreen with a condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141649#M1513565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you guys.... u both made my day a rocking day... thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 10:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-subscreen-with-a-condition/m-p/7141649#M1513565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T10:03:25Z</dc:date>
    </item>
  </channel>
</rss>

