<?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: split in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529013#M848988</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 have 3 fields in your internal table.you want to split the third filed from 75 characters and you want to add this field to next field.But you are saying that iam having 3 fields in my internal table then how to add this to next.every got confusion here.specify your requirement clearly so that you will get quick answer.&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;swami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 07:22:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T07:22:37Z</dc:date>
    <item>
      <title>split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529010#M848985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi frnds,&lt;/P&gt;&lt;P&gt;I have one internal table with three fields.&lt;/P&gt;&lt;P&gt;and I want to split third field depending on no. of characters, say 75 characters, and I want to add this row next to row which is splitted. Remaining two fields should be same for the splitted row also..&lt;/P&gt;&lt;P&gt;How could i do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529010#M848985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529011#M848986</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;&lt;/P&gt;&lt;P&gt;DATA :v_clen TYPE i ,&lt;/P&gt;&lt;P&gt;           v_char (150).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   v_len  =  strlen( itab-fiels3) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF v_len &amp;gt; 75.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      itab-field4  =  itab-field3+75(v_len).&lt;/P&gt;&lt;P&gt;      itab-field3 =   itab-field3+0(75).&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;     MODIFY ITAB TRANSFERING  field3 field4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529011#M848986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529012#M848987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont want to add extra field to itab, I just want to add extra row after splitting with same data of remaining two fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 07:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529012#M848987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T07:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529013#M848988</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 have 3 fields in your internal table.you want to split the third filed from 75 characters and you want to add this field to next field.But you are saying that iam having 3 fields in my internal table then how to add this to next.every got confusion here.specify your requirement clearly so that you will get quick answer.&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;swami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 07:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529013#M848988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T07:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529014#M848989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Nitin&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i conclude from your requirement is......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filed1 | field2 | field3        &lt;/P&gt;&lt;P&gt;a         a1      XXXX&lt;/P&gt;&lt;P&gt;a         a1      XX&lt;/P&gt;&lt;P&gt;b         b1      YYY&lt;/P&gt;&lt;P&gt;c         c1       ZZZZ&lt;/P&gt;&lt;P&gt;c         c1       ZZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is what you are expecting. In this case try the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  begin of fs_itab,		" field string&lt;/P&gt;&lt;P&gt;    field1(10) type c,&lt;/P&gt;&lt;P&gt;    field2(10) type c,&lt;/P&gt;&lt;P&gt;    field3(100) type c,&lt;/P&gt;&lt;P&gt;  end of fs_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_itab like standard table	" internal table&lt;/P&gt;&lt;P&gt;           of fs_itab&lt;/P&gt;&lt;P&gt;      initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  w_length    type i,		" string length&lt;/P&gt;&lt;P&gt;  w_index     type i,           " record count&lt;/P&gt;&lt;P&gt;  w_field3    like itab-field3, " field contents&lt;/P&gt;&lt;P&gt;  w_char1(75) type c,		" char string&lt;/P&gt;&lt;P&gt;  w_char2(75) type c.		" char string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;  c_maxl type i value 75.	" max. length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Loop at t_itab into fs_itab.&lt;/P&gt;&lt;P&gt;    clear w_length.&lt;/P&gt;&lt;P&gt;    w_length = strlen( fs_itab-field3 ).&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    check w_length &amp;gt; c_maxl.&lt;/P&gt;&lt;P&gt;      read itab index sy-tabix.&lt;/P&gt;&lt;P&gt;      w_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;      w_length = w_length - c_maxl.&lt;/P&gt;&lt;P&gt;      w_field3 = fs_itab-field3.&lt;/P&gt;&lt;P&gt;      clear fs_itab-field3.&lt;/P&gt;&lt;P&gt;      fs_itab-field3 = w_field3+0( c_maxl ).&lt;/P&gt;&lt;P&gt;        modify t_itab from fs_itab &lt;/P&gt;&lt;P&gt;              transferring field3 index sy-tabix. &lt;/P&gt;&lt;P&gt;      clear fs_itab-field3.&lt;/P&gt;&lt;P&gt;      fs_itab-field3 = w_field3+c_maxl( w_length ).&lt;/P&gt;&lt;P&gt;        append fs_itab to t_itab &lt;/P&gt;&lt;P&gt;                    index w_index.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;  Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please award points if it was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 07:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529014#M848989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T07:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529015#M848990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey its very simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make one more internal table of same type let it be btab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fild 1 and 2 of btab = fld 1 and 2 of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btab-fld3 = itab-fld3+75(*).&lt;/P&gt;&lt;P&gt;append btab. &lt;/P&gt;&lt;P&gt;clear btab.&lt;/P&gt;&lt;P&gt;itab-fild3 = itab-fild3+0(75).&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once loop is over .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of btab to itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529015#M848990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T08:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529016#M848991</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;  DATA :v_clen TYPE i ,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;            v_char(150). &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_len = strlen( itab-fiels3) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF v_len &amp;gt; 75.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_char = itab-field3+75(v_len).&lt;/P&gt;&lt;P&gt;  itab-field3 = itab-field3+0(75).&lt;/P&gt;&lt;P&gt;  MODIFY ITAB TRANSFERING field3.   &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  itab-field3 = v_char.&lt;/P&gt;&lt;P&gt;   MODIFY ITAB TRANSFERING field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split/m-p/3529016#M848991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T08:32:22Z</dc:date>
    </item>
  </channel>
</rss>

