<?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: how to replace # with space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710053#M628198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this using REPLACE keyword with other options as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' IN ITAB[internal table] WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '#' WITH ' '  into iITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2007 10:45:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-27T10:45:08Z</dc:date>
    <item>
      <title>how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710048#M628193</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;my requirement is reading the content of the mail using the function module so_object_get_content. and that data we will update in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as while using this fm we are getting # in that content and these # are replacing with junk character (i.e box ) in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what we have to do in order to remove those #'s from that content.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710048#M628193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710049#M628194</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;For reaplacing the relevant text within a string you can use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' IN gv_text WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710049#M628194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T10:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710050#M628195</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;You can use .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Translate &amp;lt;str&amp;gt; using '#  '.  "To replace # with Space in all occurreneces&lt;/P&gt;&lt;P&gt;  Condense &amp;lt;str&amp;gt; no gaps.  "To remoce Spaces if u want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710050#M628195</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-27T10:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710051#M628196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace '#' with '  ' into maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710051#M628196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T10:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710052#M628197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE ALL OCCURRENCES of CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB IN V_STR WITH SPACE.

or

REPLACE ALL OCCURRENCES of CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF IN V_STR WITH SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which ever works in your system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710052#M628197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T10:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710053#M628198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this using REPLACE keyword with other options as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '#' IN ITAB[internal table] WITH space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '#' WITH ' '  into iITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 10:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710053#M628198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T10:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace # with space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710054#M628199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;is the external representation of non-displayable characters - internal (switch to hex display in debugger) it may be something else.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You have to use a WRITE TO statement first to convert any non-displayable character to # hashmark symbol.&lt;/P&gt;&lt;P&gt;So you have to go thru all line like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: 
  lv_offset type syfdpos,
  c type c.
do strlen( line ) times.
  lv_offset  = sy-index - 1.
  write line+lv_offset(1) to c.
  if c = '#'.
    line+lv_offset(1) = space. 
  endif.
enddo.&lt;/CODE&gt;&lt;/PRE&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>Mon, 27 Aug 2007 10:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-with-space/m-p/2710054#M628199</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-08-27T10:47:38Z</dc:date>
    </item>
  </channel>
</rss>

