<?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: Conditional call to a subscreen in module pool program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006954#M1496085</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;PRE&gt;&lt;CODE&gt;In TOP Include
data repid type sy-repid,
        dynnr type sy-dynnr.


In PBO of main screen
module status_100. " First Call This Module to provide the SubScreen Number to below Code
call subscreen sub including repid dynnr. " This serves the purpose of calling subscreen based on condition


in Program.

module status_100.
repid = sy-repid.
if your_condition = 'X'. " This also can be implemented in any PAI logi as its purpose is just to pass a value to DYNNR 
dynnr = '200'. " The SUB Screen  Number you want to pass
else.
dynnr = '300'. " Dummy Sub Screen Screen or any other (Make Sure these are of SUB SCREEN type )
endif.
endmodule&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 12:13:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-26T12:13:10Z</dc:date>
    <item>
      <title>Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006949#M1496080</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;Could anybody please let me know how i will be able to call a subscreen conditionally in a module pool program?&lt;/P&gt;&lt;P&gt;Example: I have to call a subscreen XXXX if a FLAG = X. How will I achieve this?&lt;/P&gt;&lt;P&gt;I tried to write the below code in PAI&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if flag = 'X'.
call subscreen XXXX.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This produced an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smithesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 11:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006949#M1496080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006950#M1496081</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;Just define 2 subscreens - one is your actual subscreen, the other is an empty screen.&lt;/P&gt;&lt;P&gt;In the flow logic of the main screen do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module determine_subscreen.   " determines global variable 'subscreen_number' number depending on condition
call subscreen &amp;lt;subscreen_area&amp;gt; including sy-repid subscreen_number.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Gerd Rother&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 11:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006950#M1496081</guid>
      <dc:creator>gerd_rother</dc:creator>
      <dc:date>2010-05-26T11:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006951#M1496082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   You can do conditionally but in other way , u will have to disable the elemnts  of the subscreen based on the flag in the PBO of the screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 11:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006951#M1496082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T11:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006952#M1496083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In PAI Module you cannot write IF and ENDIF statements.&lt;/P&gt;&lt;P&gt;You cannot call Subscreen area based on conditions.&lt;/P&gt;&lt;P&gt;Because the statement, Call Subscreen &amp;lt;area&amp;gt; must be in PAI event&lt;/P&gt;&lt;P&gt;otherwise it gives syntax error.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 11:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006952#M1496083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006953#M1496084</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;when ur condition satisfies call an empty screen on the subscreen &lt;/P&gt;&lt;P&gt;i.e if r_but eq 'X'.&lt;/P&gt;&lt;P&gt;call screen 100. (empty screen)&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;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Bhavana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 11:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006953#M1496084</guid>
      <dc:creator>former_member233090</dc:creator>
      <dc:date>2010-05-26T11:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006954#M1496085</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;PRE&gt;&lt;CODE&gt;In TOP Include
data repid type sy-repid,
        dynnr type sy-dynnr.


In PBO of main screen
module status_100. " First Call This Module to provide the SubScreen Number to below Code
call subscreen sub including repid dynnr. " This serves the purpose of calling subscreen based on condition


in Program.

module status_100.
repid = sy-repid.
if your_condition = 'X'. " This also can be implemented in any PAI logi as its purpose is just to pass a value to DYNNR 
dynnr = '200'. " The SUB Screen  Number you want to pass
else.
dynnr = '300'. " Dummy Sub Screen Screen or any other (Make Sure these are of SUB SCREEN type )
endif.
endmodule&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 12:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006954#M1496085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional call to a subscreen in module pool program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006955#M1496086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it for user commands.&lt;/P&gt;&lt;P&gt;like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case ok_cdoe&lt;/P&gt;&lt;P&gt;When 'ABCD'.&lt;/P&gt;&lt;P&gt;Call subscreen ....&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 12:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conditional-call-to-a-subscreen-in-module-pool-program/m-p/7006955#M1496086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T12:14:24Z</dc:date>
    </item>
  </channel>
</rss>

