<?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 between fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700132#M1104530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign some Function code for radio button and on PAI set one flag. then in PBO using that FLAG do as;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
If FLAG = '1'.
   " Disable Contract field
ELSE
   " Disable Order Field
ENDIF.
MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 13:02:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-13T13:02:44Z</dc:date>
    <item>
      <title>toggle between fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700131#M1104529</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;I have two fields order &amp;amp; contract on my screen. I want to ensure that only one field is input-enabled at any given point. I would like some sort of radio-button functionality wheerin if a user selects which field he wants to edit and subsequently the other field will be disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i go for it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest some method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 12:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700131#M1104529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: toggle between fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700132#M1104530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign some Function code for radio button and on PAI set one flag. then in PBO using that FLAG do as;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
If FLAG = '1'.
   " Disable Contract field
ELSE
   " Disable Order Field
ENDIF.
MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 13:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700132#M1104530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T13:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: toggle between fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700133#M1104531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at selection-screen output.
if r1 EQ 'X'.
 loop at screen.
 if screen-name = 'FIELD2'.
 screen-input = 0.
 modify screen.
endif.
endloop.
elseif r2 EQ 'X'.
 loop at screen.
 if screen-name = 'FIELD1'.
 screen-input = 0.
 modify screen.
endif.
endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2008 05:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700133#M1104531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-14T05:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: toggle between fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700134#M1104532</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;I tried out both methods however they are not working. I've to press 'enter key' to invoke my code for checking &amp;amp; modiffying screen. I want the fields to be disabled immediately whenever the user select either of one radio button(i.e. user doesnt have to press enter key). also if i modify screen all values entered in other fields are getting erased. Kindly advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2008 04:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700134#M1104532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-15T04:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: toggle between fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700135#M1104533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we require is a very common requirement in the custom selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usual technique is to create the 2 fields as radio button assigned to a group..one will be X by default...when user clicks on another radio button we show the user input field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: PARAMETERS: r1 RADIOBUTTON GROUP rad1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            r2 RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen-output.&lt;/P&gt;&lt;P&gt;if r1 = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen .&lt;/P&gt;&lt;P&gt;if screen-name = 'ORDER'.&lt;/P&gt;&lt;P&gt;screen-input = 1.&lt;/P&gt;&lt;P&gt;screen-active = 1.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if screen-name = 'OTHER'..&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;modify screen.&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;else..&lt;/P&gt;&lt;P&gt;*****do opposite&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when user presses other radio button.......the other radio button = 'X'.....and code will act accordingly.&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;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2008 12:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700135#M1104533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-15T12:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: toggle between fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700136#M1104534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use USER-COMMAND addition to raise PAI and avoid press enter when any of the option picked in the radio button group. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ex:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;PARAMETER p_opt1 RADIOBUTTON GROUP rad1 &lt;STRONG&gt;USER-COMMAND enter&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;PARAMETER p_opt2 RADIOBUTTON GROUP rad1 DEFAULT 'X'.&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;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 07:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/toggle-between-fields/m-p/4700136#M1104534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T07:02:13Z</dc:date>
    </item>
  </channel>
</rss>

