<?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 Query Scenario in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218776#M1378758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right.&lt;/P&gt;&lt;P&gt;All three are of type c.&lt;/P&gt;&lt;P&gt;Me too was looking around this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after the select when i give&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE lt_cdv_params[] WHERE to_bankkey &amp;lt; input.&lt;/P&gt;&lt;P&gt;still it doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope so i should change the data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ways to do without changing the data type ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2009 13:05:52 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-10-14T13:05:52Z</dc:date>
    <item>
      <title>Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218769#M1378751</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;I have a select query scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in a ztable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields A and B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it holds records like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A	B&lt;/P&gt;&lt;P&gt;3	5&lt;/P&gt;&lt;P&gt;2	10&lt;/P&gt;&lt;P&gt;7	12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if my input is 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a query like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztab where ( a &amp;lt;= input and b &amp;gt;= input ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is its picking both the record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3	5&lt;/P&gt;&lt;P&gt;2	10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my output should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3	5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that this could be acheived using a select and a delete from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i need to acheive this through single select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218769#M1378751</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-14T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218770#M1378752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why 3  5 and whynot 2  10? on what basis you need 3  5? will that logic works with just select?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218770#M1378752</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2009-10-14T12:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218771#M1378753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i'll explain with the real values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my input is 123456789011234&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its fetching&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100000         199999&lt;/P&gt;&lt;P&gt;100000	       199999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it must not pick any data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218771#M1378753</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-14T12:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218772#M1378754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the length of the data element for both field (a and b)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218772#M1378754</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2009-10-14T12:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218773#M1378755</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;Use SELECT SINGLE statement  then you will get first  record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218773#M1378755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-14T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218774#M1378756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)I cannot use select single , may contain multiple records.&lt;/P&gt;&lt;P&gt;2)Data types are same for both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should i go for sub query ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218774#M1378756</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-14T12:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218775#M1378757</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;Just a hunch: are all three fields in your example (A, B, input) &lt;EM&gt;numeric&lt;/EM&gt; ? If they are character fields, then the two fetched records nicely match your WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218775#M1378757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-14T12:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218776#M1378758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right.&lt;/P&gt;&lt;P&gt;All three are of type c.&lt;/P&gt;&lt;P&gt;Me too was looking around this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after the select when i give&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE lt_cdv_params[] WHERE to_bankkey &amp;lt; input.&lt;/P&gt;&lt;P&gt;still it doesnt work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope so i should change the data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ways to do without changing the data type ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 13:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218776#M1378758</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-14T13:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218777#M1378759</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;If the data comes from  a Z table and the fields are numeric by nature (as the name "bankkey" might imply), then I would really recommend adapting the data type in the table, making the fields numeric. Working around the data type in your code (which technically you coudl do by a MOVE from the C field to a numeric field) would be clumsy and you'd have to do it in every program thet accesses this data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 13:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218777#M1378759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-14T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218778#M1378760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done by changing the type to NUMC and Solved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 13:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-scenario/m-p/6218778#M1378760</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-10-14T13:27:29Z</dc:date>
    </item>
  </channel>
</rss>

