<?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 operation to replace some text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447140#M827967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first text is of variable length&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 09:48:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T09:48:08Z</dc:date>
    <item>
      <title>String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447135#M827962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a string MIDDGBPP##SCHNRK22. I want to replace text MIDDGBPP with some other text.&lt;/P&gt;&lt;P&gt;The problem is that I am not able to find out the length of text in before ## signes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_v_str =  'MIDDGBPP##SCHNRK22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if y_v_str CS '##'.   &lt;/P&gt;&lt;P&gt;y_v_offset = sy-fdpos.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code does not update the sy-fdpos variable. It can not find the ## sign in the y_v_str.&lt;/P&gt;&lt;P&gt;How to get length of the first part before ##?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide code if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447135#M827962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447136#M827963</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 just want to replace the text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurrences of 'MIDDGBPP' with 'new text' in lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Koen Labie on Feb 19, 2008 10:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447136#M827963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447137#M827964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to split the text at ## and then use strlen on the first part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_v_str = 'MIDDGBPP##SCHNRK22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split y_v_str at '##' into v_first v_second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_length = strlen( v_first ). " v_length contains the length&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447137#M827964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447138#M827965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE 'MIDDGBPP' IN y_v_str WITH 'XXXX'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447138#M827965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447139#M827966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;split y_v_str1b at '##' into y_v_first y_v_second.&lt;/P&gt;&lt;P&gt;does not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not find out the ## signes and y_v_first and y_v_second remains empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447139#M827966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447140#M827967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first text is of variable length&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447140#M827967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447141#M827968</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;Check the below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_v_str = 'MIDDGBPP##SCHNRK22'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split y_v_str at '##' into v_str1 v_str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_length = strlen( v_str1 ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;y_v_str(v_length) = '&amp;lt;your own text&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447141#M827968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447142#M827969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try doing like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH y_v_str FOR '##'.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;w_fdpos = sy-fdpos.&lt;/P&gt;&lt;P&gt;MOVE owntext TO y_v_str+0(w_fdpos).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case sy-fdpos will be set to 8. So u can replace ur first 8 characters by ur own text&lt;/P&gt;&lt;P&gt;&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;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Vemuru on Feb 19, 2008 3:27 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447142#M827969</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-02-19T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: String operation to replace some text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447143#M827970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2009 08:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-operation-to-replace-some-text/m-p/3447143#M827970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-21T08:25:25Z</dc:date>
    </item>
  </channel>
</rss>

