<?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: SELECT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027048#M962394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But these are SELECT-OPTIONS and user can enter more than one value, how to alter the select query for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 08:35:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T08:35:22Z</dc:date>
    <item>
      <title>SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027044#M962390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT SINGLE bukrs FROM t001 INTO t001-bukrs&lt;/P&gt;&lt;P&gt;                         	WHERE bukrs IN p_co_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do extended syntax check I get a warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In "SELECT SINGLE ...", the WHERE condition for the key field "BUKRS" does not test &lt;/P&gt;&lt;P&gt;for equality. Therefore, the single record you are searching for may not be         &lt;/P&gt;&lt;P&gt;unique.                                                                                &lt;/P&gt;&lt;P&gt;p_co_code is a SELECT-OPTIONS parameter in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I correct this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027044#M962390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027045#M962391</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;PRE&gt;&lt;CODE&gt;SELECT SINGLE bukrs FROM t001 INTO t001-bukrs
WHERE bukrs = p_co_code-low.        '&amp;lt;-- replace = with IN&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and add low or high value to p_co_code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN is applicable for Selection-options, where in u have range of values. since u want only one record, pass only one value in where condition using EQ or = .&lt;/P&gt;&lt;P&gt;remove&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027045#M962391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027046#M962392</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;declare p_co_code as shown below..also make sure t001 is declared as tables at the top ....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

tables : t001.
select-options : p_co_code for t001-bukrs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027046#M962392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027047#M962393</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;PRE&gt;&lt;CODE&gt;Tables: t001. ( at the top.)

SELECT SINGLE bukrs FROM t001 INTO t001-bukrs
WHERE bukrs = p_co_code.( also = )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Virkanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027047#M962393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027048#M962394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But these are SELECT-OPTIONS and user can enter more than one value, how to alter the select query for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027048#M962394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027049#M962395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can simply ignore these warnings ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027049#M962395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027050#M962396</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 give more than one value. but u r using SELECT SINGLE...if it is just for validation purpose and u want the warnign to be rectified jus give &lt;/P&gt;&lt;P&gt;SELECT SINGLE bukrs FROM t001 INTO t001-bukrs&lt;/P&gt;&lt;P&gt;WHERE bukrs IN p_co_code-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will not give u any error in the program, even if u use the same select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027050#M962396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027051#M962397</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;SELECT-OPTIONS : P_CODE FOR T001-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE BUKRS FROM T001 INTO T001-BUKRS&lt;/P&gt;&lt;P&gt;WHERE BUKRS eq P_CODE-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now do extended syntax check.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027051#M962397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027052#M962398</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;From the code that you have pasted I understand that you need to validate all the company codes that the user enters in the selection screen. So, you will have to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs from T001&lt;/P&gt;&lt;P&gt;                       into table l_i_bukrs&lt;/P&gt;&lt;P&gt;                      where bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( s_bukrs is your select option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code that you pasted the error lies in SELECt SINGLE as if the user has entered 2 company codes in select option parameter then for those 2 company codes you are trying to fetch one single record...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please modify your code accordingly and let me know if it  helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Warm Regards,&lt;/P&gt;&lt;P&gt;  Prajakta K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 10:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/4027052#M962398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T10:04:15Z</dc:date>
    </item>
  </channel>
</rss>

