<?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: Functions in SQL query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233309#M1209538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess loop is mandatory to check each field.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab assigning &amp;lt;fs&amp;gt;.

assign components sy-index of structure &amp;lt;fs&amp;gt; to &amp;lt;fs_fied&amp;gt;.

find string length...

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 13:57:20 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-02-24T13:57:20Z</dc:date>
    <item>
      <title>Functions in SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233308#M1209537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Xperts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a select query which will give me the length of the string value stored in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present I have to read all values from the table and then loop at each value into workarea to find length of each field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any alternative to this? I am querying a table with more than 300K records and I do not want to loop at 300K records to find the desired field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 13:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233308#M1209537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T13:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Functions in SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233309#M1209538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess loop is mandatory to check each field.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab assigning &amp;lt;fs&amp;gt;.

assign components sy-index of structure &amp;lt;fs&amp;gt; to &amp;lt;fs_fied&amp;gt;.

find string length...

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 13:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233309#M1209538</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-24T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Functions in SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233310#M1209539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the workaround..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ......... where column not like '__________'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the field which has lenght more than or less than 10 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 15:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/functions-in-sql-query/m-p/5233310#M1209539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T15:12:32Z</dc:date>
    </item>
  </channel>
</rss>

