<?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: Offset/Replacing in a string? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379704#M1237261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't want to have the last character right.&lt;/P&gt;&lt;P&gt;then use it this way&lt;/P&gt;&lt;P&gt;declare a new variable of string type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_temp   type   string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Deletion of the last semicolon in the variable lv_line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lv_length = strlen( lv_line ).&lt;/P&gt;&lt;P&gt;    v_temp = lv_line(lv_length) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it proves helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2009 08:10:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-07T08:10:25Z</dc:date>
    <item>
      <title>Offset/Replacing in a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379701#M1237258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple question. I have A STRING-variable in my program which contains comma-sperated data (CSV). Now I want to delete the last ";" which is in this line because it is not needed there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following, but it doesn't work (syntax error):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*   Deletion of the last semicolon in the variable lv_line
    lv_length = strlen( lv_line ).
    lv_line+lv_length(1) = space.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to be not possible to use offset in combination with a STRING-variable. CHAR I can't use because I don't know how long the char will be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any easy way to implement such a replacing of the last semicolon in a string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 07:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379701#M1237258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T07:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Offset/Replacing in a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379702#M1237259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u can do is reverse the string  using fm STRING_REVERSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use replace first occurence of ';' in our structure with space.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check the syntax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 07:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379702#M1237259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T07:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Offset/Replacing in a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379703#M1237260</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;you use the full stinglengh as offset, but you should substact the last char...&lt;/P&gt;&lt;P&gt;lv_lengh = lv_lengh - 1 .&lt;/P&gt;&lt;P&gt;then replace...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or:&lt;/P&gt;&lt;P&gt;replace all occurances of ';' in string by space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 08:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379703#M1237260</guid>
      <dc:creator>robert_altenstraer</dc:creator>
      <dc:date>2009-04-07T08:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Offset/Replacing in a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379704#M1237261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't want to have the last character right.&lt;/P&gt;&lt;P&gt;then use it this way&lt;/P&gt;&lt;P&gt;declare a new variable of string type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_temp   type   string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Deletion of the last semicolon in the variable lv_line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lv_length = strlen( lv_line ).&lt;/P&gt;&lt;P&gt;    v_temp = lv_line(lv_length) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it proves helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 08:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379704#M1237261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T08:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Offset/Replacing in a string?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379705#M1237262</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;Have a Look at my [Sample Code in this Thread|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7079105"&gt;&lt;/A&gt;] Hope it will help you to solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 08:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/offset-replacing-in-a-string/m-p/5379705#M1237262</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-04-07T08:10:37Z</dc:date>
    </item>
  </channel>
</rss>

