<?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 select-options entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388553#M1404390</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;Change the select-options as No-Extension/No-Intervals or else change it to parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise we cannot validate all values as select options also involved exclusion or ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2009 13:34:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-15T13:34:44Z</dc:date>
    <item>
      <title>validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388545#M1404382</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;i need to check whether all entries in SELECT-OPTIONS range are valid or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*my select-options field is s-pernr as below.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_pernr  FOR pernr-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*all valid entries from PA0000 table will be selected into pernr_table.&lt;/P&gt;&lt;P&gt;SELECT DISTINCT pernr&lt;/P&gt;&lt;P&gt;        FROM pa0000&lt;/P&gt;&lt;P&gt;        INTO TABLE pernr_table&lt;/P&gt;&lt;P&gt;        WHERE pernr IN s_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have to check all invalid pernr's in s_pernr.&lt;/P&gt;&lt;P&gt;s_pernr contains: 1, 5, 6, 7, 8, 9, 10.&lt;/P&gt;&lt;P&gt;PA0000 contains: 1, 2, 5, 8, 10, 11, 13, 15...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pernr_table = 1, 5, 8, 10 only.&lt;/P&gt;&lt;P&gt;that means pernr 6, 7, 9 in s_pernr were invalid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fetch these values  as s_pernr is SELECT-OPTIONS field and it may have any combination of values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 11:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388545#M1404382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T11:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388546#M1404383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have define the select-option.&lt;/P&gt;&lt;P&gt;U know it is struture with SIGN OPTION,HIGH and LOW FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use FOR ALL ENTRIES for that selction structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 11:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388546#M1404383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388547#M1404384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjari Agrawal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

AT SELECTION-SCREEN.

SELECT DISTINCT pernr
FROM pa0000
INTO TABLE pernr_table
WHERE pernr IN s_pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compare the value of internal table  pernr_table and select-option range..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not matching then give error message..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here  pernr_table table contains only valid PERNRs... so whatever PERNRs are not matching this criteria will be invalid..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 12:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388547#M1404384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T12:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388548#M1404385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT SELECTION-SCREEN ON SO_PROM().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perfrom validate_promo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write ur code in this perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 12:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388548#M1404385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T12:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388549#M1404386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no.&lt;/P&gt;&lt;P&gt;i have to compare the value of select-option range with those in internal table pernr_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not the vice versa &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 12:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388549#M1404386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T12:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388550#M1404387</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 try either of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy your internal table data into some temporary internal table and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DELETE it_temp WHERE field NOT IN s_selopt 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will delete all those data that are not present in s_selopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Alternatively, write a logic to convert all the data in your select options to some internal table.&lt;/P&gt;&lt;P&gt;Please be mindful of 'I', 'E', 'BT', 'EQ', 'CP'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 12:13:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388550#M1404387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T12:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388551#M1404388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  As far as what i get from your question is, user put multiple values in the LOW field of the select-option and you have to&lt;/P&gt;&lt;P&gt;check all the values entered in the select-option-LOW field.&lt;/P&gt;&lt;P&gt;  If this is the case, you can loop at select-option as show :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create an internal table of type&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
BEGIN OF ty_pernr ,
   sign(1)   TYPE c,
   option(2) TYPE c,
   low       TYPE pa0000-pernr,
   high      TYPE pa0000-pernr,
 END   OF ty_pernr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) create workarea of type ty_pernr.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data wa_pernr type ty_pernr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) loop at the select-option.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at s_pernr into wa_pernr.
    SELECT single pernr
   FROM pa0000
    INTO TABLE pernr_table
    WHERE pernr eq wa_pernr-low.

  if sy-subrc ne 0.
     "give error message.
  endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 12:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388551#M1404388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T12:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388552#M1404389</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;Your idea of validating a SELECT-OPTION is flawed if you can maintain ranges i.e., HIGH &amp;amp; LOW values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to restrict the SELECT-OPTION so that user cannot input range values, else i cannot think of any fullproof solution for this &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 12:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388552#M1404389</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-15T12:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388553#M1404390</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;Change the select-options as No-Extension/No-Intervals or else change it to parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise we cannot validate all values as select options also involved exclusion or ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2009 13:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388553#M1404390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-15T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: validating select-options entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388554#M1404391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using the select statement in loop better to use for all entries and then compare the retrieved data with the input data (selection screen).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 12:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-select-options-entries/m-p/6388554#M1404391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T12:12:14Z</dc:date>
    </item>
  </channel>
</rss>

