<?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: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316765#M508159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can perform various manipulation on the screen elements using the statement LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;But that is useful in PBO only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose your requirement is like this....&lt;/P&gt;&lt;P&gt;When you click on a button, the screen element should be made visible or invisible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do like this...&lt;/P&gt;&lt;P&gt;Initially, you can keep the two fields under the same group (say 'GR1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Define a global variable (say FLAG) which is initialised to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In PBO module , write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'GR1' AND FLAG = 0.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 0.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&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;) At PAI Module, set the flag to 1 for the function code for button click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'CLICK'.&lt;/P&gt;&lt;P&gt;if flag = 0.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 08:40:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-21T08:40:59Z</dc:date>
    <item>
      <title>TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316758#M508152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have placed a Table control . I have 6 fields including Customer and Customer Name field. It will not be displayed by default. If I press a button , those two fields should be made visible. Again if i press the Button , it should be invisible. toggle between Vsible and Invisible.&lt;/P&gt;&lt;P&gt;Example : Its like the Customer Button in MD04 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly give me the code to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and thanks in advance.&lt;/P&gt;&lt;P&gt;Suki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2007 14:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316758#M508152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-19T14:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316759#M508153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'ENT1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = field name.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;when 'ur disable button'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = field name.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2007 14:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316759#M508153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-19T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316760#M508154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links ..... similar queries discussed here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3019831"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="855550"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~~Guduri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2007 15:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316760#M508154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-19T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316761#M508155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya Naveen,&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;My requirement is first time when i click the button it should display the fields.&lt;/P&gt;&lt;P&gt;Second time when i click the button , the fields should be invisible. Like this the fields should be made visible and invisible when ever iclick the same button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for ur response.&lt;/P&gt;&lt;P&gt;Suki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2007 16:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316761#M508155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-19T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316762#M508156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you send the code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2007 16:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316762#M508156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-19T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316763#M508157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u go to MD04 transaction ,  u can see a button "CUSTOMER" at the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just the same functionality i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code :&lt;/P&gt;&lt;P&gt;  MODULE TC_LSTAT_CHANGE_TC_ATTR.&lt;/P&gt;&lt;P&gt;      DATA: BEGIN OF WA_CTRL,&lt;/P&gt;&lt;P&gt;              SCREEN LIKE SCREEN,&lt;/P&gt;&lt;P&gt;              INDEX       TYPE I,&lt;/P&gt;&lt;P&gt;              SELECTED(1) TYPE C,&lt;/P&gt;&lt;P&gt;              VISLENGTH   LIKE ICON-OLENG,&lt;/P&gt;&lt;P&gt;              INVISIBLE(1) TYPE C,&lt;/P&gt;&lt;P&gt;        END   OF WA_CTRL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT TC_LSTAT-COLS INTO WA_CTRL.&lt;/P&gt;&lt;P&gt;    IF WA_CTRL-SCREEN-GROUP1 = 'G1'.&lt;/P&gt;&lt;P&gt;      IF FLAGCUST = 'X'.&lt;/P&gt;&lt;P&gt;        WA_CTRL-SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        WA_CTRL-INVISIBLE = '0'.&lt;/P&gt;&lt;P&gt;        MODIFY TC_LSTAT-COLS FROM WA_CTRL.&lt;/P&gt;&lt;P&gt;      ELSEIF FLAGCUST = ' '.&lt;/P&gt;&lt;P&gt;        WA_CTRL-SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;        WA_CTRL-INVISIBLE = '1'.&lt;/P&gt;&lt;P&gt;        MODIFY TC_LSTAT-COLS FROM WA_CTRL.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLEAR WA_CTRL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "TC_LSTAT_CHANGE_TC_ATTR OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE TC_LSTAT_USER_COMMAND INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE OKCODE.&lt;/P&gt;&lt;P&gt;    WHEN 'CUST'.&lt;/P&gt;&lt;P&gt;        FLAGCUST = 'X'.&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;Thanks in advance.&lt;/P&gt;&lt;P&gt;Suki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2007 16:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316763#M508157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-19T16:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316764#M508158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have given first reply,then try to use same logic you will get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 May 2007 01:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316764#M508158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-20T01:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316765#M508159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can perform various manipulation on the screen elements using the statement LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;But that is useful in PBO only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose your requirement is like this....&lt;/P&gt;&lt;P&gt;When you click on a button, the screen element should be made visible or invisible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do like this...&lt;/P&gt;&lt;P&gt;Initially, you can keep the two fields under the same group (say 'GR1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Define a global variable (say FLAG) which is initialised to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In PBO module , write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'GR1' AND FLAG = 0.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 0.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SCREEN-ACTIVE = 1.&lt;/P&gt;&lt;P&gt;ENDIF.&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;) At PAI Module, set the flag to 1 for the function code for button click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'CLICK'.&lt;/P&gt;&lt;P&gt;if flag = 0.&lt;/P&gt;&lt;P&gt;flag = 1.&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;flag = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 08:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316765#M508159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T08:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: TOGGLE - MAKE FIELDS VISIBLE AND INVISIBLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316766#M508160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have placed a Table control . I have 6 fields including Customer and Customer Name field. It will not be displayed by default. If I press a button , those two fields should be made visible. Again if i press the Button , it should be invisible. toggle between Vsible and Invisible.&lt;/P&gt;&lt;P&gt;Example : Its like the Customer Button in MD04 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;  IF SCREEN-NAME  = 'CUSTOMER'&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;&lt;/P&gt;&lt;P&gt;IF SCREEN-NAME  = 'CUSTOMERNAME'&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;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO MODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'OTHERS'&lt;/P&gt;&lt;P&gt;       SCREEN-NAME  = 'CUSTOMER'.&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;      SCREEN-NAME  = 'CUSTOMERNAME'&lt;/P&gt;&lt;P&gt;      SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 10:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-make-fields-visible-and-invisible/m-p/2316766#M508160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T10:49:33Z</dc:date>
    </item>
  </channel>
</rss>

