<?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 protected spaces in string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261402#M1215162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try it with string operations.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_str = 'Hello '.
w_len = strlen( w_str ).
subtract 2 from w_len.
w_str2 = w_str+0(w_len).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2009 07:55:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-03T07:55:17Z</dc:date>
    <item>
      <title>Replace protected spaces in string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261401#M1215161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I've got a quite easy problem, but no idea how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a string for example '    Hello' the spaces are protected ones, represented&lt;/P&gt;&lt;P&gt;in hex as 'A0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using condense to delete the leading spaces has no effect on my string?&lt;/P&gt;&lt;P&gt;Has anyone a hint how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;King regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 07:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261401#M1215161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace protected spaces in string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261402#M1215162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try it with string operations.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_str = 'Hello '.
w_len = strlen( w_str ).
subtract 2 from w_len.
w_str2 = w_str+0(w_len).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 07:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261402#M1215162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T07:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replace protected spaces in string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261403#M1215163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : v_space type c value CL_ABAP_CHAR_UTILITIES=&amp;gt;Horizontal_tab.

REPLACE ALL OCCURRENCES OF  v_space in v_string with ' '.
condense v_string NO-GAPS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 08:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261403#M1215163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T08:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replace protected spaces in string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261404#M1215164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks your both of your ideas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but CL_ABAP_CHAR_UTILITIES=&amp;gt;Horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is represented in hex as '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 09:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261404#M1215164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replace protected spaces in string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261405#M1215165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a working solution, maybe it's interessting for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:   lv_rep(1) TYPE c.&lt;/P&gt;&lt;P&gt;Data:  lv_replace type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_replace = '     Test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_abap_conv_in_ce=&amp;gt;uccp&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      uccp = '00A0'&lt;/P&gt;&lt;P&gt;    RECEIVING&lt;/P&gt;&lt;P&gt;      char = lv_rep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF  lv_rep IN lv_replace WITH ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 08:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-protected-spaces-in-string/m-p/5261405#M1215165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T08:36:59Z</dc:date>
    </item>
  </channel>
</rss>

