<?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 a table ignoring spaces in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370632#M8263</link>
    <description>&lt;P&gt;I want to select from ADRC to find customers who have a particular phone number.&lt;/P&gt;&lt;P&gt;The phone numbers are stored in ADRC with spaces in different places e.g. 012345 or 012 345 or 0123 45 etc.&lt;/P&gt;&lt;P&gt;Is there a way to select from ADRC with the input phone number 012345 and for it to return all customers with 012345 or 012 345 etc.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 07:24:44 GMT</pubDate>
    <dc:creator>mgross1</dc:creator>
    <dc:date>2016-10-28T07:24:44Z</dc:date>
    <item>
      <title>Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370632#M8263</link>
      <description>&lt;P&gt;I want to select from ADRC to find customers who have a particular phone number.&lt;/P&gt;&lt;P&gt;The phone numbers are stored in ADRC with spaces in different places e.g. 012345 or 012 345 or 0123 45 etc.&lt;/P&gt;&lt;P&gt;Is there a way to select from ADRC with the input phone number 012345 and for it to return all customers with 012345 or 012 345 etc.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 07:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370632#M8263</guid>
      <dc:creator>mgross1</dc:creator>
      <dc:date>2016-10-28T07:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370633#M8264</link>
      <description>&lt;P&gt;Any possibility with Like operator in Select query .&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;Each time move the 012345 to any string and remove the Space and &lt;BR /&gt;now check it &lt;/P&gt;&lt;P&gt;If 012345 eq 012345&lt;BR /&gt;append the record to the table.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 08:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370633#M8264</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-10-28T08:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370634#M8265</link>
      <description>&lt;P&gt;I do not think it's possible to do via a single select (at least not before 740, but i did not used too much 740 so i speak for previous releases).&lt;/P&gt;&lt;P&gt;My suggestion is to select into an internal table KUNNR - Phone Number and then work with the internal table: loop it, condense no gaps the phone number, and the read the table for your give phone number.&lt;BR /&gt;I do not think performances are &lt;EM&gt;so highly &lt;/EM&gt;impacted by this approach (not clean but surely works)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 08:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370634#M8265</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-10-28T08:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370635#M8266</link>
      <description>&lt;P&gt;Given Phone number "02 256432": How can you use LIKE?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 08:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370635#M8266</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-10-28T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370636#M8267</link>
      <description>&lt;P&gt;Use &lt;A href="http://help.sap.com/abapdocu_702/en/abenadbc.htm"&gt;ADBC &lt;/A&gt;to issue native SQL to the database with replace - &lt;A href="https://help.sap.com/saphelp_hanaplatform/helpdata/en/20/e66a2c75191014bac6a279955db665/content.htm" target="test_blank"&gt;https://help.sap.com/saphelp_hanaplatform/helpdata/en/20/e66a2c75191014bac6a279955db665/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;. E.g. SELECT ... WHERE replace(TEL_NUMBER,' ','') = &lt;EM&gt;phone_number_without_spaces&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 08:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370636#M8267</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-10-28T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370637#M8268</link>
      <description>&lt;P&gt;But only if he's under Hana, right?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 08:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370637#M8268</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-10-28T08:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370638#M8269</link>
      <description>&lt;P&gt;Ok, That's what i mentioned any possibility (some doubt).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 09:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370638#M8269</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-10-28T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370639#M8270</link>
      <description>&lt;P&gt;Not only Hana, some other
database, like Oracle for example, support the &lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions134.htm"&gt;REPLACE&lt;/A&gt;
function (also the &lt;A href="https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions130.htm"&gt;REGEXP_REPLACE&lt;/A&gt;
function too) So you could use ABDC classes like &lt;A href="https://help.sap.com/abapdocu_740/en/abencl_sql_statement.htm"&gt;CL_SQL_STATEMENT&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;From 7.51 (or less?) you
can also use the REPLACE function in OPEN-SQL, read &lt;A href="https://blogs.sap.com/2016/10/18/abap-news-release-7.51-case-insensitive-search-sql-new-functions/"&gt;ABAP
News for Release 7.51 – Case Insensitive Search in SQL and Other New Functions&lt;/A&gt;
from &lt;SPAN class="mention-scrubbed"&gt;horst.keller&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;
Raymond&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370639#M8270</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-10-28T11:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370640#M8271</link>
      <description>&lt;P&gt;Thanks for the explain, Raymond.&lt;/P&gt;&lt;P&gt;My old Sybase with 731 cannot support it, i just tried &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370640#M8271</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2016-10-28T11:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370641#M8272</link>
      <description>&lt;P&gt;Thanks everyone for the suggestions.&lt;/P&gt;&lt;P&gt;We have decided to load all customers/phone numbers into a Z table without spaces. A BADI will populate this table when any phone numbers are created or changed.&lt;/P&gt;&lt;P&gt;The retrieval of the customers based on the phone number needs to be fast which is why we have gone down this route.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370641#M8272</guid>
      <dc:creator>mgross1</dc:creator>
      <dc:date>2016-10-28T13:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select from a table ignoring spaces</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370642#M8273</link>
      <description>&lt;P&gt;Even better solution : ADR2 has the field TELNR_CALL which stores numbers without spaces. So I can use that!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 08:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-a-table-ignoring-spaces/m-p/370642#M8273</guid>
      <dc:creator>mgross1</dc:creator>
      <dc:date>2016-10-31T08:52:29Z</dc:date>
    </item>
  </channel>
</rss>

