<?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: Calling modules on screen flow logic based on some condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152429#M454514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we out any logical (comparison statement ) expression on screen flow logic.&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Apr 2007 07:10:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-14T07:10:53Z</dc:date>
    <item>
      <title>Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152427#M454512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing a function module with few screens. My busienss requirement is such that i need to use some standard Module code, not this call should be conditional, and should be called only for the first time when screen is loaded. &lt;/P&gt;&lt;P&gt;I can not use chain end chain conditions as i am not giving any field open to users to load data. &lt;/P&gt;&lt;P&gt;Please sugegst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 06:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152427#M454512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T06:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152428#M454513</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;As per my understanding, u can write those nodules in PBO of the screen and then set a flag variable 'Y', in the end of that modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check a condition that if flag &amp;lt;&amp;gt; 'Y', then only that code is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So firset time when the screen will be loaded , flag will not be y and that modules will be executed, but nest time those will not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 06:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152428#M454513</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-14T06:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152429#M454514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we out any logical (comparison statement ) expression on screen flow logic.&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152429#M454514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152430#M454515</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;we can write out any logical (comparison statement ) expression on screen flow logic.we can only write modules i that but in that module u can put the condition to execute that code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_1000.&lt;/P&gt;&lt;P&gt;  MODULE SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SELECT OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FLAG &amp;lt;&amp;gt; 'Y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT  A&lt;SUB&gt;MATNR A&lt;/SUB&gt;EBELN EBELP MENGE LIFNR A~WERKS&lt;/P&gt;&lt;P&gt;           FROM EKPO AS A INNER JOIN EKKO AS B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ON A&lt;SUB&gt;EBELN = B&lt;/SUB&gt;EBELN&lt;/P&gt;&lt;P&gt;           INNER JOIN MARC AS C&lt;/P&gt;&lt;P&gt;           ON A&lt;SUB&gt;MATNR = C&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;           AND A&lt;SUB&gt;WERKS = C&lt;/SUB&gt;WERKS&lt;/P&gt;&lt;P&gt;           INTO TABLE ITAB_TC&lt;/P&gt;&lt;P&gt;           WHERE A~EBELN = EKPO-EBELN&lt;/P&gt;&lt;P&gt;           AND BSART IN ('ZIMP' , 'ZPO')&lt;/P&gt;&lt;P&gt;           AND A~LOEKZ = ' '&lt;/P&gt;&lt;P&gt;           AND A~RETPO &amp;lt;&amp;gt; 'X'&lt;/P&gt;&lt;P&gt;           AND SERNP = 'Z003'&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag = 'Y'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152430#M454515</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-14T07:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152431#M454516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sonika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i Put If statement in PBO or PAI i am getting error that.&lt;/P&gt;&lt;P&gt;statement IF is not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any clue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152431#M454516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T07:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152432#M454517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have u written the if in statement in the module only or some where else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written that in module and its not giving any error.&lt;/P&gt;&lt;P&gt;pls ckeck ur code or send ur code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152432#M454517</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-14T07:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152433#M454518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at the code. i have to call  module test1 based on a flag condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;    field TEST_VAR.&lt;/P&gt;&lt;P&gt;  module status_modelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF TEST_VAR '0'.&lt;/P&gt;&lt;P&gt;    module test1 .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am gettign error for this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152433#M454518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T07:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152434#M454519</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 will give error like this,&lt;/P&gt;&lt;P&gt;write the if condition in the module.&lt;/P&gt;&lt;P&gt;instead of this&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF TEST_VAR '0'.&lt;/P&gt;&lt;P&gt;module test1 .&lt;/P&gt;&lt;P&gt;ENDIF&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write like this.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;module test1 .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;IF TEST_VAR '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;write ur code here.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endmodule.&amp;lt;/b&amp;gt;&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;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152434#M454519</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-04-14T07:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152435#M454520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to call Module tes1 only and only when condition is successful..&lt;/P&gt;&lt;P&gt;Not sure if this will help.&lt;/P&gt;&lt;P&gt;cause i can not modify these modules,(part of standard program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 07:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152435#M454520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T07:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152436#M454521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To call the module only once you will have to set a Flag inside your module. This cannot be done in the screen flow logic as IF conditions dont work there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Basically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODULE  Screen_100 Output.&lt;/P&gt;&lt;P&gt;if flag is initial or if condition is successful.&lt;/P&gt;&lt;P&gt;Write ur code here.&lt;/P&gt;&lt;P&gt;flag = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 08:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152436#M454521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling modules on screen flow logic based on some condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152437#M454522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnaks guys.. but infortunately i was trying to use standard SAP modules hence can not copy them. I Copied the modules as Z and then used them..&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 06:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-modules-on-screen-flow-logic-based-on-some-condition/m-p/2152437#M454522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T06:34:07Z</dc:date>
    </item>
  </channel>
</rss>

