<?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: Suggest the way while validating fields in selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442154#M1053833</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;         I believe you are talking about the Multiple Selections Option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         There are two cases here. For both the Cases, use the Following Logic in the At-Selection Screen Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Select-Options Variable is not declared as OBLIGATORY, then use this Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the At Selection-Screen Event, check the following Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-UCOMM NE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;          Message 'Enter atleast 1 Value' Type 'E'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      This will avoid throwing an Error when you click on the Multiple Selections Option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Select-Options Variable is Declared as Mandatory, the above logic does not work. So, what you can do is,&lt;/P&gt;&lt;P&gt;Do not make it Obligatory. But use the below Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S_MATNR is Initial.&lt;/P&gt;&lt;P&gt;    CHECK NOT SY-UCOMM EQ SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;    Message 'Enter atleast 1 Value' Type 'E'.&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;Hope it was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkat Phani Prasad Konduri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Konduri Venkata Phani Prasad on Sep 12, 2008 2:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2008 19:36:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-11T19:36:17Z</dc:date>
    <item>
      <title>Suggest the way while validating fields in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442152#M1053831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to open multiple selection screen for select-options because when i tried to open, it triggers AT selection-screen event in which some validations are happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the validation fails, it will give message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me the way how i can avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442152#M1053831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T19:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Suggest the way while validating fields in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442153#M1053832</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;Check the sy-ucomm in the at selection-screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN.

if sy-ucomm = 'xxxxx'.  " Function code to open another selection screen.
   EXIT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442153#M1053832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T19:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Suggest the way while validating fields in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442154#M1053833</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;         I believe you are talking about the Multiple Selections Option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         There are two cases here. For both the Cases, use the Following Logic in the At-Selection Screen Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Select-Options Variable is not declared as OBLIGATORY, then use this Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the At Selection-Screen Event, check the following Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-UCOMM NE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;          Message 'Enter atleast 1 Value' Type 'E'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      This will avoid throwing an Error when you click on the Multiple Selections Option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Select-Options Variable is Declared as Mandatory, the above logic does not work. So, what you can do is,&lt;/P&gt;&lt;P&gt;Do not make it Obligatory. But use the below Logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S_MATNR is Initial.&lt;/P&gt;&lt;P&gt;    CHECK NOT SY-UCOMM EQ SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;    Message 'Enter atleast 1 Value' Type 'E'.&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;Hope it was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Venkat Phani Prasad Konduri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Konduri Venkata Phani Prasad on Sep 12, 2008 2:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 19:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggest-the-way-while-validating-fields-in-selection-screen/m-p/4442154#M1053833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T19:36:17Z</dc:date>
    </item>
  </channel>
</rss>

