<?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: Conversion of internal table data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259202#M147078</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;Don't know how much these links are Useful to you. But as you are dealing with XML--&amp;gt;Parser. Hope these will be of some Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ifr.sap.com/home/Documents/XML_index_E.htm" target="test_blank"&gt;http://ifr.sap.com/home/Documents/XML_index_E.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ifr.sap.com/home/Documents/ABAP_Serialization.htm" target="test_blank"&gt;http://ifr.sap.com/home/Documents/ABAP_Serialization.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;YJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2006 07:46:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-07T07:46:10Z</dc:date>
    <item>
      <title>Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259194#M147070</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 an internal table of 1 field of length 200chars. I want to concatenate all the rows in this table and make them rows of 256 chars each and move it into another internal table having only 1 field of length 256 chars. How to do this? Any help is welcome please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rashmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 06:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259194#M147070</guid>
      <dc:creator>Rushme</dc:creator>
      <dc:date>2006-04-07T06:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259195#M147071</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;Perform a Loop and Use SPLIT command to split at the 256'th Character and then copy one by one in to the destination table of 256 Character's length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Joseph Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 06:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259195#M147071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259196#M147072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rashmi,&lt;/P&gt;&lt;P&gt;check the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        char(200) type c,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of jtab occurs 0,&lt;/P&gt;&lt;P&gt;        char(256) type c,&lt;/P&gt;&lt;P&gt;      end of jtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-char  = 'line 1'.append itab.&lt;/P&gt;&lt;P&gt;itab-char  = 'line 2'.append itab.&lt;/P&gt;&lt;P&gt;itab-char  = 'line 3'.append itab.&lt;/P&gt;&lt;P&gt;itab-char  = 'line 4'.append itab.&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;  concatenate jtab-char itab-char into jtab-char separated by space.&lt;/P&gt;&lt;P&gt;  at last.&lt;/P&gt;&lt;P&gt;    append jtab.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at jtab.&lt;/P&gt;&lt;P&gt;  write / jtab-char.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 06:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259196#M147072</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-04-07T06:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259197#M147073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its basically that I have to pass an internal table of length 256 char to xml-&amp;gt;parser. But the third party tool is already converting the xml file into internal table but that table field length is only 200 char.&lt;/P&gt;&lt;P&gt;How do u think I can move this xml data into 256 chars table which is being sent as 200 chars table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know the 256th char to do SPLIT or it is not just 1 line that i want to concatenate. it is an XML file in internal table format but length is only 200 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rashmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 06:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259197#M147073</guid>
      <dc:creator>Rushme</dc:creator>
      <dc:date>2006-04-07T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259198#M147074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;read only 200 char each time and pass it to your 256 len itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 06:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259198#M147074</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-04-07T06:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259199#M147075</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 can do one thing perform our age old program with loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First copy the 200 char's into source. This is done. Now move the next 56 char's also to source. Now you have copied the first 256 char's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now move for the next 256 char's. For this now you are in the second field of your first internal table. How many character's are you left out with 144 read this 144 copy into destination and read the remaining char's to make 256. This all you write in the inner loops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use concatenate operators. like eg: field 10(20) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;YJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 06:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259199#M147075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T06:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259200#M147076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rashmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;       f1(200) type c,&lt;/P&gt;&lt;P&gt;      end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;       f1(256) type c,&lt;/P&gt;&lt;P&gt;      end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v1(500) type c,&lt;/P&gt;&lt;P&gt;      v2 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the data in internal table itab1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate v1 itab1-f1 into v1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v2 = strlen( v1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v2 &amp;gt;= 256.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2-f1 = v1+0(256).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 = v1+256(244).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab2.&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;clear: itab1, itab2.&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;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neeraj Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 07:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259200#M147076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259201#M147077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rashmi,&lt;/P&gt;&lt;P&gt;don't use CONCATENATE statement as you may lose spaces within your character string. Please try the executable program below. For simplicity, I was moving table of char 3 to table of char 4. You can just change the variables v_max1 and v_max2 to 200 and 256, respectively, and you'll get what you want. I deliberately left spaces within table t_1 to see what will happen, and they remained as they should. &lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;P&gt;Please reward points if you find this useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_1           TYPE char200,
      v_2           TYPE char256,
      t_1           LIKE TABLE OF v_1,
      t_2           LIKE TABLE OF v_2,
      v_max1        TYPE i VALUE 3,
      v_max2        TYPE i VALUE 4,
      v_len_2       TYPE i,
      v_len_con     TYPE i,
      v_total_len   TYPE i,
      v_diff        TYPE i,
      v_concatenate TYPE char600.
APPEND: 'A C' TO t_1,
        'D F' TO t_1,
        ' HI' TO t_1,
        'J L' TO t_1,
        ' NO' TO t_1.

WRITE v_1.

LOOP AT t_1 INTO v_1.
    WRITE: v_1.
    v_len_con = strlen( v_concatenate ).
    v_concatenate+v_len_con = v_1(v_max1).
    v_len_con = strlen( v_concatenate ).
    v_len_2  = strlen( v_2 ).
    v_total_len = v_len_con + v_len_2.
    IF v_total_len &amp;lt; v_max2.
        v_2+v_len_2 = v_concatenate.
        CLEAR v_concatenate.
    ELSE.
        v_diff = v_max2 - v_len_2.
        v_2+v_len_2 = v_concatenate(v_diff).
        APPEND v_2 TO t_2.
        CLEAR v_2.
        v_concatenate = v_concatenate+v_diff.
    ENDIF.
ENDLOOP.
IF NOT v_2 IS INITIAL.
    APPEND v_2 TO t_2.
ENDIF.
ULINE.

LOOP AT t_2 INTO v_2.
    WRITE: / v_2.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 07:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259201#M147077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T07:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259202#M147078</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;Don't know how much these links are Useful to you. But as you are dealing with XML--&amp;gt;Parser. Hope these will be of some Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ifr.sap.com/home/Documents/XML_index_E.htm" target="test_blank"&gt;http://ifr.sap.com/home/Documents/XML_index_E.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ifr.sap.com/home/Documents/ABAP_Serialization.htm" target="test_blank"&gt;http://ifr.sap.com/home/Documents/ABAP_Serialization.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;YJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 07:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259202#M147078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259203#M147079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic written by you works perfectly fine with the data that you have taken as example 'A C' etc etc. But when I try the same with my table which has 3 rows, it is not working correctly. It just displays only 1 row in the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table data&lt;/P&gt;&lt;P&gt;first row = &amp;lt;SXPAssignmentUpdate Destination="CLICK_ID1"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Engineers&amp;gt;&amp;lt;Engineer&amp;gt;&amp;lt;ID&amp;gt;1&amp;lt;/ID&amp;gt;&amp;lt;Name&amp;gt;Richard Hodges&amp;lt;/Name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Engineer&amp;gt;&amp;lt;/Engineers&amp;gt;&amp;lt;Task&amp;gt;&amp;lt;CallID&amp;gt;000001008989&amp;lt;/CallID&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Number&amp;gt;10&amp;lt;/Number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sec row&lt;/P&gt;&lt;P&gt;ish&amp;gt;2006-04-04 07:33:00&amp;lt;/Finish&amp;gt;&amp;lt;Key&amp;gt;22624&amp;lt;/Key&amp;gt;&amp;lt;Start&amp;gt;&lt;/P&gt;&lt;P&gt;2006-04-04 06:33:00&amp;lt;/Start&amp;gt;&amp;lt;Task&amp;gt;&amp;lt;Status&amp;gt;&amp;lt;Name&amp;gt;ASSN&amp;lt;/Name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;third row&lt;/P&gt;&lt;P&gt;&amp;lt;/Status&amp;gt;&amp;lt;/Task&amp;gt;&amp;lt;/Assignment&amp;gt;&amp;lt;/SXPAssignmentUpdate&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not giving the correct output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rashmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 08:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259203#M147079</guid>
      <dc:creator>Rushme</dc:creator>
      <dc:date>2006-04-07T08:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259204#M147080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rashmi,&lt;/P&gt;&lt;P&gt;there was an error in program. Please try this one. I don't know do you want to preserve trailing spaces or not. You have a parameter for both options.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST LINE-SIZE 500.
DATA: v_1           TYPE char200,
      v_2           TYPE char256,
      t_1           LIKE TABLE OF v_1,
      t_2           LIKE TABLE OF v_2,
      v_max1        TYPE i VALUE 200,
      v_max2        TYPE i VALUE 255,
      v_len_2       TYPE i,
      v_len_con     TYPE i,
      v_total_len   TYPE i,
      v_diff        TYPE i,
      v_concatenate TYPE char600.
PARAMETERS: p_tspace TYPE char1 AS CHECKBOX.
CONCATENATE:
     '&amp;lt;SXPAssignmentUpdate Destination="CLICK_ID1"&amp;gt;'
     '&amp;lt;Engineers&amp;gt;&amp;lt;Engineer&amp;gt;&amp;lt;ID&amp;gt;1&amp;lt;/ID&amp;gt;&amp;lt;Name&amp;gt;Richard Hodges&amp;lt;/Name&amp;gt;'
     '&amp;lt;/Engineer&amp;gt;&amp;lt;/Engineers&amp;gt;&amp;lt;Task&amp;gt;&amp;lt;CallID&amp;gt;000001008989&amp;lt;/CallID&amp;gt;'
     '&amp;lt;Number&amp;gt;10&amp;lt;/Number' INTO v_1.
APPEND v_1 TO t_1.
CONCATENATE:
  'ish&amp;gt;2006-04-04 07:33:00&amp;lt;/Finish&amp;gt;&amp;lt;Key&amp;gt;22624&amp;lt;/Key&amp;gt;&amp;lt;Start&amp;gt;'
  '2006-04-04 06:33:00&amp;lt;/Start&amp;gt;&amp;lt;Task&amp;gt;&amp;lt;Status&amp;gt;&amp;lt;Name&amp;gt;ASSN&amp;lt;/Name&amp;gt;' INTO v_1.
APPEND v_1 TO t_1.
APPEND '&amp;lt;/Status&amp;gt;&amp;lt;/Task&amp;gt;&amp;lt;/Assignment&amp;gt;&amp;lt;/SXPAssignmentUpdate&amp;gt;' TO t_1.
FIELD-SYMBOLS: &amp;lt;line1&amp;gt; TYPE ANY,
               &amp;lt;line2&amp;gt; TYPE ANY.
CLEAR t_2.
LOOP AT t_1 ASSIGNING &amp;lt;line1&amp;gt;.
    v_concatenate+v_len_con = &amp;lt;line1&amp;gt;(v_max1).
    IF p_tspace = 'X'.
        ADD v_max1 TO v_len_con.
    ELSE.
        v_len_con = STRLEN( v_concatenate ).
    ENDIF.
    v_total_len = v_len_con + v_len_2.
    IF v_total_len &amp;lt; v_max2.
        v_2+v_len_2 = v_concatenate.
        IF p_tspace = 'X'.
            ADD v_len_con TO v_len_2.
        ELSE.
            v_len_2 = STRLEN( v_2 ).
        ENDIF.
        CLEAR: v_concatenate, v_len_con.
    ELSE.
        v_diff = v_max2 - v_len_2.
        v_2+v_len_2 = v_concatenate(v_diff).
        APPEND v_2 TO t_2.
        CLEAR: v_2, v_len_2.
        v_concatenate = v_concatenate+v_diff.
        IF p_tspace = 'X'.
            SUBTRACT v_diff FROM v_len_con.
        ELSE.
            v_len_con = STRLEN( v_concatenate ).
        ENDIF.
    ENDIF.
ENDLOOP.
IF NOT v_2 IS INITIAL.
    APPEND v_2 TO t_2.
ENDIF.
LOOP AT t_1 INTO v_1.
    WRITE / v_1.
ENDLOOP.
WRITE / 'result:'.
LOOP AT t_2 INTO v_2.
    WRITE: / v_2.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 09:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259204#M147080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-07T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259205#M147081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code works perfectly fine. Thanks a lot for that. &lt;/P&gt;&lt;P&gt;Now the problem I'm facing is that xml parser looks for an 'end of file' character in the last line of the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to append 'end of file' char in 46c? In this case I want to append this 'eof' char at the end (in the last line) of the internal table before sending it to parser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help. It was a great code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rashmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Apr 2006 23:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259205#M147081</guid>
      <dc:creator>Rushme</dc:creator>
      <dc:date>2006-04-08T23:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion of internal table data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259206#M147082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rashmi,&lt;/P&gt;&lt;P&gt;I am glad that my code was helpful to you.&lt;/P&gt;&lt;P&gt;Unfortunalely, I don't know how to append 'end of file' char. &lt;/P&gt;&lt;P&gt;Please notice radiobuttons on the left margin of each reply to your own messages (these appear for each person only with the questions that he or she has asked), saying "Solved Problem (10)", "Very helpful answer (6)" and "Helpful answer (2)". If you don't see these radiobuttons, then it's a kind of error in SDN application that sometimes happens too. It usually corrects if you logoff/logon to SDN.&lt;/P&gt;&lt;P&gt;However, by checking the radiobuttons (or not) your rate replies that people give to you and assign points to them (10, 6 or 2). Although it's always nice to say "than you" too, rating answers and assigning points is a common way of expressing thankfulness for provided help. Level of your satisfaction is totally your discretion, but I think you should rate answers taken into account only your original question, not the additional questions you might have asked in the same thread subsequently (like 'end of file' question in your thread).&lt;/P&gt;&lt;P&gt;So if you are happy with my reply (it seems to me that you are), please assign points.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2006 06:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-of-internal-table-data/m-p/1259206#M147082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-10T06:04:08Z</dc:date>
    </item>
  </channel>
</rss>

