<?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/4115070#M983815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: len(2) type n,&lt;/P&gt;&lt;P&gt;      count(2) type n,&lt;/P&gt;&lt;P&gt;      count1(2) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter str(40) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( str ).&lt;/P&gt;&lt;P&gt;clear count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if str+count(1) = 'X'.&lt;/P&gt;&lt;P&gt;   COUNT1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count1 = count1 - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF COUNT1 = 0.&lt;/P&gt;&lt;P&gt;   str+0(1) = 'y'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  str+count1(1) = 'y'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ str.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 08:01:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T08:01:42Z</dc:date>
    <item>
      <title>replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115065#M983810</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;How to replace last occurrence of a character in a string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: aaaaxaaaxaaaxaaa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i need last x should be replaced with y&lt;/P&gt;&lt;P&gt;output : aaaaxaaaxaaayaaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115065#M983810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115066#M983811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 1- store the value in a string&lt;/P&gt;&lt;P&gt;step 2- get the lenght of the string&lt;/P&gt;&lt;P&gt;step 3- get the position of the last y from the string&lt;/P&gt;&lt;P&gt;step 4- use replace statement to replace the x with y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115066#M983811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115067#M983812</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;Try this coding using the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_string TYPE string.&lt;/P&gt;&lt;P&gt;v_string = 'HOPT &amp;amp; SCHULER GMBH &amp;amp; CO KG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRB_UTIL_STRING_REPLACE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;pi_search_string = '&amp;amp;'&lt;/P&gt;&lt;P&gt;pi_replace_string = '''&amp;amp;'''&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;pc_string = v_string&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;search_string_too_long = 1&lt;/P&gt;&lt;P&gt;missing_search_string = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WRITE: / v_string.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Rewars points of helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Y.R.Prem Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115067#M983812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115068#M983813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;bad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if there is a direct way, but you can try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Reverse the string with FM STRING_REVERSE, so the last x will be the first&lt;/P&gt;&lt;P&gt;2. Now you can use RAPLACE ... FIRST OCCURANCE ...&lt;/P&gt;&lt;P&gt;3. Reverse the string again with FM STRING_REVERSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115068#M983813</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-07T07:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115069#M983814</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;plz try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: text type string.

text = 'aaaaxaaaxaaaxaaa'.

REPLACE SECTION OFFSET 12 OF text WITH 'yaaa'.
 write: text.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = aaaaxaaaxaaayaaa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 07:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115069#M983814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T07:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115070#M983815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: len(2) type n,&lt;/P&gt;&lt;P&gt;      count(2) type n,&lt;/P&gt;&lt;P&gt;      count1(2) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter str(40) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( str ).&lt;/P&gt;&lt;P&gt;clear count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if str+count(1) = 'X'.&lt;/P&gt;&lt;P&gt;   COUNT1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count1 = count1 - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF COUNT1 = 0.&lt;/P&gt;&lt;P&gt;   str+0(1) = 'y'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  str+count1(1) = 'y'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ str.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 08:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115070#M983815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T08:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115071#M983816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="WordSection1"&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; mso-ansi-language: EN-US;"&gt;I’m&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; mso-ansi-language: EN-US;"&gt;not happy with all above, so I’m posting my variant:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;data&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;str&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;type &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;string &lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;value &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s331"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;'A,B,C,D,E,F,G,H,'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="SpellE"&gt;ls_result&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;type &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;match_result&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;find all occurrences of &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s331"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;',' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;str&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt; results ls_result&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;sy&lt;/SPAN&gt;&lt;SPAN class="l0s701"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;subrc &lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;= &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s321"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;ls_result&lt;/SPAN&gt;&lt;SPAN class="l0s701"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;offset &amp;gt; &lt;/SPAN&gt;&lt;SPAN class="l0s321"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_result&lt;/SPAN&gt;&lt;SPAN class="l0s701"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;offset &amp;lt; &lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;strlen&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;str &lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="GramE"&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;replace&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt; section &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;offset ls_result&lt;/SPAN&gt;&lt;SPAN class="l0s701"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;offset length &lt;/SPAN&gt;&lt;SPAN class="l0s321"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;of &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;str &lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;with &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s331"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;'' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;in &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;character &lt;/SPAN&gt;&lt;SPAN class="l0s521"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;mode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="l0s551"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white; mso-ansi-language: EN-US;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;condense&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; color: black; background: white; font-size: 9.0pt; font-family: 'Courier New';"&gt;str&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;no&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white;"&gt;gaps&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;endif&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;endif&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; line-height: 107%; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;write&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; color: black; background: white; font-size: 9.0pt; font-family: 'Courier New';"&gt;str&lt;/SPAN&gt;&lt;SPAN style="line-height: 107%; font-size: 9.0pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Times New Roman',serif; color: black; mso-ansi-language: EN-US;"&gt;Regards, Dima&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; line-height: 107%; mso-ansi-language: EN-US;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 09:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115071#M983816</guid>
      <dc:creator>dmitry_sharshatkin</dc:creator>
      <dc:date>2016-03-11T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115072#M983817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your replace command use a regular expression to find the last occurrence of the character you wish to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This: "x(?:.(?!x))+$" (without the quotes) will find the last occurrence of x in a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 10:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115072#M983817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-11T10:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115073#M983818</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;Does not work with commas...&lt;/P&gt;&lt;P&gt;BR, Dima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 12:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115073#M983818</guid>
      <dc:creator>dmitry_sharshatkin</dc:creator>
      <dc:date>2016-03-11T12:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115074#M983819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you modify the regex - I did say x.&amp;nbsp; The OP did not specify another character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 12:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115074#M983819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-11T12:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115075#M983820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For commas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,(?=[^,]*$)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 12:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115075#M983820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-11T12:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: replace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115076#M983821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Works nice, will learn regex. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;BR, Dima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 13:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace/m-p/4115076#M983821</guid>
      <dc:creator>dmitry_sharshatkin</dc:creator>
      <dc:date>2016-03-11T13:08:00Z</dc:date>
    </item>
  </channel>
</rss>

