<?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: Replace '|'  with Space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335387#M1538722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your code (and your string) look like?  It helps when you post it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement works just fine for pipes and so does TRANSLATE...though the gaps will be handled differently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Oct 2010 17:25:21 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2010-10-28T17:25:21Z</dc:date>
    <item>
      <title>Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335386#M1538721</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 should replace ' | '   with space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 'Replacing all occurances '  but its not replacing with space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give inputs on this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;kamesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 16:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335386#M1538721</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2010-10-28T16:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335387#M1538722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your code (and your string) look like?  It helps when you post it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement works just fine for pipes and so does TRANSLATE...though the gaps will be handled differently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 17:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335387#M1538722</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-10-28T17:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335388#M1538723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI brad &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one text field  like .   'This| is|test |Program ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want this  like  'This is test program '. For this I am using  REPLACE ALL OCCURANCES OF  ' | ' in field with  '  ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not giving space but removing |. This is my issue .I think ou understood .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How TRANSLATE statement will help in this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;kamesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: KAMESH G on Oct 28, 2010 7:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 17:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335388#M1538723</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2010-10-28T17:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335389#M1538724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPLACE doesn't work well when replacing with a space. Use TRANSLATE instead:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: f1(10) VALUE '1234|567|8'.
TRANSLATE f1 USING '| '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 17:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335389#M1538724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-28T17:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335390#M1538725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA lv_data TYPE char20 VALUE 'This|test |is for SDN | '.

WRITE :/ lv_data.
REPLACE ALL OCCURRENCES OF '|' IN lv_data WITH ' '.
WRITE :/ lv_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 19:05:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335390#M1538725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-28T19:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335391#M1538726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From help.sap.com:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character literals are sequences of alphanumeric characters in the source code of an ABAP program enclosed in single quotation marks or backquotes. Character literals enclosed in quotation marks have the predefined ABAP type c and are described as text field literals. Literals enclosed in backquotes have the ABAP type string and are described as string literals. The field length is defined by the number of characters. With text field literals trailing blanks are ignored while in string literals they are taken into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case you need to use &lt;STRONG&gt;string literal&lt;/STRONG&gt; which is represented by backquotes `&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPLACE ALL OCCURRENCES OF '|' IN lv_data WITH ` `.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 19:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335391#M1538726</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-28T19:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335392#M1538727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this code works the same as the original.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regular expressions are another option. You can search the forum for examples.&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, 28 Oct 2010 19:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335392#M1538727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-28T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335393#M1538728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Does anyone know why this doesn't work?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52" style="font-family: courier new,courier;"&gt;REPLACE &lt;SPAN class="L0S52"&gt;ALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OCCURRENCES &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;cl_abap_char_utilities&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;newline &lt;SPAN class="L0S52"&gt;IN lv_&lt;/SPAN&gt;text &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;` `&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The newlines simply get removed and no space replaces them.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 07:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335393#M1538728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-16T07:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replace '|'  with Space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335394#M1538729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Use the below if you want to convert '_' with space.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;TRANSLATE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 11.818181991577148px; font-family: 'courier new', courier; color: #333333;"&gt;lv_&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11.818181991577148px;"&gt;text&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;USING &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'_&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 08:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/7335394#M1538729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-26T08:37:11Z</dc:date>
    </item>
  </channel>
</rss>

