<?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 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/6939503#M1487089</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 want to replace '#' with space in a string. I used the below statement.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF '#' IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF '##' IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it is working fine in Development system. But the same statement is not working properly in Quality and Production.&lt;/P&gt;&lt;P&gt;Replace all statement ends up in sy-subrc = 4 in quality and production. Hence I tried with the below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FIND str IN gtext.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF str IN gtext WITH ' '.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case also, it is working fine in Development. But in Quality, the Find statement ends up in sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me some points to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 09:24:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-18T09:24:48Z</dc:date>
    <item>
      <title>Replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939503#M1487089</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 want to replace '#' with space in a string. I used the below statement.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF '#' IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF '##' IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it is working fine in Development system. But the same statement is not working properly in Quality and Production.&lt;/P&gt;&lt;P&gt;Replace all statement ends up in sy-subrc = 4 in quality and production. Hence I tried with the below statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FIND str IN gtext.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    REPLACE ALL OCCURRENCES OF str IN gtext WITH ' '.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case also, it is working fine in Development. But in Quality, the Find statement ends up in sy-subrc = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me some points to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939503#M1487089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:24: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/6939504#M1487090</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 guess there might be problem while populating p_text in quality system.Check whether the string is populated correctly in p_text in Quality system.Debug the code once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939504#M1487090</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2010-05-18T09:30:03Z</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/6939505#M1487091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vimenen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: p_text(40) TYPE c VALUE 'A#B#C#D#E'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BREAK-POINT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPLACE ALL OCCURRENCES OF '#' IN p_text WITH ''.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WRITE:/12 p_text.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I got the outpur &lt;STRONG&gt;ABCD&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I think the problem is with the data in p_text. Please check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Md Ziauddin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939505#M1487091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:44:00Z</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/6939506#M1487092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,  I got the outpur &lt;STRONG&gt;ABCDE&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939506#M1487092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:46:00Z</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/6939507#M1487093</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;Thanks for your replies. For me also, the replace statement works fine. It is exactly replacing the '#' with space in Development server. But the problem is in the Quality system. It is not replacing in Quality and Production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, the replace # with space is working fine in Quality for few documents and not for few documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939507#M1487093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:48:50Z</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/6939508#M1487094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Vimenen    	 &lt;/P&gt;&lt;P&gt;Have you tried in debug if the data is correct.........if is really the replace statement that &lt;/P&gt;&lt;P&gt;not work or if are other statements?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Menegazzo Marco on May 18, 2010 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939508#M1487094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:51:14Z</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/6939509#M1487095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reason may be that for few documents p_text is populating correctly and for few documents there might be null values &lt;/P&gt;&lt;P&gt;and '#' characters migh not be there .&lt;/P&gt;&lt;P&gt;Just debug the logic used for filling p_text .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshman.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939509#M1487095</guid>
      <dc:creator>former_member209217</dc:creator>
      <dc:date>2010-05-18T09:52:44Z</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/6939510#M1487096</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 tried debugging and I could see the value in P_text with '#'. The replace statement and even the Find statement couldn't recognize the '#' in p_text in Quality. &lt;/P&gt;&lt;P&gt;And I mentioned it is working fine for few and not working for few documents. In both the cases, the p_text is having '#' symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 09:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939510#M1487096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T09:57:49Z</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/6939511#M1487097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vimenen.&lt;/P&gt;&lt;P&gt;maybe can be the presence of more then one #..so try to use this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPLACE '#' IN gtext WITH ' '.

while sy-subrc eq '0'.
REPLACE '#' IN gtext WITH ' '.
endwhile.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   	 &lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 10:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939511#M1487097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T10:06:02Z</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/6939512#M1487098</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;did you check in debugger if the value # is in hex 23 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 10:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939512#M1487098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T10:10:52Z</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/6939513#M1487099</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;How to check whether the # is in hex 23 in debugging? Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 10:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939513#M1487099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T10:14:42Z</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/6939514#M1487100</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;when you're debugging double click in the variable....in view choose VAR_TABULAR_ASCII_HEX&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 10:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939514#M1487100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T10:17:25Z</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/6939515#M1487101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean u2018#u2019 by horizontal tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then&lt;/P&gt;&lt;P&gt;Could you please try with cl_abap_char_utilities=&amp;gt;horizontal_tab instead of u2018#u2019 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means intead of REPLACE '#' IN gtext WITH ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with REPLACE cl_abap_char_utilities=&amp;gt;horizontal_tab IN gtext WITH ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 10:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939515#M1487101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T10:23:53Z</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/6939516#M1487102</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 checked for the hexadecimal value. Actually am trying to replace '##'. In Quality, for few document manually posted, the hexadecimal value for '##' is 2323 for which the replace statement works fine. For few document posted through batch is having the hexadecimal value as '0D0A' for '##' for them the replace statement is not working. Could you suggest me the better way to replace this kind of strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 11:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939516#M1487102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T11:46:40Z</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/6939517#M1487103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe, the # character is for a carry return. Sometimes, I found it at the end of string when I download a file from server to an abap program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, for clear the #, do it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st, declare a variable:&lt;/P&gt;&lt;P&gt;data: v_var(1) type C value CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd, look for the # character in a string:&lt;/P&gt;&lt;P&gt;if  file_structure+n(1) = v_var.&lt;/P&gt;&lt;P&gt;  clear file_structure+n(1).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to clear two "#", I think it works as well..., then declare 2 positions var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939517#M1487103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T13:17:41Z</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/6939518#M1487104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vimala,&lt;/P&gt;&lt;P&gt;You could try and use the following statement instead to see if you get better results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TRANSLATE p_text USING '# '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939518#M1487104</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2010-05-18T13:25: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/6939519#M1487105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vimenen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here a short code, try it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: STR TYPE STRING.
*
CONSTANTS:
   CON_NEWL TYPE ABAP_CHAR1 " 0A
            VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE,
   CON_CRLF TYPE ABAP_CR_LF  " 0D0A
            VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF,
   CON_TAB  TYPE ABAP_CHAR1 " 09
            VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.
*
CONCATENATE 'A' CON_NEWL
            'B' CON_CRLF
            'C' CON_TAB
            'D' INTO STR.
*
WRITE: / STR.
REPLACE CON_NEWL WITH SPACE INTO STR.
REPLACE CON_CRLF WITH SPACE INTO STR.
REPLACE CON_TAB  WITH SPACE INTO STR.
WRITE: / STR.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939519#M1487105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T13:29:50Z</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/6939520#M1487106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vimenen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how you are populating your string field.&lt;/P&gt;&lt;P&gt;'#' character appears for any unrecognized character.&lt;/P&gt;&lt;P&gt;If you data conatains any currency or quantity field first convert them to char fields using &lt;STRONG&gt;write to char&lt;/STRONG&gt; (u can do F1 on write for syntax of wrtie to ) and then move it to string field. &lt;/P&gt;&lt;P&gt;If you are not populating the string youself but getting from soem parameter then may be u need to check types of incoming parameter &amp;amp; then may do some data conversion before moving it to a string variable.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 14:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939520#M1487106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-18T14:35:56Z</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/6939521#M1487107</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;Thanks for all the replies. My issue was resolved using the below piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURRENCES OF '#' IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;  REPLACE cl_abap_char_utilities=&amp;gt;horizontal_tab IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;  REPLACE cl_abap_char_utilities=&amp;gt;cr_lf IN p_text WITH ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 04:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939521#M1487107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T04:59:58Z</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/6939522#M1487108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just keep in mind: In printout and in debugger, any # hash character just means this is not a printable character. so the replacement of '#' is useless in almost all cases.&lt;/P&gt;&lt;P&gt;In text files, the most common non-printable characters are tab, linefeed and carriage return. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debugger you have an icon next to the field for display that allows to switch to hexadecimal representation, at least i the classic debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 May 2010 19:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-with-space/m-p/6939522#M1487108</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-05-29T19:11:00Z</dc:date>
    </item>
  </channel>
</rss>

