<?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: Validating Selection screen fields..its not easy. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872480#M367237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want only one field ie matnt from mara then use -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr into p_matnr from mara where...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jan 2007 09:42:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-19T09:42:06Z</dc:date>
    <item>
      <title>Validating Selection screen fields..its not easy.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872478#M367235</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;Kindly tell me how to evaluate selection screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.u will use select matnr frim mara into p_matnr where matnr = ...&lt;/P&gt;&lt;P&gt;2 or u will use select single matnr...&lt;/P&gt;&lt;P&gt;3.or u will use select single *....&lt;/P&gt;&lt;P&gt;4. or select ..up to 1 row..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 09:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872478#M367235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Validating Selection screen fields..its not easy.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872479#M367236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data : p_matnr like mara-matnr,
          v_matnr like mara-matnr.

select single matnr from mara into v_matnr where matnr eq p_matnr.

write : v_matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 09:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872479#M367236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T09:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Validating Selection screen fields..its not easy.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872480#M367237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want only one field ie matnt from mara then use -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matnr into p_matnr from mara where...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 09:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872480#M367237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T09:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Validating Selection screen fields..its not easy.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872481#M367238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar , &lt;/P&gt;&lt;P&gt;  You have listed most of the ways of validating a selection screen element.&lt;/P&gt;&lt;P&gt;The way i would do is use SELECT SINGLE MATNR  , the reason for this i just want to check if the user has entered at least one valid value so that i proceed the rest of processing , so if i get at least one record which is valid then i can procceed with processing else will display an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why i dont prefer the other 3 cases is it results in unnecessary access of data from the tables which is actually not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 09:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872481#M367238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T09:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Validating Selection screen fields..its not easy.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872482#M367239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually i try to optimize like thge following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Define SSCRFIELDS strcture in your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) In SELECTION-SCREEN control check if user press enter for control on lauched the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION SCREEN ON s-matnr.&lt;/P&gt;&lt;P&gt;  if SSCRFIELDS-ucomm = 'ONLI'&lt;/P&gt;&lt;P&gt;  or SSCRFIELDS-ucomm = 'PRIN'.&lt;/P&gt;&lt;P&gt;select * from mara into table t_mara where matnr in s-matnr.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;select single * from MARA where matnr in s-matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e665(cn).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in case of real execution, i can use previous controls result to execute complex controls, in other case, i perform only elementary checks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 09:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872482#M367239</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-01-19T09:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Validating Selection screen fields..its not easy.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872483#M367240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;data l_matnr type mara-matnr.&lt;/P&gt;&lt;P&gt;parameters : p_matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if p_matnr is not initial .&lt;/P&gt;&lt;P&gt;   select matnr from mara into l_matnr .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e027(zz_mess).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2007 10:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-selection-screen-fields-its-not-easy/m-p/1872483#M367240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-19T10:47:50Z</dc:date>
    </item>
  </channel>
</rss>

