<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567183#M256228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;str = 00000003758#Account_Agreements-Combination.aspx.xml #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_len = strlen( str ).&lt;/P&gt;&lt;P&gt;v_len = v_len - 1.&lt;/P&gt;&lt;P&gt;str = str+0(v_len).&lt;/P&gt;&lt;P&gt;now use split at #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split str at '#' into v_num v_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2006 12:19:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-04T12:19:54Z</dc:date>
    <item>
      <title>string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567173#M256218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;i have a string like this.&lt;/P&gt;&lt;P&gt;str = '00000003379#212RegVNegNoticeHLA.aspx.xml' So i want to read n.of characters from # to begin of the string. ie 00000003379#.The value for str will come dinamically.How can we do this?&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, 04 Oct 2006 12:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567173#M256218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567174#M256219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the "Split" statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;split str at '#' into w_rec01 w_rec02.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567174#M256219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567175#M256220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STR1 TYPE STRING,&lt;/P&gt;&lt;P&gt;      STR2 TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT STR AT '#' INTO STR1 STR2.&lt;/P&gt;&lt;P&gt;CONCATENATE STR1 '#' INTO STR1.&lt;/P&gt;&lt;P&gt;write: STR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567175#M256220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567176#M256221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Split the string at symbol #  and store it in a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. find the length of the string variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;award points if this helps&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567176#M256221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567177#M256222</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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH string for '#'.&lt;/P&gt;&lt;P&gt;l_from = sy-fdpos - 1.&lt;/P&gt;&lt;P&gt;search string for '#' starting at l_from.&lt;/P&gt;&lt;P&gt;l_to = sy-fdpos - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_len = l_to - l_from.&lt;/P&gt;&lt;P&gt;v_cutout = string+l_from(l_len).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567177#M256222</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-04T12:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567178#M256223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lstr --&amp;gt; is your string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split lstr at '#' into lval lfile.&lt;/P&gt;&lt;P&gt;llen = strlen( lval ) + 1. (1 is to include the count for #).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567178#M256223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567179#M256224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi Ravi,

 chk this

REPORT YCHATEST.

DATA : STR TYPE STRING,
       STR1 TYPE STRING,
       STR2 TYPE STRING,
       LEN TYPE I.

STR = '00000003379#212RegVNegNoticeHLA.aspx.xml'.

SPLIT STR AT '#' INTO STR1 STR2.

LEN = STRLEN( STR1 ).
LEN = LEN + 1.      " to include #

WRITE : LEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567179#M256224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567180#M256225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split str  at '#' into str1 str2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;l_count = strlen( str1 ).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dharitree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567180#M256225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567181#M256226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    use below logic&lt;/P&gt;&lt;P&gt; data lv_len type i.   &lt;/P&gt;&lt;P&gt; str = '00000003379#212RegVNegNoticeHLA.aspx.xml' &lt;/P&gt;&lt;P&gt; search str for '#'.&lt;/P&gt;&lt;P&gt; lv_len = sy-fdpos -  1.&lt;/P&gt;&lt;P&gt;lv_len will have length of string.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;or &lt;/P&gt;&lt;P&gt;split str at '#' str1 str2.&lt;/P&gt;&lt;P&gt;lv_len = strlen(str1).&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567181#M256226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567182#M256227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for replies.&lt;/P&gt;&lt;P&gt;Problem is i am gettin value for str in debugging like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = 00000003758#Account_Agreements-Combination.aspx.xml                                                                                #&lt;/P&gt;&lt;P&gt;So at the end some where i am getting one more #.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567182#M256227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567183#M256228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;str = 00000003758#Account_Agreements-Combination.aspx.xml #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_len = strlen( str ).&lt;/P&gt;&lt;P&gt;v_len = v_len - 1.&lt;/P&gt;&lt;P&gt;str = str+0(v_len).&lt;/P&gt;&lt;P&gt;now use split at #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split str at '#' into v_num v_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567183#M256228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567184#M256229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok , if you are uploading it from an excel file you will get that # at last , so add 3 more line to remove that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;len = strlen( str ).
len = len - 1.
str = str+0(len).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this will remove the last # from str&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567184#M256229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567185#M256230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if the second '#' is somewhere in between &amp;amp; not always at the end? &lt;/P&gt;&lt;P&gt;you can use the following to cover that scenario..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  zp_string.
data w_str type 
     string value '00000003758#Account_Agre#ements-#Combination.aspx.xml #'.
data w_len type i.
data: w_str2 type string.

search w_str for '#' and mark.
w_len = sy-fdpos.
w_str2 = w_str+0(w_len).
write:/ w_str.
write:/ w_str2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567185#M256230</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-10-04T12:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567186#M256231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may n no of #'s in your line. To get length of string upto last '#' then try with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_LOC TYPE I,&lt;/P&gt;&lt;P&gt;      L_LNG TYPE I,&lt;/P&gt;&lt;P&gt;      L_CMD TYPE STRING,&lt;/P&gt;&lt;P&gt;      L_FIL TYPE STRING,&lt;/P&gt;&lt;P&gt;      STR TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  L_LENGTH = STRLEN( STR ). &lt;/P&gt;&lt;P&gt;  L_LOC = 1.&lt;/P&gt;&lt;P&gt;  WHILE SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    SEARCH STR FOR '#' STARTING AT L_LOC.&lt;/P&gt;&lt;P&gt;    IF SY-FDPOS &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      ADD SY-FDPOS TO L_LOC.&lt;/P&gt;&lt;P&gt;      L_CMD = STR(L_LOC).&lt;/P&gt;&lt;P&gt;      L_LNG = L_LENGTH - L_LOC.&lt;/P&gt;&lt;P&gt;      L_FIL = STR+L_LOC(L_LNG).&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      ADD 1 TO L_LOC.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ 'Length of string upto last # is ', L_LOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 12:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567186#M256231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567187#M256232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2006 13:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567187#M256232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-04T13:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567188#M256233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts &lt;/P&gt;&lt;P&gt;I have one long string and from which i should take only last 4 chars &lt;/P&gt;&lt;P&gt;how to do it &lt;/P&gt;&lt;P&gt;please tell me &lt;/P&gt;&lt;P&gt;rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 08:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1567188#M256233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T08:33:42Z</dc:date>
    </item>
  </channel>
</rss>

