<?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 Select query problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375127#M810405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends, &lt;/P&gt;&lt;P&gt;I have problem with select statement:&lt;/P&gt;&lt;P&gt;My query is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: r_name_key.&lt;/P&gt;&lt;P&gt;  REFRESH: r_PART_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  r_name_key-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_name_key-option = 'CP'.&lt;/P&gt;&lt;P&gt;  r_name_key-low  =  '00000000' .&lt;/P&gt;&lt;P&gt;  r_name_key-high  =  '99999999' .&lt;/P&gt;&lt;P&gt;  APPEND r_name_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  r_PART_NO-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_PART_NO-option = 'CP'.&lt;/P&gt;&lt;P&gt;  r_PART_NO-low  =  ' ' .&lt;/P&gt;&lt;P&gt;  r_PART_NO-high  =  ' ' .&lt;/P&gt;&lt;P&gt;  APPEND r_PART_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  matnr name_key part_no FROM XXX INTO TABLE&lt;/P&gt;&lt;P&gt;  itab_XXX&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN itab_mfg&lt;/P&gt;&lt;P&gt;  WHERE NAME_KEY in r_name_key and&lt;/P&gt;&lt;P&gt;              PART_NO in r_PART_NO and&lt;/P&gt;&lt;P&gt;              matnr = itab_mfg-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;STRONG&gt;itab_mfg&lt;/STRONG&gt; is having 305 records and Table &lt;STRONG&gt;XXX&lt;/STRONG&gt; is having 2000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is failed...its not picked even one records also...Ihave checked the table there are somany matched records need to fetch ( Ihave used the ranges to increse the performence).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the problem with query???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 10:44:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T10:44:44Z</dc:date>
    <item>
      <title>Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375127#M810405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends, &lt;/P&gt;&lt;P&gt;I have problem with select statement:&lt;/P&gt;&lt;P&gt;My query is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: r_name_key.&lt;/P&gt;&lt;P&gt;  REFRESH: r_PART_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  r_name_key-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_name_key-option = 'CP'.&lt;/P&gt;&lt;P&gt;  r_name_key-low  =  '00000000' .&lt;/P&gt;&lt;P&gt;  r_name_key-high  =  '99999999' .&lt;/P&gt;&lt;P&gt;  APPEND r_name_key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  r_PART_NO-sign = 'I'.&lt;/P&gt;&lt;P&gt;  r_PART_NO-option = 'CP'.&lt;/P&gt;&lt;P&gt;  r_PART_NO-low  =  ' ' .&lt;/P&gt;&lt;P&gt;  r_PART_NO-high  =  ' ' .&lt;/P&gt;&lt;P&gt;  APPEND r_PART_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT  matnr name_key part_no FROM XXX INTO TABLE&lt;/P&gt;&lt;P&gt;  itab_XXX&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN itab_mfg&lt;/P&gt;&lt;P&gt;  WHERE NAME_KEY in r_name_key and&lt;/P&gt;&lt;P&gt;              PART_NO in r_PART_NO and&lt;/P&gt;&lt;P&gt;              matnr = itab_mfg-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &lt;STRONG&gt;itab_mfg&lt;/STRONG&gt; is having 305 records and Table &lt;STRONG&gt;XXX&lt;/STRONG&gt; is having 2000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is failed...its not picked even one records also...Ihave checked the table there are somany matched records need to fetch ( Ihave used the ranges to increse the performence).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the problem with query???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375127#M810405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T10:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375128#M810406</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 ur ranges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;r_name_key-sign = 'I'.
r_name_key-option = 'BT'.
r_name_key-low = '00000000' .
r_name_key-high = '99999999' .
APPEND r_name_key.

r_PART_NO-sign = 'I'.
r_PART_NO-option = 'BT'.
r_PART_NO-low = ' ' .
r_PART_NO-high = ' ' .
APPEND r_PART_NO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375128#M810406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375129#M810407</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 your code as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

r_name_key-sign = 'I'.
r_name_key-option = 'BT'. "Chnaged from CP to BT
r_name_key-low = '00000000' .
r_name_key-high = '99999999' .
APPEND r_name_key.

r_PART_NO-sign = 'I'.
r_PART_NO-option = 'BT'. "Changed from CP to BT
r_PART_NO-low = ' ' .
r_PART_NO-high = ' ' .
APPEND r_PART_NO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375129#M810407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T10:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375130#M810408</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;have u checked that there r records which are satisfying all the three conditions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375130#M810408</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2008-02-06T10:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375131#M810409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI shridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your ranges will be the problem. For option you use 'CP' which means contains pattern, but from the values in low and high this should be BT I guess?&lt;/P&gt;&lt;P&gt;For the second range it is not clear what you want. To select only records with PART_NO = space?&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375131#M810409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375132#M810410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;try like dis,&lt;/P&gt;&lt;P&gt;SELECT matnr name_key part_no INTO TABLE&lt;/P&gt;&lt;P&gt;itab_XXX&lt;/P&gt;&lt;P&gt;FROM XXX &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itab_mfg&lt;/P&gt;&lt;P&gt;WHERE NAME_KEY in r_name_key and&lt;/P&gt;&lt;P&gt;PART_NO in r_PART_NO and&lt;/P&gt;&lt;P&gt;matnr = itab_mfg-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375132#M810410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375133#M810411</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;    Option u kept as 'CP'. Is it the exact requirement matches or not . once check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375133#M810411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T10:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375134#M810412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sriram Thanks for the replay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is solved but if I removed &lt;STRONG&gt;r_PART_NO&lt;/STRONG&gt; range from select statement. if I pass &lt;STRONG&gt;r_PART_NO&lt;/STRONG&gt; in my select stament along with &lt;STRONG&gt;r_name_key&lt;/STRONG&gt; the condition is failed.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyho thanks for the replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 11:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375134#M810412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375135#M810413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your right ..... I need to take BT instead of CP, I removed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for PART_NO  its Char field in my table because of that I have taken it like this in my select statement.&lt;/P&gt;&lt;P&gt; but if I used PART_NO in my select statemnt the condition is failed.( I gues it is empty so ..)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 11:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375135#M810413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T11:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375136#M810414</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;Can you do a small change, anyhow you are not passing any values to r_part_no take out the r_part_no from the select statement. And you can use below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Delete itab where part_no not in r_part_no.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 11:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-problem/m-p/3375136#M810414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T11:27:36Z</dc:date>
    </item>
  </channel>
</rss>

