<?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 charcter from string in 46c in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433715#M824697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:data(13) value '/ABCD/te_12' .&lt;/P&gt;&lt;P&gt;data:output(13).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output&lt;EM&gt;0(1) = '&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;output&lt;EM&gt;1(7) = data&lt;/EM&gt;1(7).&lt;/P&gt;&lt;P&gt;OUTPUT+8(1) = '/'.&lt;/P&gt;&lt;P&gt;OUTPUT&lt;EM&gt;9(3) = data&lt;/EM&gt;9(3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI CKECK IT ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pandu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pandu app on Feb 16, 2008 6:37 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pandu app on Feb 16, 2008 6:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2008 13:00:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-16T13:00:55Z</dc:date>
    <item>
      <title>Replace charcter from string in 46c</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433713#M824695</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;If you could send me code for below scanerio that will be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 46c i have string '/ABCD/te_12' now i want to replace the '/' with '+'  and '_' with '|', can you tell me how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;john&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 12:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433713#M824695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Replace charcter from string in 46c</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433714#M824696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check the &lt;STRONG&gt;replace&lt;/STRONG&gt; statement... hit F1 on replace and make ur code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form&lt;/P&gt;&lt;P&gt;REPLACE f WITH g INTO h.&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... LENGTH len (length specification for field f )&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Replaces the first occurrence of the contents of field f in field h with the contents of field g . All fields are handled in their defined length; this means that closing blanks are not ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value indicates whether the string f was found in h and replaced by g :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 String replaced.&lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 String not replaced.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA FIELD(10).&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;/P&gt;&lt;P&gt;returns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD = 'AstringCB', SY-SUBRC = 0&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;The fields f and g in the REPLACE statement should not overlap. Otherwise, the result is undefined.&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;... LENGTH len ... (length specification for field f )&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Searches for the string f in the field h not in its (full) field length, but in the length len .&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: PATTERN(5) VALUE 'ABC',&lt;/P&gt;&lt;P&gt;          LEN TYPE I,&lt;/P&gt;&lt;P&gt;          REPL_STRING(5) VALUE '12345',&lt;/P&gt;&lt;P&gt;          FIELD(12) VALUE 'abcdeABCDE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REPLACE PATTERN WITH REPL_STRING&lt;/P&gt;&lt;P&gt;                    INTO FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not change FIELD , since 'ABC ' does not occur in abcdeABCDE ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LEN = STRLEN( PATTERN ).&lt;/P&gt;&lt;P&gt;    REPLACE PATTERN LENGTH LEN&lt;/P&gt;&lt;P&gt;                    WITH REPL_STRING&lt;/P&gt;&lt;P&gt;                    INTO FIELD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 12:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433714#M824696</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-16T12:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replace charcter from string in 46c</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433715#M824697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:data(13) value '/ABCD/te_12' .&lt;/P&gt;&lt;P&gt;data:output(13).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output&lt;EM&gt;0(1) = '&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;output&lt;EM&gt;1(7) = data&lt;/EM&gt;1(7).&lt;/P&gt;&lt;P&gt;OUTPUT+8(1) = '/'.&lt;/P&gt;&lt;P&gt;OUTPUT&lt;EM&gt;9(3) = data&lt;/EM&gt;9(3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI CKECK IT ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pandu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pandu app on Feb 16, 2008 6:37 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pandu app on Feb 16, 2008 6:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 13:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433715#M824697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace charcter from string in 46c</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433716#M824698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pandu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for reply but what if the slash come in any other place how that can be handle .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2008 07:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-charcter-from-string-in-46c/m-p/3433716#M824698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-17T07:43:47Z</dc:date>
    </item>
  </channel>
</rss>

