<?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: reg module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891448#M679545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Groups as assigned in the screen painter per field... but you could also just use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
  if screen-name = 'MY_BUTTON'. "change to your PB name
    screen-active = 0.
    screen-input = 0.
    modify screen.
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 22:19:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T22:19:07Z</dc:date>
    <item>
      <title>reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891444#M679541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have created a screen with 5 fields, and two buttons , one is SAVE and Cancel buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 1. My question is after giving the input to the 5 fields, the SAVE button should be enable,if any one of the field  blank means ,save button should be disable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. how to do validations for given dates(i.e fromdate and todate), plz provide code for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 06:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891444#M679541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T06:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891445#M679542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;LOOP AT SCREEN to enable and disable save button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To validate from and to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do your validation is PAI event...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF TO_DATE &amp;lt; FROM_DATE&lt;/P&gt;&lt;P&gt;***MESSAGE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Close the thread once your question is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 06:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891445#M679542</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-10-11T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891446#M679543</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;1)assign a group to the SAVE button suppose G1, then follow in pai module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen where group1 = 'G1'.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put this loop and endloop inside the check that any of the field is initial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) u can simply comapre to date fields as we do for numeric or character. but both should be of type DATUM or DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if info useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 06:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891446#M679543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891447#M679544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cud plz tel me ,how to assign a group to save button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 07:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891447#M679544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T07:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891448#M679545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Groups as assigned in the screen painter per field... but you could also just use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
  if screen-name = 'MY_BUTTON'. "change to your PB name
    screen-active = 0.
    screen-input = 0.
    modify screen.
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 22:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891448#M679545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T22:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891449#M679546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if any of the field is initial.&lt;/P&gt;&lt;P&gt;If Yes disable the save button.&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;You can use a variable which is set to 1 if any of the field is initial.&lt;/P&gt;&lt;P&gt;e.g. if field1 is initial&lt;/P&gt;&lt;P&gt;      var1 = 1.&lt;/P&gt;&lt;P&gt;      end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if field2 is initial&lt;/P&gt;&lt;P&gt;      var1 = 1.&lt;/P&gt;&lt;P&gt;      end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if var1 = 1.&lt;/P&gt;&lt;P&gt;make screen inactive.&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891449#M679546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: reg module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891450#M679547</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;there are many logics that can be used to explain ur prob. Here is one of the solutions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) we use a variable to represent whether the Save button has to be disabled or not.&lt;/P&gt;&lt;P&gt;2) before processing the OKCODE (sy-ucomm) we check whether the button is needed to be disabled or not. (here im doing that in the module VALIDATE_TEXTBOXES).&lt;/P&gt;&lt;P&gt;3) we enable/disable the save button in the PBO using LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;X--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;X--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstly im pasting the FLOW logic of my Screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt; MODULE VALIDATE_TEXTBOXES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;X----&lt;DEL&gt;-X&lt;/DEL&gt;-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next im pasting the code of my prog. my prog is a executable type of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ZSCREEN_PROG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TEXTBOX1(20) TYPE C,&lt;/P&gt;&lt;P&gt;      TEXTBOX2(20) TYPE C,&lt;/P&gt;&lt;P&gt;      TEXTBOX3(20) TYPE C,&lt;/P&gt;&lt;P&gt;      OKCODE TYPE SY-UCOMM,&lt;/P&gt;&lt;P&gt;      DISABLE_SAVE_BUTTON TYPE BOOLEAN VALUE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  VALIDATE_TEXTBOXES  INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;  Module for checking whether to enable or disable the save button&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE VALIDATE_TEXTBOXES INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF TEXTBOX1 IS INITIAL or&lt;/P&gt;&lt;P&gt;    TEXTBOX2 IS INITIAL or&lt;/P&gt;&lt;P&gt;    TEXTBOX3 IS INITIAL.&lt;/P&gt;&lt;P&gt; DISABLE_SAVE_BUTTON = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  DISABLE_SAVE_BUTTON = ''.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " VALIDATE_TEXTBOXES  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;  The Main PAI Module       &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE OKCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;    IF DISABLE_SAVE_BUTTON NE 'X'. "if save button is not disabled&lt;/P&gt;&lt;P&gt;        "enter ur code for Save Button&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHEN 'CANC'.&lt;/P&gt;&lt;P&gt;       "Code for action on clicking Cancel button&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;  Main PBO Module&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---If we have to disable the SAVE button&lt;/P&gt;&lt;P&gt;IF DISABLE_SAVE_BUTTON = 'X'.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'SAVE'.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 0.  "to Disable&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;*---If we have to enable the SAVE button&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-NAME = 'SAVE'.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 1.  "to Enable&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;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sagar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Rewards points are appriciated..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-module-pool/m-p/2891450#M679547</guid>
      <dc:creator>sagarmehta</dc:creator>
      <dc:date>2007-10-12T08:13:58Z</dc:date>
    </item>
  </channel>
</rss>

