<?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: Dialog Programming - Radio Buttons in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858406#M47530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in screen painter it's quite easy (I have no experience in dialog programming, but I think it's quite similar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- First of all, you should define your radiobuttons so that they trigger a user-command (no matter what its name is, just trigger an ok_code). This can be achieved when displaying attributes of the radiobutton&lt;/P&gt;&lt;P&gt;- Then, at PBO, include this sketch of code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  if not rb1 is initial.
    if screen-name = 'FIELD1' or screen-name = 'FIELD2'.
      screen-input = '0'.
      modify screen.
    endif.
  elseif not rb2 is initial.
    if screen-name = 'FIELD1' or screen-name = 'FIELD2'.
      screen-input = '1'.
      modify screen.
    endif.
  elseif not rb3 is initial.
    if screen-name = 'FIELD1' or screen-name = 'FIELD2'.
      screen-input = '1'.
      modify screen.
    endif.
  endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...well, you should "play" for a little while with which fields you want to disable and when you want to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let us know if it helped. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2005 17:13:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-03-10T17:13:05Z</dc:date>
    <item>
      <title>Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858405#M47529</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;I facing one problem in dialog programming.&lt;/P&gt;&lt;P&gt;I have 3 radio buttons on screen . When user selects one radio button, some input fields need to be disabled and similarly for other 2 radio buttons also. Please let me know how to do that. I have defined 3 radio buttons under one group &amp;#145;RADIO&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 16:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858405#M47529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-10T16:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858406#M47530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in screen painter it's quite easy (I have no experience in dialog programming, but I think it's quite similar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- First of all, you should define your radiobuttons so that they trigger a user-command (no matter what its name is, just trigger an ok_code). This can be achieved when displaying attributes of the radiobutton&lt;/P&gt;&lt;P&gt;- Then, at PBO, include this sketch of code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at screen.
  if not rb1 is initial.
    if screen-name = 'FIELD1' or screen-name = 'FIELD2'.
      screen-input = '0'.
      modify screen.
    endif.
  elseif not rb2 is initial.
    if screen-name = 'FIELD1' or screen-name = 'FIELD2'.
      screen-input = '1'.
      modify screen.
    endif.
  elseif not rb3 is initial.
    if screen-name = 'FIELD1' or screen-name = 'FIELD2'.
      screen-input = '1'.
      modify screen.
    endif.
  endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...well, you should "play" for a little while with which fields you want to disable and when you want to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let us know if it helped. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 17:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858406#M47530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-10T17:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858407#M47531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;you could loop the screen internal table, witch handles all screen fields defined in a dynpro.&lt;/P&gt;&lt;P&gt;It would be something like this:&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt; if screen-name = (your field name here).&lt;/P&gt;&lt;P&gt;  screen-input = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here see if it's 1 or 0 for disabling/enabling a field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*on your dynpro.... I don't remember it&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;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 17:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858407#M47531</guid>
      <dc:creator>lauraquinteros</dc:creator>
      <dc:date>2005-03-10T17:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858408#M47532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramesh, those two postings will definitely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, I'm curious why you would want to disable the other two radio buttons. &lt;/P&gt;&lt;P&gt;What if they made a mistake and really want to choose another radio button ? &lt;/P&gt;&lt;P&gt;Just a thought....good luck on your program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 23:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858408#M47532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-10T23:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858409#M47533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Ramesh wants is not to disable other two buttons but disable some input fields with respect to the selected radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;P&gt;ssimsekler@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 23:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858409#M47533</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-03-10T23:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858410#M47534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well that makes a lot of sense, thank you Serdar for pointing it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also Ramesh, you can assign an OK-CODE on your radio buttons so once the user selected one of the options, it will go right away to PAI then to PBO, where you can do your LOOP AT SCREEN...ENDLOOP. Saves the time of pressing ENTER after selecting one of the radio. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 23:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858410#M47534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-10T23:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858411#M47535</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;Thanks for for youe valuable suggestions.&lt;/P&gt;&lt;P&gt;I need some more help.&lt;/P&gt;&lt;P&gt;in my screen all the input boxes are mandatory.when user do not wish to enter any values and want leave the screen,i made the default buttons 'END' and 'CANCEL' active  with function type 'EXIT'. But it is not working.&lt;/P&gt;&lt;P&gt;Could any of U tell me what might have went wrong??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2005 09:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858411#M47535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-11T09:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858412#M47536</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;Do you have a module with AT EXIT-COMMAND where you are processing Cancel and Exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2005 09:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858412#M47536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-11T09:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog Programming - Radio Buttons</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858413#M47537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I was able to do this with at EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;Earlier I was not passing function code to my local variable in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2005 15:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-radio-buttons/m-p/858413#M47537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-11T15:55:58Z</dc:date>
    </item>
  </channel>
</rss>

