<?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: Disabling single Screen field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558710#M1076060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;it may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in drop down box each option should have function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in pai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'option 1'&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 = 'group1' or screen name = ' input field name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;&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;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code = 'option1'.&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 = 'group1' or screen name = ' input field name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2008 05:09:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-07T05:09:03Z</dc:date>
    <item>
      <title>Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558705#M1076055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me how to disable single Screen field in Module pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario where One of the field is drop down box,in that options if i select 1 option the next Input/outputfield and Group of radio buttons(2buttons) should be disable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PlZ help me with the solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 04:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558705#M1076055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T04:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558706#M1076056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set the function code to list box. once you select the list box field, the function code will be triggered, after that PBO will trigger ,based on the value  you can disable the screen field in PBO using loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
if list_field = '1233'.
 if screen-name = 'SCREENFIELD'.
 screen-input  = 0.
 modify screen.
endif.
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 04:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558706#M1076056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T04:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558707#M1076057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI VIJAY ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per the code u have given me it will disable all other fields in the screen .my requirement is if i select 1value from listbox only one field and radiobuttons should be disable.i have 2 other fields in the screen those should not bedisable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accomidation  -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;  guest house}------List box&lt;/P&gt;&lt;P&gt;                                 hotel           }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hotel type -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;        ordinary}&lt;/P&gt;&lt;P&gt;                               3star}&lt;/P&gt;&lt;P&gt;                               7 star}          rb1&lt;/P&gt;&lt;P&gt;                                                  rb2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mode of travel------   car &lt;/P&gt;&lt;P&gt;                             flight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select 'guest house' in the accomidation field hotel type field and radiobuttons rb1.rb2 should be disable.but mode of travel will be always Enable.my code should not effect 'Mode of travel field"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 04:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558707#M1076057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T04:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558708#M1076058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranu,&lt;/P&gt;&lt;P&gt;As Vijay has specified the sample code for you to disable the field in  the module pool&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
if list_field = '1233'.
 if screen-name = 'SCREENFIELD'.
 screen-input  = 0.
 modify screen.
endif.
endif.
 
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the Loop just k set a Flag  = 1  and then after if again check the Flag to disable the other field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: flag type i.  " decalare it in the Top include

loop at screen.
if list_field = '1233'.
 if screen-name = 'SCREENFIELD'.
 flag = 1
 screen-input  = 0.
 modify screen.
endif.
if flag = 1.
  if screen-name = 'XXXX' OR
   screen-name = 'YYY'.

     screen-input  = 0.   "----" This will disable your radio button where XXX and YYY is your radio buttons
      modify screen.


  endif.
endif.
endif.
 
endloop.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 04:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558708#M1076058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T04:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558709#M1076059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the screen group you can disable/enable the elements with minimal coding.&lt;/P&gt;&lt;P&gt;i hope you know about screen groups, click on any field in the  attributes popup you can see group1,2,3,4&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
if list_field = '1233'.
 if screen-group1 = 'GRP1'.  "&amp;lt;--assign the screen group to all the elements which you want 
 screen-input  = 0.
 modify screen.
endif.
endif.
 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 05:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558709#M1076059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T05:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558710#M1076060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;it may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in drop down box each option should have function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in pai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'option 1'&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 = 'group1' or screen name = ' input field name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;&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;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ok_code = 'option1'.&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 = 'group1' or screen name = ' input field name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;screen input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 05:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558710#M1076060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T05:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558711#M1076061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    use group option in screen attributes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'ERD'.&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;screen-input = '0'.&lt;/P&gt;&lt;P&gt;screen-output = '0'.&lt;/P&gt;&lt;P&gt;screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;*screen-name = ' '.&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;use this then only u can disable every thing in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 05:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558711#M1076061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T05:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558712#M1076062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to say this vijay the code is not working.in PBO i have written following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt; IF ZATC_TOUR1-ACCOMODATION = 'GUEST HOUSE'.&lt;/P&gt;&lt;P&gt; if screen-group1 = 'G1' and screen-group2 = 'G2'.&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;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;G2(group i have assigned it for radio button group)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 05:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558712#M1076062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T05:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling single Screen field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558713#M1076063</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;This is Ur Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;IF ZATC_TOUR1-ACCOMODATION = 'GUEST HOUSE'.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'G1' and screen-group2 = 'G2'.&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;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;&lt;/P&gt;&lt;P&gt;Change it as : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ZATC_TOUR1-ACCOMODATION = 'GUEST HOUSE'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'G1' &lt;STRONG&gt;OR&lt;/STRONG&gt; screen-group2 = 'G2'.&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;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the If Condition change AND as OR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2008 10:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disabling-single-screen-field/m-p/4558713#M1076063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-07T10:01:03Z</dc:date>
    </item>
  </channel>
</rss>

