<?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: Spaces in SQL and Conc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-in-sql-and-conc/m-p/7842364#M1591056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In db table fields with only whitespaces are considered empty.&lt;/P&gt;&lt;P&gt;For an explanation of how spaces are handled, please consult following [page|http://help.sap.com/abapdocu_702/en/abenliteral.htm] (especially the difference between &lt;STRONG&gt;'&lt;/STRONG&gt; and &lt;STRONG&gt;`&lt;/STRONG&gt;  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For conversion from Unicode value to char and from char to unicode, please consider to use the methods UCCP and UCCI from both classes CL_ABAP_CONV_OUT_CE and CL_ABAP_CONV_IN_CE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 14:06:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-13T14:06:18Z</dc:date>
    <item>
      <title>Spaces in SQL and Conc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-in-sql-and-conc/m-p/7842363#M1591055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm writing a program that needs to take information, encrypt it, and then download it somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I'm running into is using spaces in comparision and also concat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with a range of ascii values ( 32 to 95 or so ), so everything some a space to a z in put inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem works fine for characters and such, however if there is a space involved a complication starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a space has an ascii value of 32, So I've stored it in the database as ' ', and later I tried using SPACE. &lt;/P&gt;&lt;P&gt;[http://imgur.com/sCyoZ|http://imgur.com/sCyoZ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So later in my code to get the value, I do a search of the table with if ascii_table-&amp;gt;ascii_char = SPACE or ' ' then get the value there. The problem is that none of these tests return true. I've tried also with '' and it's also the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question being is it possible to put a single space in a sql line? Does anybody know how whitespace is actually managed and treated inside ABAP? Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Bryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 07:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-in-sql-and-conc/m-p/7842363#M1591055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Spaces in SQL and Conc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-in-sql-and-conc/m-p/7842364#M1591056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In db table fields with only whitespaces are considered empty.&lt;/P&gt;&lt;P&gt;For an explanation of how spaces are handled, please consult following [page|http://help.sap.com/abapdocu_702/en/abenliteral.htm] (especially the difference between &lt;STRONG&gt;'&lt;/STRONG&gt; and &lt;STRONG&gt;`&lt;/STRONG&gt;  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For conversion from Unicode value to char and from char to unicode, please consider to use the methods UCCP and UCCI from both classes CL_ABAP_CONV_OUT_CE and CL_ABAP_CONV_IN_CE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 14:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spaces-in-sql-and-conc/m-p/7842364#M1591056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T14:06:18Z</dc:date>
    </item>
  </channel>
</rss>

