<?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: trancating a field string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908010#M684173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use SPLIT to get the values as below,&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;field_text&amp;gt; AT '-' INTO var1 var2.&lt;/P&gt;&lt;P&gt;now your VAR2 contains last 5 digits&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 04:29:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-17T04:29:55Z</dc:date>
    <item>
      <title>trancating a field string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908006#M684169</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;i have a field string &amp;lt;field_TEXT&amp;gt; with value 123145-12300&lt;/P&gt;&lt;P&gt;now i need to get the last five digits of the value i have &lt;/P&gt;&lt;P&gt;i.e i need 12300 only to be taken into another variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908006#M684169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: trancating a field string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908007#M684170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign the value of the string to a variable with the required length and then u can get the required digits out from the variable into an another varibale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers...!!!&lt;/P&gt;&lt;P&gt;Sharadendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908007#M684170</guid>
      <dc:creator>sharadendu_agrawal</dc:creator>
      <dc:date>2007-10-17T04:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: trancating a field string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908008#M684171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : str1 type string value '123145-12300',&lt;/P&gt;&lt;P&gt;         len type i,&lt;/P&gt;&lt;P&gt;        off type i,&lt;/P&gt;&lt;P&gt;        str2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen(str1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;off = len - 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str2 = str1+off(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will populate str2 with 12300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908008#M684171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: trancating a field string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908009#M684172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a smapl code which works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_result type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fg1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_result = '123145-12300'.&lt;/P&gt;&lt;P&gt;assign l_result to &amp;lt;fg1&amp;gt;.&lt;/P&gt;&lt;P&gt;l_result = &amp;lt;fg1&amp;gt;+5(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ l_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908009#M684172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: trancating a field string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908010#M684173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use SPLIT to get the values as below,&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;field_text&amp;gt; AT '-' INTO var1 var2.&lt;/P&gt;&lt;P&gt;now your VAR2 contains last 5 digits&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 04:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trancating-a-field-string/m-p/2908010#M684173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T04:29:55Z</dc:date>
    </item>
  </channel>
</rss>

