<?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 Select-options field problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636652#M1282973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Seen many Tcodes with many fields as Select options, But never seen any with mandatory field.&lt;/P&gt;&lt;P&gt;Lets try to convince the user in this way,&lt;/P&gt;&lt;P&gt;SAY user it is not possible, if user says anything then ask him to show any reference in SAP. &lt;/P&gt;&lt;P&gt;he need to drop his hopes by seaarching all the time. If he shows then we will have a reference,,, &lt;/P&gt;&lt;P&gt;If not, then also no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 06:09:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-08T06:09:48Z</dc:date>
    <item>
      <title>Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636645#M1282966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Z report I am having a select-options for material selection(s_matnr) on selection screen and that is a mandatory field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the user tries to enter the multiple single values by pressing the arrow icon present near the select-option it gives an error message " Fill in all the required entries "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the problem is I cannot enter the multiple single values in select-options until and unless I fill s_matnr-low. Once I fill s_matnr low then its allowing to enter multiple standard values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as per the requirement the user must be able to enter the multiple single values in s_matnr even if s_matnr-low is not populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the standard functionality of SAP or there is some way out of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on May 8, 2009 7:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636645#M1282966</guid>
      <dc:creator>sachin_yadav3</dc:creator>
      <dc:date>2009-05-08T05:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636646#M1282967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be  INTIALIZATION event helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636646#M1282967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636647#M1282968</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 can handle it exclusively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: b for vbak-erdat." OBLIGATORY." a for vbak-vbeln,.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  if b is initial.&lt;/P&gt;&lt;P&gt;    message e000(ooo) with 'error'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636647#M1282968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636648#M1282969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dande,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as per the usr requirement we need the mandatory field indicator (tick mark) in that select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I cannot remove it from being an obligatory field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other solution would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636648#M1282969</guid>
      <dc:creator>sachin_yadav3</dc:creator>
      <dc:date>2009-05-08T05:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636649#M1282970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even I faced the same problem . I was told that it is a standard functionality . Because when you run the program in debugging mode and click on multiple selection you get an error . And we are not even able to catch the sy-ucomm value . I found it to be a standard functionality .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636649#M1282970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636650#M1282971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nibha, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply but in order to convince the user that this is the standard functionality can anyone please suggest any standard transaction which is having the select-options field as mandatory and same problem occurs in standard transaction also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636650#M1282971</guid>
      <dc:creator>sachin_yadav3</dc:creator>
      <dc:date>2009-05-08T05:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636651#M1282972</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; at SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  screen-required = '2'.&lt;/P&gt;&lt;P&gt;  MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   this code will show the mandatory field symbol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636651#M1282972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636652#M1282973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Seen many Tcodes with many fields as Select options, But never seen any with mandatory field.&lt;/P&gt;&lt;P&gt;Lets try to convince the user in this way,&lt;/P&gt;&lt;P&gt;SAY user it is not possible, if user says anything then ask him to show any reference in SAP. &lt;/P&gt;&lt;P&gt;he need to drop his hopes by seaarching all the time. If he shows then we will have a reference,,, &lt;/P&gt;&lt;P&gt;If not, then also no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636652#M1282973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636653#M1282974</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;When you make the field as obligatory then user need's input the value before performing any action(Like entering the values in the extension part) as it is the standard functionality. To want to over come you can remove the OBLIGATORY statement from the declaration. And use the event AT SELECTION-SCREEN ON &amp;lt;FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON S_MATNR.
IF S_MATNR[] IS INITIAL.
 MESSAGE e016(pn) WITH 'Enter Material Number'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636653#M1282974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636654#M1282975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. But as mentioned by me above it is not possible to remove the field from being mandatory.Any other alternate solution would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636654#M1282975</guid>
      <dc:creator>sachin_yadav3</dc:creator>
      <dc:date>2009-05-08T06:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636655#M1282976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the obligatory addition from the declaration of the select-option....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the example code below .... it will help you resolve your issue for sure.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : scarr, sscrfields. " Tables sscrfields is a must to be declared in your code...

SELECT-OPTIONS : carrid FOR scarr-carrid.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name CS 'CARRID'.
      screen-required = 2.                " though obligatory is not mentioned it will give you tick mark
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

AT SELECTION-SCREEN.
  IF sscrfields-ucomm = 'ONLI'.
    IF carrid IS INITIAL.
      CLEAR sscrfields.
      MESSAGE 'Fill in all required entries' TYPE 'E'.       " once the user press F8 then only this error 
" message will be displayed
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636655#M1282976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636656#M1282977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sachin,&lt;/P&gt;&lt;P&gt;               Below is the sample code for ur requirement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; report ztest.&lt;/P&gt;&lt;P&gt; TABLES mara.&lt;/P&gt;&lt;P&gt;DATA l_tab_mara TYPE TABLE OF mara.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_mat FOR mara-matnr OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    screen-required = '2'.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  IF NOT s_emp IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;           FROM&lt;/P&gt;&lt;P&gt;           mara&lt;/P&gt;&lt;P&gt;           INTO TABLE&lt;/P&gt;&lt;P&gt;           l_tab_mara&lt;/P&gt;&lt;P&gt;           WHERE&lt;/P&gt;&lt;P&gt;           matnr IN s_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE 'Fill In All Required Entry Fields' TYPE 'I'.&lt;/P&gt;&lt;P&gt;    EXIT.&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;Thanks and Regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636656#M1282977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory Select-options field problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636657#M1282978</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;No...there is no option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i missed to add oner check in above post ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON S_MATNR.
IF S_MATNR[] IS INITIAL AND SY-COMM NE '%226'.  --&amp;gt; Function code extension Button you need to check in debug mode 
 MESSAGE e016(pn) WITH 'Enter Material Number'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mandatory-select-options-field-problem/m-p/5636657#M1282978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:40:50Z</dc:date>
    </item>
  </channel>
</rss>

