<?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: unable to remove mandatory fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050308#M1501892</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;&lt;/P&gt;&lt;P&gt;You can set the fields as mandatory in at selection screen output by using modify screen concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check if the fields is selected param 2 in your case and then for the field you want to set as mandatory pass these&lt;/P&gt;&lt;P&gt;fields to the screen-name parameter of the screen structue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let say you have to make param 3 as mandtory if param2 is selected.&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 param 2 = 'X' .&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name = 'param 3'.&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;endif.&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, 05 Jul 2010 12:19:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-05T12:19:28Z</dc:date>
    <item>
      <title>unable to remove mandatory fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050306#M1501890</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;&lt;/P&gt;&lt;P&gt;i have 2 parameters here, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;param 1&lt;/P&gt;&lt;P&gt;param 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my scenario, when param 2 is choosen, i have to set few fields to mandatory, the problem now is when these&lt;/P&gt;&lt;P&gt;2 are choosen, the mandatory fields remains, the case should be when these two are choosen the fields will be cleared&lt;/P&gt;&lt;P&gt;from anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks AUD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 03:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050306#M1501890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T03:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: unable to remove mandatory fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050307#M1501891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aud,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this is how SAP is designed. Once the mandatory attribute of a field is turned on, you can't turn it off &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there are alternatives which you can employ to resolve this situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN. 

IF SY-UCOMM = 'ONLI' OR 'PRIN'. "ONLI --&amp;gt; Online Run, 'PRIN' --&amp;gt; BG mode
  IF PARAM2 = &amp;lt;some value&amp;gt;.
    "Check the fields are not INITIAL. If INITIAL, give error message
  ENDIF.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Do not turn the MANDATORY attribute for the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 03:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050307#M1501891</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-05T03:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: unable to remove mandatory fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050308#M1501892</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;&lt;/P&gt;&lt;P&gt;You can set the fields as mandatory in at selection screen output by using modify screen concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check if the fields is selected param 2 in your case and then for the field you want to set as mandatory pass these&lt;/P&gt;&lt;P&gt;fields to the screen-name parameter of the screen structue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let say you have to make param 3 as mandtory if param2 is selected.&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 param 2 = 'X' .&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name = 'param 3'.&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;endif.&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, 05 Jul 2010 12:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050308#M1501892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: unable to remove mandatory fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050309#M1501893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aud,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you want either Param1 or Param2 should be selected but not both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can use Radio Button option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen depending on Param1 or param2 you can clear the unneccessary fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sajid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 13:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-remove-mandatory-fields/m-p/7050309#M1501893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-05T13:36:38Z</dc:date>
    </item>
  </channel>
</rss>

