<?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: validation for select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-select-options/m-p/3283139#M785204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use select-options, the best thing to do is use the IN operator in the where clause.&lt;/P&gt;&lt;P&gt;Something like this should do the trick. I did not test it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_rzzps for zupi5t-rzzps_posid obligatory no intervals, "WBS Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zfirestate_log&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE t_data&lt;/P&gt;&lt;P&gt;WHERE ryear EQ p_ryear&lt;/P&gt;&lt;P&gt;AND rbukrs EQ p_rbukrs&lt;/P&gt;&lt;P&gt;AND rzzps_posid IN s_rzzps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;move 'YES' to s_var5.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;move 'NO' to s_var5.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 14:22:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-08T14:22:32Z</dc:date>
    <item>
      <title>validation for select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-select-options/m-p/3283138#M785203</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;This is my select-options.(i am sending part of my code )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; s_rzzps for zupi5t-rzzps_posid obligatory no intervals,  "WBS Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select   from_period to_period from_acct&lt;/P&gt;&lt;P&gt;           to_acct ryear rbukrs rzzps_posid&lt;/P&gt;&lt;P&gt;           from zfirestate_log&lt;/P&gt;&lt;P&gt;           into corresponding fields of table t_data&lt;/P&gt;&lt;P&gt;           where ryear eq p_ryear&lt;/P&gt;&lt;P&gt;           and rbukrs eq p_rbukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_rzzps.&lt;/P&gt;&lt;P&gt;        IF s_rzzps-low eq t_data-rzzps_posid.&lt;/P&gt;&lt;P&gt;          move 'YES' to s_var5.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          move 'NO' to s_var5.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i am doing here is i am checking the entries which r given in the selection screen with the entries in the table zfirestate_log. it the entries r present in the table then i am rising an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but with the above select -options it is defined as no intervals .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i give multiple options its not checking with all the entries in the selec-options. its checking only the first entry in the header line of s_rzzps( since select options is a table)&lt;/P&gt;&lt;P&gt;with the table entreis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need to check all the entries in s_rzzps .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me resolving this issue its required urgently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 13:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-select-options/m-p/3283138#M785203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: validation for select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-select-options/m-p/3283139#M785204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use select-options, the best thing to do is use the IN operator in the where clause.&lt;/P&gt;&lt;P&gt;Something like this should do the trick. I did not test it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_rzzps for zupi5t-rzzps_posid obligatory no intervals, "WBS Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zfirestate_log&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE t_data&lt;/P&gt;&lt;P&gt;WHERE ryear EQ p_ryear&lt;/P&gt;&lt;P&gt;AND rbukrs EQ p_rbukrs&lt;/P&gt;&lt;P&gt;AND rzzps_posid IN s_rzzps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;move 'YES' to s_var5.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;move 'NO' to s_var5.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 14:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-select-options/m-p/3283139#M785204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T14:22:32Z</dc:date>
    </item>
  </channel>
</rss>

