<?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 from DB Tables with String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-db-tables-with-string/m-p/3216045#M766857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created following 'simple' DDIC Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLNT	MANDT	CLNT	3	0	Client&lt;/P&gt;&lt;P&gt;ID	   ID	NUMC	8	0	Object ID of Business Event Offered&lt;/P&gt;&lt;P&gt;DATE   DATUM	DATS	8	0	Date&lt;/P&gt;&lt;P&gt;STR	(none*)            STRING	      	0	String&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;... where field str has the predefined type string!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I now want to search the string (I know it would be very slow, but that's ok in the first step, later on we create an index table or sth like that) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from ztas254_str_test&lt;/P&gt;&lt;P&gt;    into table lt_str_test&lt;/P&gt;&lt;P&gt;    where str like '%test%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on activation of the program I get the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The field "str" is a long string, so it cannot be used in, where on or having conditions."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I directly select/search the str field in from the table? Besides from the like condition I tried to search with a range and IN. But the same error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing on an ECC6.0 SP12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone ever tried somethink like that please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alej&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: * Points will be rewarded! *&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 08:16:52 GMT</pubDate>
    <dc:creator>alejiandro_sensejl</dc:creator>
    <dc:date>2008-01-18T08:16:52Z</dc:date>
    <item>
      <title>Select from DB Tables with String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-db-tables-with-string/m-p/3216045#M766857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created following 'simple' DDIC Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLNT	MANDT	CLNT	3	0	Client&lt;/P&gt;&lt;P&gt;ID	   ID	NUMC	8	0	Object ID of Business Event Offered&lt;/P&gt;&lt;P&gt;DATE   DATUM	DATS	8	0	Date&lt;/P&gt;&lt;P&gt;STR	(none*)            STRING	      	0	String&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;... where field str has the predefined type string!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I now want to search the string (I know it would be very slow, but that's ok in the first step, later on we create an index table or sth like that) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from ztas254_str_test&lt;/P&gt;&lt;P&gt;    into table lt_str_test&lt;/P&gt;&lt;P&gt;    where str like '%test%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on activation of the program I get the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The field "str" is a long string, so it cannot be used in, where on or having conditions."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I directly select/search the str field in from the table? Besides from the like condition I tried to search with a range and IN. But the same error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing on an ECC6.0 SP12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone ever tried somethink like that please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alej&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: * Points will be rewarded! *&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 08:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-db-tables-with-string/m-p/3216045#M766857</guid>
      <dc:creator>alejiandro_sensejl</dc:creator>
      <dc:date>2008-01-18T08:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select from DB Tables with String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-db-tables-with-string/m-p/3216046#M766858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By now solved via an index table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 10:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-db-tables-with-string/m-p/3216046#M766858</guid>
      <dc:creator>alejiandro_sensejl</dc:creator>
      <dc:date>2008-02-07T10:32:06Z</dc:date>
    </item>
  </channel>
</rss>

