<?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: a question on string manipulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808908#M656555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2007 01:34:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-11T01:34:09Z</dc:date>
    <item>
      <title>a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808898#M656545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;one question on string manipulation need your help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source in SAP&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------" /&gt;&lt;P&gt;doc	part	location&lt;/P&gt;&lt;P&gt;1	A	u1&lt;/P&gt;&lt;P&gt;2	B	u1,u2&lt;/P&gt;&lt;P&gt;3	C	u1,u2,c1-c3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desire report output&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;doc	part	location&lt;/P&gt;&lt;P&gt;1	A	u1&lt;/P&gt;&lt;P&gt;2	B	u1&lt;/P&gt;&lt;P&gt;2	B	u2&lt;/P&gt;&lt;P&gt;3	C	u1&lt;/P&gt;&lt;P&gt;3	C	u2&lt;/P&gt;&lt;P&gt;3	C	c1&lt;/P&gt;&lt;P&gt;3	C	c2&lt;/P&gt;&lt;P&gt;3	C	c3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 09:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808898#M656545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808899#M656546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi boon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = 1 A u1&lt;/P&gt;&lt;P&gt;b = 2 B u1,u2&lt;/P&gt;&lt;P&gt;c = 3 C u1,u2,c1-c3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d = '  '.&lt;/P&gt;&lt;P&gt; 2 B u1  -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt;   b+0(4).&lt;/P&gt;&lt;P&gt; 2 B u2 -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&amp;gt;  REplace u1 in b with d. condense b no-gaps.&lt;/P&gt;&lt;P&gt; 3 C u1  -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt; c+0(4)&lt;/P&gt;&lt;P&gt; 3 C u2  -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt; c&lt;EM&gt;0(2), c&lt;/EM&gt;4(2). concatenate both.&lt;/P&gt;&lt;P&gt; 3 C c1  -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt; c&lt;EM&gt;0(2), c&lt;/EM&gt;6(2). concatenate both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 09:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808899#M656546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T09:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808900#M656547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shori,&lt;/P&gt;&lt;P&gt;i should have explain it more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the source file are stored in a internal table with 3 columns (doc,part,location). how are we going to decide when come across the ',' and '-' and split it into new rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 09:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808900#M656547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T09:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808901#M656548</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;there is an option in abap as &amp;lt;b&amp;gt;search&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;Just use it for search &amp;lt;b&amp;gt;, and -.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;U have to search only the location field.&lt;/P&gt;&lt;P&gt;by using &amp;lt;b&amp;gt;If statement&amp;lt;/b&amp;gt; u can finish the scenario.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 09:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808901#M656548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T09:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808902#M656549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;split itab-location into loc1, loc2,loc3 seperated by ',' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In loc1, loc 2, loc3,&lt;/P&gt;&lt;P&gt;search for  '-'&lt;/P&gt;&lt;P&gt;if found get the sy-fdpos.&lt;/P&gt;&lt;P&gt;from sy-fdpos-1 u will get C1 &lt;/P&gt;&lt;P&gt;from sy-fdpos+-1 u will get C3 &lt;/P&gt;&lt;P&gt;then u can populate as u required.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bindu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808902#M656549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T10:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808903#M656550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the code below, i hope it serves your pupose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;  doc,&lt;/P&gt;&lt;P&gt;  part,&lt;/P&gt;&lt;P&gt;  location(255),&lt;/P&gt;&lt;P&gt;end of itab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of loc occurs 0,&lt;/P&gt;&lt;P&gt;location(255),&lt;/P&gt;&lt;P&gt;end of loc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2 like table of itab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-doc = '1'.	&lt;/P&gt;&lt;P&gt;itab-part = 'A'.	&lt;/P&gt;&lt;P&gt;itab-location = 'u1'.	&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-doc = '2'.	&lt;/P&gt;&lt;P&gt;itab-part = 'B'.	&lt;/P&gt;&lt;P&gt;itab-location = 'u1,u2'.	&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-doc = '3'.	&lt;/P&gt;&lt;P&gt;itab-part = 'C'.	&lt;/P&gt;&lt;P&gt;itab-location = 'u1,u2,c1,c2,c3'.	&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  itab2 = itab.&lt;/P&gt;&lt;P&gt;  split itab-location at ',' into table loc.&lt;/P&gt;&lt;P&gt;  loop at loc.&lt;/P&gt;&lt;P&gt;    itab2-location = loc-location.&lt;/P&gt;&lt;P&gt;    append itab2.&lt;/P&gt;&lt;P&gt;    write:/ itab2.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query...&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808903#M656550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T10:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808904#M656551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;sorry for late reply...&lt;/P&gt;&lt;P&gt;two question here need your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.from sy-fdpos-1, how i get the content (c1)?&lt;/P&gt;&lt;P&gt;2.in this case we have c1 and c3, other cases may be c1 and c5. how would the program know the range (c2, or c2~c4) to be populated here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 14:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808904#M656551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808905#M656552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did u see my previous post, it itself handles the string irrespective of the range(dynamic), hope it is what u r looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query...&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 04:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808905#M656552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T04:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808906#M656553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, i tried out your code and it's working find when the location is separate by ','.&lt;/P&gt;&lt;P&gt;only thing is how about the case d1-d5 in the internal table?&lt;/P&gt;&lt;P&gt;how are we going to know how many number to fill in between d1~d5 at runtime, it can be any number here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attach a sample code here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZTEST20071009                                               *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST20071009                           .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab,&lt;/P&gt;&lt;P&gt;       doc(1),&lt;/P&gt;&lt;P&gt;       part(1),&lt;/P&gt;&lt;P&gt;       location(255),&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of iloc,&lt;/P&gt;&lt;P&gt;       location(255),&lt;/P&gt;&lt;P&gt;       end of iloc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_itab type table of itab,&lt;/P&gt;&lt;P&gt;      w_itab type itab,&lt;/P&gt;&lt;P&gt;      i_loc type table of iloc,&lt;/P&gt;&lt;P&gt;      w_loc type iloc,&lt;/P&gt;&lt;P&gt;      i_itab2 type table of itab,&lt;/P&gt;&lt;P&gt;      w_itab2 type itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_itab-doc = '1'.&lt;/P&gt;&lt;P&gt;w_itab-part = 'A'.&lt;/P&gt;&lt;P&gt;w_itab-location = 'u1'.&lt;/P&gt;&lt;P&gt;append w_itab to i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_itab-doc = '2'.&lt;/P&gt;&lt;P&gt;w_itab-part = 'B'.&lt;/P&gt;&lt;P&gt;w_itab-location = 'u1,u2'.&lt;/P&gt;&lt;P&gt;append w_itab to i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_itab-doc = '3'.&lt;/P&gt;&lt;P&gt;w_itab-part = 'C'.&lt;/P&gt;&lt;P&gt;w_itab-location = 'u1,u2,c1,c2,c3,d1-d5'.&lt;/P&gt;&lt;P&gt;append w_itab to i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_itab into w_itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; itab2 = itab.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_itab2-doc = w_itab-doc.&lt;/P&gt;&lt;P&gt;w_itab2-part = w_itab-part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split w_itab-location at ',' into table i_loc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;search w_itab-location for '-'.&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt; w_loc = sy-fdpos - 1.&lt;/P&gt;&lt;P&gt; append w_loc to i_loc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_loc = sy-fdpos + 1.&lt;/P&gt;&lt;P&gt; append w_loc to i_loc.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; split itab-location at ',' into table loc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at i_loc into w_loc.&lt;/P&gt;&lt;P&gt;   w_itab2-location = w_loc-location.&lt;/P&gt;&lt;P&gt;   append w_itab2 to i_itab2.&lt;/P&gt;&lt;P&gt;   write:/ w_itab2-doc,w_itab2-part,w_itab2-location.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; loop at loc.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   itab2-location = loc-location.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   append itab2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   write:/ itab2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 10:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808906#M656553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T10:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808907#M656554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the code below for range...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTRIP_TEST.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;doc,&lt;/P&gt;&lt;P&gt;part,&lt;/P&gt;&lt;P&gt;location(255),&lt;/P&gt;&lt;P&gt;end of itab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of loc occurs 0,&lt;/P&gt;&lt;P&gt;location like itab-location,&lt;/P&gt;&lt;P&gt;end of loc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range_start like itab-location,&lt;/P&gt;&lt;P&gt;range_end like itab-location,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2 like table of itab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-doc = '1'.&lt;/P&gt;&lt;P&gt;itab-part = 'A'.&lt;/P&gt;&lt;P&gt;itab-location = 'u1'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-doc = '2'.&lt;/P&gt;&lt;P&gt;itab-part = 'B'.&lt;/P&gt;&lt;P&gt;itab-location = 'u1,u2,d1-d5'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-doc = '3'.&lt;/P&gt;&lt;P&gt;itab-part = 'C'.&lt;/P&gt;&lt;P&gt;itab-location = 'u1,u2,c1,c2,c3'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  itab2 = itab.&lt;/P&gt;&lt;P&gt;  split itab-location at ',' into table loc.&lt;/P&gt;&lt;P&gt;  loop at loc.&lt;/P&gt;&lt;P&gt;    search loc-location for '-'.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      split loc-location at '-' into range_start range_end.&lt;/P&gt;&lt;P&gt;      itab2-location = range_start.&lt;/P&gt;&lt;P&gt;      append itab2.&lt;/P&gt;&lt;P&gt;      write:/ itab2.&lt;/P&gt;&lt;P&gt;      while itab2-location ne range_end.&lt;/P&gt;&lt;P&gt;        itab2-location&lt;EM&gt;1(1) = itab2-location&lt;/EM&gt;1(1) + 1.&lt;/P&gt;&lt;P&gt;        append itab2.&lt;/P&gt;&lt;P&gt;        write:/ itab2.&lt;/P&gt;&lt;P&gt;      endwhile.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      itab2-location = loc-location.&lt;/P&gt;&lt;P&gt;      append itab2.&lt;/P&gt;&lt;P&gt;      write:/ itab2.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query...&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 10:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808907#M656554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T10:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: a question on string manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808908#M656555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 01:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-on-string-manipulation/m-p/2808908#M656555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T01:34:09Z</dc:date>
    </item>
  </channel>
</rss>

