<?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: Help on Screen Logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625465#M1441120</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 can use export/import logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI of the screen validate like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF sy-ucomm EQ 'CALC'.  " Clicked on calculate.
Do your processing...
.
.
.
.
MOVE 'CALC' to l_calc.
EXPORT l_calc TO MEMORY ID 'CALC'.
CLEAR l_calc.
ENDIF.

ENDIF.

IF sy-ucomm EQ 'POST'.  " Clicked on post.
IMPORT l_calc FROM MEMORY ID 'CALC'.
IF sy-subrc IS INITIAL.
Process your posting logic.
ELSE.
MESSAGE 'Calculate has not happened' TYPE 'E'.
ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 14:47:20 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2010-02-09T14:47:20Z</dc:date>
    <item>
      <title>Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625463#M1441118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where on the output screen I have two buttons "Calculate" and "POST".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to enable the "post" button once the processing through calculate button is being done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625463#M1441118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625464#M1441119</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;U should say us what the button CALCULATE does, anyway u can set a FLAG in order to be enable the button POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF CALCULATE_RUN = 'X'.
  LOOP AT SCREEN.
      IF SCREEN-NAME = 'POST'.
         SCREEN-INPUT = 0.
         MODIFY SCREEN.
     ENDIF.
  ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625464#M1441119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625465#M1441120</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 can use export/import logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI of the screen validate like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF sy-ucomm EQ 'CALC'.  " Clicked on calculate.
Do your processing...
.
.
.
.
MOVE 'CALC' to l_calc.
EXPORT l_calc TO MEMORY ID 'CALC'.
CLEAR l_calc.
ENDIF.

ENDIF.

IF sy-ucomm EQ 'POST'.  " Clicked on post.
IMPORT l_calc FROM MEMORY ID 'CALC'.
IF sy-subrc IS INITIAL.
Process your posting logic.
ELSE.
MESSAGE 'Calculate has not happened' TYPE 'E'.
ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625465#M1441120</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-02-09T14:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625466#M1441121</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 can manage a global variable (flag) to know when the "calculate" button has been pressed. And in the PBO you can desactive the "post" button if the flag is not ticked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF gv_flag_calculate IS INITIAL.
    LOOP AT SCREEN.
      IF screen-name = 'POSTBUTTON'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625466#M1441121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625467#M1441122</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;in your PBO write the code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if ok_code = 'CALCULATE'  "capture sy-ucomm for calculate button.
loop at screen.
screen-name = name of the push button for POST.
screen-active = 1.
modify screen.
endloop.
else.
loop at screen.
screen-name = name of the push button for POST.
screen-active = 0.
modify screen.
endloop.endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625467#M1441122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T14:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625468#M1441123</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;IN PBO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module check_calc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module check_calc.&lt;/P&gt;&lt;P&gt;if chk_calc = 'X'.   &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; if Calculations are done then Enable  POST button&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF screen-name = 'POST'.&lt;/P&gt;&lt;P&gt;        screen-input = 1.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; if Calculations are not done then Disable  POST button&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF screen-name = 'POST'.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&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;endif.&lt;/P&gt;&lt;P&gt;&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;IN PAI. &lt;/P&gt;&lt;P&gt;ok_code = sy-ucomm.&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CALCULATE'.&lt;/P&gt;&lt;P&gt;Do you processing and after that enable the post button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk_calc = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 14:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625468#M1441123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Screen Logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625469#M1441124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks folks for replying. It helps me to resolve the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 06:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-screen-logic/m-p/6625469#M1441124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T06:04:53Z</dc:date>
    </item>
  </channel>
</rss>

