<?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 with spacing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795601#M652554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONDENSE would not work as then it will look for the condensed "no spaces" version in the table and would not select the ones with the spaces any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LIKE % would work if I could guarantee that in that position there would be a %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i was thinking of doing is doing a replace &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replacing spaces with % and then doing a like command...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2007 14:00:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-13T14:00:16Z</dc:date>
    <item>
      <title>select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795595#M652548</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 need to do a SELECT statement on a field, but the field may contain spaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IBCU354355-1 could be IBCU 354355-1 or IBCU354355 - 1 etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795595#M652548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795596#M652549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Before selecting the data, you can use the CONDENCE statment to remove the spaces, then use the varibale to get the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795596#M652549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795597#M652550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use LIKE and wildcard % in your where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT...&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;fieldname&amp;gt; LIKE 'IBCU%354355%'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795597#M652550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795598#M652551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select the field......then move it to charecter type variable......then use CONDENSE &amp;lt;&amp;gt; NO-GAPS.&lt;/P&gt;&lt;P&gt;to remove spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795598#M652551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795599#M652552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use CS command&lt;/P&gt;&lt;P&gt;c1 contains the character string c2. &lt;/P&gt;&lt;P&gt;Trailing blanks in c1 and c2 are ignored if the respective field is of type C. &lt;/P&gt;&lt;P&gt;An empty string c2 (i.e., only blanks with type C, or empty string with type STRING) is included in any string c1, including the empty string itself. On the other hand, there is no non-empty string c2 included in an empty string c1. &lt;/P&gt;&lt;P&gt;If the result of the comparison is positive, the system field SY-FDPOS contains the offset of the first character of c2 in c1. &lt;/P&gt;&lt;P&gt;If the result of the comparison is negative, the system field SY-FDPOS contains the length of c1. &lt;/P&gt;&lt;P&gt;The comparison is not case-sensitive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In select query you can write:&lt;/P&gt;&lt;P&gt;where field CS sapce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795599#M652552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795600#M652553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is possble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example - When you select Material Description( MAKT-MAKTX), it may contain space, special chars etc. But you can see them it reports.  Don't you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795600#M652553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795601#M652554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONDENSE would not work as then it will look for the condensed "no spaces" version in the table and would not select the ones with the spaces any more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LIKE % would work if I could guarantee that in that position there would be a %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i was thinking of doing is doing a replace &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replacing spaces with % and then doing a like command...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795601#M652554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795602#M652555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;% is a true wildcard, so it will still work even if there is nothing in that space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,  IBCU%354 would find both IBCU354 and IBCU 354&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795602#M652555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795603#M652556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; % is a true wildcard, so it will still work even if&lt;/P&gt;&lt;P&gt;&amp;gt; there is nothing in that space.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; For example,  IBCU%354 would find both IBCU354 and&lt;/P&gt;&lt;P&gt;&amp;gt; IBCU 354&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree, but it wouldnt find&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IBCU354 1234 because space is in different location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795603#M652556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795604#M652557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Use LIKE and wildcard % in your where clause.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; SELECT...&lt;/P&gt;&lt;P&gt;&amp;gt; WHERE &amp;lt;fieldname&amp;gt; LIKE 'IBCU%354355%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build up the field like this - but wont know where the spaces could occur.  &lt;/P&gt;&lt;P&gt;That is the problem &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795604#M652557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795605#M652558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case then you will have to select the field first and use CONDENSE &amp;lt;fieldname&amp;gt; NO-GAPS to remove the spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795605#M652558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795606#M652559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on your database, you &amp;lt;u&amp;gt;may&amp;lt;/u&amp;gt; be able to achieve this with native SQL. Check with your DBAs to see if they know of any syntax for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795606#M652559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795607#M652560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the replies...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I will just loop through the field and check each item if its a space convert it to %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does that sound &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795607#M652560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: select with spacing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795608#M652561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if the text contains an actual '%'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-spacing/m-p/2795608#M652561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:26:29Z</dc:date>
    </item>
  </channel>
</rss>

