<?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: Open SQL - fetch selective records whose field value is 5 characters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742937#M1112625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explain your problem little bit clearly.&lt;/P&gt;&lt;P&gt;If possible give one example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2008 04:18:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-10T04:18:24Z</dc:date>
    <item>
      <title>Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742936#M1112624</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;I am using open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which has a field with max length of 10 characters. Now I want to fetch only those records whose value length is 5 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I achieve this without using wildcard '_' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way by which I can find the length of the field value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 09:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742936#M1112624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T09:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742937#M1112625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explain your problem little bit clearly.&lt;/P&gt;&lt;P&gt;If possible give one example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 04:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742937#M1112625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T04:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742938#M1112626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a field lendth say MATNR is 18 characters and in MARA table I have material nos. as &lt;/P&gt;&lt;P&gt;10010001, &lt;/P&gt;&lt;P&gt;20010002, &lt;/P&gt;&lt;P&gt;30010003, &lt;/P&gt;&lt;P&gt;400100045.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in my SQL query, I would like to fetch only the first three material nos., ie,  all material nos whose length is 8 digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to derive it in SQL where condition (not using '_' wildcard).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 09:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742938#M1112626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T09:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742939#M1112627</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;Good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think you can give the field range while selecting a particular field data from the table, so you will get complete filed value with the availble length. If you truncate some the digits outside the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 09:58:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742939#M1112627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T09:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742940#M1112628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE MATNR LIKE '________' would work, why don't you want to use wildcards?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: actually it would not work if MATNR contains only digits, since these are stored with leading zeroes in the DB. Next one please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 10:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742940#M1112628</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-11T10:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742941#M1112629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that this will not work for MATNR. My requirement is not for MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for me not to use '_' wildcard is that I want to do this for 1100, 2000, 3000 .... 7000 series of a particular field. Using '_' would mean that i will have to use '_' for all the series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In native SQL I can use 'where LEN(VKBUR) = 3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a similar way in open SQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 10:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742941#M1112629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742942#M1112630</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; I think we can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially fetch all the data in to the internal table.&lt;/P&gt;&lt;P&gt;then we can delete the records whose length greater than 5 and less than 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 10:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742942#M1112630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742943#M1112631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; In native SQL I can use 'where LEN(VKBUR) = 3'.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Is there a similar way in open SQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I agree that this will not work for MATNR. My requirement is not for MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right, you mentioned field length 10...my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; The reason for me not to use '_' wildcard is that I want to do this for 1100, 2000, 3000 .... 7000 series of a particular field. Using '_' would mean that i will have to use '_' for all the series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not completely getting this, so I'll withdraw now &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 10:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742943#M1112631</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-11T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742944#M1112632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not use open sql and put +++++ in your select-options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return all values consisting of 5 non-blank characters - which may have spaces enclosed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE SE16 for T000 with ++++++ in field MTEXT will select SAP AG but probably not any other client because usually the text is longer.&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;Clemens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 11:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742944#M1112632</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-11-11T11:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742945#M1112633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be the same as LIKE '_____', but he doesn't like it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 11:33:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742945#M1112633</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-11T11:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742946#M1112634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;possibly you can put it into a select-option range LOW = 1100 ...to HIGH = 9000.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 11:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742946#M1112634</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-11-11T11:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Open SQL - fetch selective records whose field value is 5 characters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742947#M1112635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All answers to this question are known. My question is not understood.&lt;/P&gt;&lt;P&gt;Thanks for your time and effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2008 06:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-fetch-selective-records-whose-field-value-is-5-characters/m-p/4742947#M1112635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-22T06:15:38Z</dc:date>
    </item>
  </channel>
</rss>

