<?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: STRING REPLACE OPERATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600981#M269834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample program is working good in my NW2004s system.  Copy and paste and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0003.

data : string(10) type c.
string = 'BAT_&amp;amp;_BALL'.

translate string using '_ '.

 Write:/ string.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2006 00:18:19 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-09-27T00:18:19Z</dc:date>
    <item>
      <title>STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600978#M269831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;for the code :&lt;/P&gt;&lt;P&gt;data : string(10) type c.&lt;/P&gt;&lt;P&gt;string = 'BAT_&amp;amp;_BALL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW I WANT TO REPLACE '_' IN STRING WITH SPACE ie ' '.&lt;/P&gt;&lt;P&gt;but when i use&lt;/P&gt;&lt;P&gt;Replace all occurrences of '_' in string with ' '.&lt;/P&gt;&lt;P&gt;then the output is 'BAT&amp;amp;BALL' ..NO SPACE IS BEING INSERTED.&lt;/P&gt;&lt;P&gt;I need to display it as BAT &amp;amp; BALL.&lt;/P&gt;&lt;P&gt;CAN NYONE HELP ME HOW TO REPLACE '_' WITH SPACE....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhasker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 23:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600978#M269831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T23:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600979#M269832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : string(10) type c.
string = 'BAT_&amp;amp;_BALL'.

translate string using '_ '.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 00:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600979#M269832</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T00:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600980#M269833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate string is not working for me&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;Bhanker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 00:08:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600980#M269833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T00:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600981#M269834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample program is working good in my NW2004s system.  Copy and paste and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0003.

data : string(10) type c.
string = 'BAT_&amp;amp;_BALL'.

translate string using '_ '.

 Write:/ string.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 00:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600981#M269834</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T00:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600982#M269835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;I am working with ECC 6.0&lt;/P&gt;&lt;P&gt;I just tested your code in my system.&lt;/P&gt;&lt;P&gt;I am getting the output as BAT_&amp;amp;_BALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhasker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 00:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600982#M269835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T00:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600983#M269836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is really weird.  Are you sure that the literal in this statement has the underscore(_) and the space right next to it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;translate string using &amp;lt;b&amp;gt;'_ '&amp;lt;/b&amp;gt;. &amp;lt;--There needs to be a space right next to the _ in this literal&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 00:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600983#M269836</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T00:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600984#M269837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich;&lt;/P&gt;&lt;P&gt;It was my mistake&lt;/P&gt;&lt;P&gt;I didnt put space right next to the _.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bhasker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 00:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600984#M269837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-27T00:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600985#M269838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You scared me a little there, thought I was going crazy.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; Anyway, the way that the translate statement works in this context, is that you have two values in your literal,  the first is what you are looking for and the second is what you want to translate it to. So for example, it can be anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: string(10) type c,
 string = '1212121212'.

translate string using '20'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case the value will now be '1010101010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2006 01:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600985#M269838</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-27T01:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600986#M269839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string containing spaces, my requirement is to replace all the spaces in the given string with some other character. Could you please help me the syntax in ABAP for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 06:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600986#M269839</guid>
      <dc:creator>former_member298896</dc:creator>
      <dc:date>2006-10-31T06:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: STRING REPLACE OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600987#M269840</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;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE all occurances of space IN your_string WITH 'Your_character' INTO lv_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 06:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-replace-operation/m-p/1600987#M269840</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-31T06:27:21Z</dc:date>
    </item>
  </channel>
</rss>

