<?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: radio button. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398668#M534169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is on same screen . But I want on different screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 09:36:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T09:36:09Z</dc:date>
    <item>
      <title>radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398666#M534167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have created one screen . in the layout of the screen i created one objective type question with three radiobutton opions now if i click one radio button i want some text in other screen. could you please help me to do the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398666#M534167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398667#M534168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROGRAM demo_dynpro_check_radio .

DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
      field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
      box TYPE c.

DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.

CALL SCREEN 100.

MODULE user_command_0100 INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  CASE save_ok.
    WHEN 'RADIO'.
      IF radio1 = 'X'.
        field1 = 'Selected!'.
        CLEAR: field2, field3.
      ELSEIF radio2 = 'X'.
        field2 = 'Selected!'.
        CLEAR: field1, field3.
      ELSEIF radio3 = 'X'.
        field3 = 'Selected!'.
        CLEAR: field1, field2.
      ENDIF.
    WHEN 'CANCEL'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398667#M534168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398668#M534169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is on same screen . But I want on different screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398668#M534169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398669#M534170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when radiobuton = 'x'.&lt;/P&gt;&lt;P&gt;write 'ddfgg'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why it is not working? It's not writing anything&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398669#M534170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398670#M534171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;when radiobuton = 'X'.  " Make to upper case&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398670#M534171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398671#M534172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out abapdocu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398671#M534172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398672#M534173</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;follow this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROGRAM demo_dynpro_check_radio .
 
DATA: radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
      field1(10) TYPE c, field2(10) TYPE c, field3(10) TYPE c,
      box TYPE c.
 
DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.
 
CALL SCREEN 100.
 
MODULE user_command_0100 INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
  CASE save_ok.
    WHEN 'RADIO'.
      IF radio1 = 'X'.
      CALL SCREEN 200." in this screen you write text as per your need.
     **   field1 = 'Selected!'.
        CLEAR: field2, field3.
      ELSEIF radio2 = 'X'.
        CALL SCREEN 200. "in this screen you write text as per your need
     **   field2 = 'Selected!'.
        CLEAR: field1, field3.
      ELSEIF radio3 = 'X'.
        CALL SCREEN 300. "in this screen you write text as per your need
     **   field3 = 'Selected!'.
        CLEAR: field1, field2.
      ENDIF.
    WHEN 'CANCEL'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above program you write text as per your need in different screen depends on selected radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 09:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398672#M534173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T09:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398673#M534174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a solution to your problem. I created a program in SE38. Then before writing anything in the program, I just saved it and went to Se51. There giving the name of the above program and screen number as 0001, i created a screen where in the layout I put two radiobuttons as R1 and R2 and defined a gropu on them (so that they gine me  a mutually exclusive beahvior). I ceated two pushbuttons, one as Execute (with Func code EXECUTE) and another as Exit (with Function code EXIT). In the PAI (process after input) event of this screen, i gave the logic of what should happen when radiobutton R1 is clicked and whar should happen if radiobutton R2 is clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then again i go to transaction SE51 and create two screens one after another with screen numbers 2 and 3 respectively. In each screen I give somne demo text (u can give ur relevant text here) and a pushbutton Back (with Function Code BACK) to go back to main screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code for the same.&lt;/P&gt;&lt;P&gt;REPORT  ZSS_TEST message-id zmsg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : R1(1) type c,&lt;/P&gt;&lt;P&gt;       R2(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 1.   "Main screen&lt;/P&gt;&lt;P&gt;&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_0001  INPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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_0001 INPUT.&lt;/P&gt;&lt;P&gt;    case sy-ucomm.&lt;/P&gt;&lt;P&gt;        when 'EXECUTE'.&lt;/P&gt;&lt;P&gt;            if R1 = 'X'.&lt;/P&gt;&lt;P&gt;               call screen 2.&lt;/P&gt;&lt;P&gt;            else.&lt;/P&gt;&lt;P&gt;                call screen 3.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        when 'EXIT'.&lt;/P&gt;&lt;P&gt;            Leave program.&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;ENDMODULE.                 " USER_COMMAND_0001  INPUT&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_0002  INPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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_0002 INPUT.&lt;/P&gt;&lt;P&gt;  case sy-ucomm.&lt;/P&gt;&lt;P&gt;      when 'BACK'.&lt;/P&gt;&lt;P&gt;          Leave to screen 0.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0002  INPUT&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_0003  INPUT&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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_0003 INPUT.&lt;/P&gt;&lt;P&gt;    case sy-ucomm.&lt;/P&gt;&lt;P&gt;        when 'BACK'.&lt;/P&gt;&lt;P&gt;            Leave to screen 0.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0003  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any doubts, u can ask me. Hope it helps u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 10:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398673#M534174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398674#M534175</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;Thanks for your answer. i was good and helpful. but what  i was trying to do is that i had created few objective quetions in the screen layout. now  after submit button i want the score like " Your score is 76%" or 6 qs are right out of ten".just like online test. it is easy but i am not geting the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cd you plz help me in this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398674#M534175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: radio button.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398675#M534176</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;Initially you must have stored the correct answers of your questions in a table with a key where key would serve as the number of the question. So when a user selects a radiobutton as an answer for a question, you will check your database that whether the answer is correct or not. If yes then you will add appropriate scores in a global variable which you will keep on upadting on every correct answer. When the user presses the submit button, you can display the result of this global variable on your next screen(or subscreen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this would give you some idea of how to proceed and would be helpful to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 15:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/radio-button/m-p/2398675#M534176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T15:19:41Z</dc:date>
    </item>
  </channel>
</rss>

