<?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: mandatory field (without obligatory) - multiple selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397133#M1995275</link>
    <description>&lt;P&gt;Hello Giuseppi,&lt;/P&gt;&lt;P&gt;thank you for your help, but the code doesn't work in my case.&lt;/P&gt;&lt;P&gt;The multiple selection does not work when the material number is not filled already.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 14:18:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2021-06-14T14:18:31Z</dc:date>
    <item>
      <title>mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397119#M1995261</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
  &lt;P&gt; I have a little problem. I have declared a mandatory field (without obligatory). &lt;/P&gt;
  &lt;P&gt;However, then the multiple selection does not work without having already inserted a material.&lt;/P&gt;
  &lt;P&gt;My code looks like this right now: &lt;/P&gt;
  &lt;P&gt;at selection-screen on s_matnr.&lt;BR /&gt;if s_matnr[] is initial.&lt;/P&gt;
  &lt;P&gt; MESSAGE 'The material number must be filled' type 'E'.&lt;/P&gt;
  &lt;P&gt; leave LIST-PROCESSING.&lt;BR /&gt; endif.&lt;/P&gt;
  &lt;P&gt;Is there any way to work around this so that the multiple selection works when no material is filled?&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 05:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397119#M1995261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-06-14T05:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397120#M1995262</link>
      <description>Welcome and thanks for visiting SAP Community to get answers to your questions. While you're waiting for help, check out our tutorial to get started in SAP Community: &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, as it provides tips for preparing questions that draw responses from our members.&lt;BR /&gt;For example, you can:&lt;BR /&gt;- outline what steps you took to find answers (and why they weren't helpful)&lt;BR /&gt;- share screenshots of what you've seen/done&lt;BR /&gt;- make sure you've applied the appropriate tags&lt;BR /&gt;The more details you provide, the more likely it is that members will be able to help you. Should you wish, you can revise your question by selecting Actions, then Edit.&lt;BR /&gt;By adding a picture to your profile you encourage readers to respond to your question. Learn more about your profile here: &lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;</description>
      <pubDate>Mon, 14 Jun 2021 05:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397120#M1995262</guid>
      <dc:creator>moshenaveh</dc:creator>
      <dc:date>2021-06-14T05:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397121#M1995263</link>
      <description>&lt;P&gt;You put the control on the bad event. &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON ...   occurs when you do something on ...   so obviously you check if the SELECT OPTIONS is not empty each time you do something on it ... &lt;/P&gt;&lt;P&gt;Maybe what you want to control is, before calling the report, control the SELECT OPTIONS is not empty. &lt;/P&gt;&lt;P&gt;You could do it with AT USER-COMMAND or after START-OF-SELECTION&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 05:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397121#M1995263</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-06-14T05:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397122#M1995264</link>
      <description>&lt;P&gt;Just curious... if you want a mandatory field... why do not use the OBLIGATORY clause?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 06:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397122#M1995264</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2021-06-14T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397123#M1995265</link>
      <description>&lt;P&gt;If I understand correctly maybe you shouldnt use message type E, use message type S or W display like E&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 08:43:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397123#M1995265</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2021-06-14T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397124#M1995266</link>
      <description>&lt;P&gt;You could try to perform the check only when user triggers the execution:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" ...
TABLES: sscrfields.
" ...
AT SELECTION-SCREEN ON s_matnr.
  CASE sscrfields-ucomm.
    WHEN 'PRIN' OR 'ONLI'.
      IF s_matnr[] IS INITIAL.
	     MESSAGE 'The material number must be filled'(001) TYPE 'E'.
      ENDIF.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This way the check is still executed in the selection screen and the user can enter his selection of material code.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397124#M1995266</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-14T11:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397125#M1995267</link>
      <description>&lt;P&gt;For information, the statement(s) after MESSAGE ... TYPE 'E' (without INTO) are never executed -&amp;gt; remove this dead code.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397125#M1995267</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-06-14T11:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397126#M1995268</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;moisy98&lt;/SPAN&gt; When the optional "ON field" addition is used, only the field is transported from the screen to the global variable (of same name). I guess you want to transport the value of the other field, so the easiest solution is to not use "ON field" (only AT SELECTION-SCREEN) so that all screen fields are transported to the global variables and the check can be done on the fields you want (IF field1 ... AND field2 ...).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397126#M1995268</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-06-14T11:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397127#M1995269</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;raymond.giuseppi&lt;/SPAN&gt; it is working even if he doesn't do any action on the SELECT OPTIONS ?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 11:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397127#M1995269</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-06-14T11:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397128#M1995270</link>
      <description>&lt;P&gt;Thank you for your help. But this doesn't help anyway. &lt;/P&gt;&lt;P&gt;The multiple selection doesn't work anyway when the material number isn't already filled....&lt;/P&gt;&lt;P&gt;Does anyone have a other solution? &lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 12:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397128#M1995270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-06-14T12:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397129#M1995271</link>
      <description>&lt;P&gt;I create a short program and the check was executed. (Seems the generated dynpro statements CHAIN and FIELD don't contain additions such as ON INPUT or ON REQUEST) &lt;/P&gt;&lt;P&gt;Also &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the multiple selection is available even with no value input&lt;/LI&gt;&lt;LI&gt;the s_matnr area is ready for input after raising the error.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397129#M1995271</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-14T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397130#M1995272</link>
      <description>&lt;P&gt;Dont answer an answer with an answer, use comment so others may know who you are answering...&lt;/P&gt;&lt;P&gt;(read the 'Before answering' text below)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397130#M1995272</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-14T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397131#M1995273</link>
      <description>&lt;P&gt;Strange, when you catch an action on a field, and even if there is no action, it is triggered ... &lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397131#M1995273</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-06-14T13:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397132#M1995274</link>
      <description>&lt;P&gt;Why did you add a 'leave LIST-PROCESSING' statement, IMHO not suitable to handle a selection-screen logic (Hopefully these instructions are dead code, never executed, did you perform some text with a warning message?)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 14:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397132#M1995274</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-14T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397133#M1995275</link>
      <description>&lt;P&gt;Hello Giuseppi,&lt;/P&gt;&lt;P&gt;thank you for your help, but the code doesn't work in my case.&lt;/P&gt;&lt;P&gt;The multiple selection does not work when the material number is not filled already.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 14:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397133#M1995275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-06-14T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397134#M1995276</link>
      <description>&lt;P&gt;Post your code, as it should work.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 14:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397134#M1995276</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-14T14:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397135#M1995277</link>
      <description>&lt;P&gt;i have done it like you told me. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN on s_matnr.&lt;BR /&gt;CASE sscrfields-ucomm.&lt;BR /&gt; WHEN 'PRIN' OR 'ONLI'.&lt;BR /&gt; IF s_matnr[] IS INITIAL.&lt;BR /&gt; MESSAGE 'Die Materialnummer muss gefüllt werden' TYPE 'E'.&lt;BR /&gt; ENDIF.&lt;BR /&gt;ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;same situation as before. The multiple selection does not work&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 14:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397135#M1995277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-06-14T14:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: mandatory field (without obligatory) - multiple selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397136#M1995278</link>
      <description>&lt;P&gt;Try to debug the execution (value of UCOMM is not 'ONLI' or 'PRIN' when click on multiple selection icon) error should come from of another code or from any not removed OBLIGATORY option in the SELECT-OPTIONS statement. (Post declaration of S_MATNR)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 09:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-field-without-obligatory-multiple-selection/m-p/12397136#M1995278</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-15T09:05:29Z</dc:date>
    </item>
  </channel>
</rss>

