<?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 Selection-screen parameter mandatory for radio button selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817631#M1588677</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;One of the input field needs to be made mandatory when one of the radio-buttons on the selection screen is checked. I have used at selection screen output event, but if the user clicks the radiobutton that is used to make the field mandatory and then click the other one, the field is still showing as an obligatory field. Please let me know how to make the button flexible that one is selected field becomes mandatory and immediately if the other one is selected back the field needs to be optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code I have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF rad7 = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;        screen-required = '1'.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 19:17:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-18T19:17:15Z</dc:date>
    <item>
      <title>Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817631#M1588677</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;One of the input field needs to be made mandatory when one of the radio-buttons on the selection screen is checked. I have used at selection screen output event, but if the user clicks the radiobutton that is used to make the field mandatory and then click the other one, the field is still showing as an obligatory field. Please let me know how to make the button flexible that one is selected field becomes mandatory and immediately if the other one is selected back the field needs to be optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code I have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF rad7 = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;        screen-required = '1'.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 19:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817631#M1588677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T19:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817632#M1588678</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;You need to write as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF rad7 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;screen-required = '1'.&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;&lt;/P&gt;&lt;P&gt;ELSEIF rad8 = 'X'.   &amp;lt;-- when other radio button is clicked &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;screen-required = '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;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 19:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817632#M1588678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T19:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817633#M1588679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. I tried this way as well, but the field is not being refreshed. Once, it becomes mandatory after the radio button is selected, its not going back to the original.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF rad7 = 'X'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;        screen-required = '1'.&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;    ELSEIF rad6 = 'X'.&lt;/P&gt;&lt;P&gt;   LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;        screen-required = '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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 19:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817633#M1588679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817634#M1588680</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 how the system behaves. Just enter a value in the field (after changing to Obligatory) and click on the&lt;/P&gt;&lt;P&gt;    other radio button. Now the Mandatory field is refreshed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 19:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817634#M1588680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T19:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817635#M1588681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will face while clearing the required fields, If you use the MANDATORY or REQUIRED when you change the radio-button. You should be doing the check in the START-OF-SELECTION, if the radiobutton is selected and field is empty. If so, give the error message and stop processing the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 19:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817635#M1588681</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-04-18T19:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817636#M1588682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;        one other option you can try... please look at the code below.&lt;/P&gt;&lt;P&gt;this is simple and straight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK master WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS: tXT_box1 TYPE c LENGTH 10 ,&lt;/P&gt;&lt;P&gt;            rb_one  RADIOBUTTON GROUP rb USER-COMMAND usr DEFAULT 'X',  " defaulting to radio button which is not mand..&lt;/P&gt;&lt;P&gt;            rb_two  RADIOBUTTON GROUP rb.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&lt;/P&gt;&lt;P&gt; IF rb_two IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    IF tXT_box1 IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Please fill Text box' TYPE 'E'.  " add your custom message&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;try this option. let me know if it works for you or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rudra.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rudra s on Apr 18, 2011 10:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 20:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817636#M1588682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T20:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817637#M1588683</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF RAD7 = 'X'.&lt;/P&gt;&lt;P&gt; FLAG = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&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;&lt;/P&gt;&lt;P&gt;IF FLAG = 'X'.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    if screen-group1 = 'M1'.&lt;/P&gt;&lt;P&gt;   screen-required = '1'.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;clear flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solves ur issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817637#M1588683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-19T13:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817638#M1588684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everybody for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 19:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817638#M1588684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-19T19:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen parameter mandatory for radio button selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817639#M1588685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u get solved this problem? If so Can you give me the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-mandatory-for-radio-button-selection/m-p/7817639#M1588685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T16:53:19Z</dc:date>
    </item>
  </channel>
</rss>

