<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/6929976#M1485648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data:lv_char type char20.
data:lv_len type i.
lv_char = 'DE SC RI PT ION'.
lv_len = strlen( lv_char ).
replace all occurrences of ` ` in lv_char(lv_len) with '_' .
write lv_char.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:lv_char type char20.
lv_char = 'DE SC RI PT ION'.
replace all occurrences of ` ` in lv_char with '_' .
write lv_char.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Apr 26, 2010 7:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Apr 2010 13:43:13 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-04-26T13:43:13Z</dc:date>
    <item>
      <title>REPLACE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/6929975#M1485647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have next code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR l_leng.&lt;/P&gt;&lt;P&gt;  l_leng = STRLEN( l_descripcion ).&lt;/P&gt;&lt;P&gt;  l_leng = l_leng - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO l_leng TIMES.&lt;/P&gt;&lt;P&gt;    REPLACE ' ' WITH '_' INTO l_descripcion.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want change blank space for '_', but I don't Know.&lt;/P&gt;&lt;P&gt;Example: l_descripcion = 'DES CRIP CION'.    --&amp;gt; DES_CRIP_CION___________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with REPLACE ALL OCURRENCE , but when I use condition ' ', dump ocurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 13:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/6929975#M1485647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-26T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/6929976#M1485648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data:lv_char type char20.
data:lv_len type i.
lv_char = 'DE SC RI PT ION'.
lv_len = strlen( lv_char ).
replace all occurrences of ` ` in lv_char(lv_len) with '_' .
write lv_char.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:lv_char type char20.
lv_char = 'DE SC RI PT ION'.
replace all occurrences of ` ` in lv_char with '_' .
write lv_char.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Apr 26, 2010 7:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 13:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/6929976#M1485648</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-04-26T13:43:13Z</dc:date>
    </item>
  </channel>
</rss>

