<?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: Replacing characters in a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171498#M754686</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;This can be done using REPLACE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2007 07:03:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-21T07:03:59Z</dc:date>
    <item>
      <title>Replacing characters in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171495#M754683</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;with a character variable you can manipulte the contents via&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var+5(02) = 'XY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a string variable this is not allowed. Is there any other way of doing this except copying the string to a char variable, doing the change and copy it back? Another way of doing this concatenating the first part, the new chars and the rest together, but this is an ugly solution too....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is it syntactically ok to read parts of a string, but not to write? Is it because a string content is shared between several variables all pointing to the same string content?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171495#M754683</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-12-21T06:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing characters in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171496#M754684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use REPLACE ...&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA field(10) TYPE C. &lt;/P&gt;&lt;P&gt;MOVE 'ABCB' TO field. &lt;/P&gt;&lt;P&gt;REPLACE 'B' WITH 'string' INTO field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: pattern(6)     TYPE C VALUE 'ABC', &lt;/P&gt;&lt;P&gt;      len            TYPE I, &lt;/P&gt;&lt;P&gt;      repl_string(6) TYPE C VALUE '123456', &lt;/P&gt;&lt;P&gt;      field(12)      TYPE C VALUE 'abcdeABCDE'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE pattern WITH repl_string INTO field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sharayu Kumatkar on Dec 21, 2007 12:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 07:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171496#M754684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing characters in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171497#M754685</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;REPLACE SECTION [OFFSET off] [LENGTH len] OF text WITH new. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Awrd Points if Useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 07:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171497#M754685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T07:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing characters in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171498#M754686</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;This can be done using REPLACE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 07:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-characters-in-a-string/m-p/3171498#M754686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T07:03:59Z</dc:date>
    </item>
  </channel>
</rss>

