<?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: parameter  mandatory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457350#M1999994</link>
    <description>&lt;P&gt;I think you can set/change the required parameter of a certain field in the AT SELECTION SCREEN OUTPUT event, so that the mandatory part is changed together with the radio button selection.&lt;/P&gt;&lt;P&gt;So something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.
IF relevant_radio_button EQ abap_true.
  LOOP AT SCREEN.
    IF screen-name = 'P_FIELD'.
      screen-required = '2'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And of course assign a USER-COMMAND to the radio button group, so each change of option would trigger a round-trip (and thus make sure the OUTPUT event is triggered.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(code is written by heart, not completely sure the syntax 100% correct). &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 12:48:37 GMT</pubDate>
    <dc:creator>Patrick_vN</dc:creator>
    <dc:date>2021-04-15T12:48:37Z</dc:date>
    <item>
      <title>parameter  mandatory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457346#M1999990</link>
      <description>&lt;P&gt;when i select a radiobutton, a parameter must become mandatory, how do i do?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 10:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457346#M1999990</guid>
      <dc:creator>Luca_Cavarretta</dc:creator>
      <dc:date>2021-04-15T10:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: parameter  mandatory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457347#M1999991</link>
      <description>&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;You can check &lt;A href="https://answers.sap.com/questions/4130801/parameters-obligatory.html" target="_blank"&gt;this question/answer&lt;/A&gt; and this &lt;A href="https://help.sap.com/doc/abapdocu_740_index_htm/7.40/de-DE/abapparameters_screen.htm" target="_blank"&gt;ABAP documentation&lt;/A&gt; (in German).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 11:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457347#M1999991</guid>
      <dc:creator>cris_hansen</dc:creator>
      <dc:date>2021-04-15T11:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: parameter  mandatory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457348#M1999992</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;mark.fry999&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;as far as I know, you'll have to do this manually with checking in AT-SELECTION-SCREEN. At least that's how I've done it in the past as you cannot define a selection-screen field as OBLIGATORY if there are radiobutton-dependent cases where it doesn't need to be filled.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 11:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457348#M1999992</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2021-04-15T11:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: parameter  mandatory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457349#M1999993</link>
      <description>&lt;P&gt;what should I write inside the AT-SELECTION-SCREEN. ?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457349#M1999993</guid>
      <dc:creator>Luca_Cavarretta</dc:creator>
      <dc:date>2021-04-15T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: parameter  mandatory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457350#M1999994</link>
      <description>&lt;P&gt;I think you can set/change the required parameter of a certain field in the AT SELECTION SCREEN OUTPUT event, so that the mandatory part is changed together with the radio button selection.&lt;/P&gt;&lt;P&gt;So something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN OUTPUT.
IF relevant_radio_button EQ abap_true.
  LOOP AT SCREEN.
    IF screen-name = 'P_FIELD'.
      screen-required = '2'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And of course assign a USER-COMMAND to the radio button group, so each change of option would trigger a round-trip (and thus make sure the OUTPUT event is triggered.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(code is written by heart, not completely sure the syntax 100% correct). &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-mandatory/m-p/12457350#M1999994</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-04-15T12:48:37Z</dc:date>
    </item>
  </channel>
</rss>

