<?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: Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381734#M186276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; move itab to itab1.&lt;/P&gt;&lt;P&gt; append itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work provided your contents are occupying the full length of the field declcared, meaning the data for P1 should occupy the full 20 characters, else wrong data will go into wrong fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way of doing it is to have a delimiter that separates the data of each field. Then you can use SPLIT command to seprate the data and append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2006 16:22:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-17T16:22:10Z</dc:date>
    <item>
      <title>Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381733#M186275</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 itablike this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      finaltext(3000),&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i exicute my pgm ith itab has the data like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2006-07-28 13:55:00.0                                                     &lt;/P&gt;&lt;P&gt;Content/Products/Product Detail/Test1.html                                &lt;/P&gt;&lt;P&gt;Test1.html                                                                &lt;/P&gt;&lt;P&gt;2006-06-02 13:55:00.0                                                     &lt;/P&gt;&lt;P&gt;7                                                                         &lt;/P&gt;&lt;P&gt;9                                                                         &lt;/P&gt;&lt;P&gt;admin                                                                     &lt;/P&gt;&lt;P&gt;1075                                                                      &lt;/P&gt;&lt;P&gt;/Content/Products/Product Detail/Test1.html                               &lt;/P&gt;&lt;P&gt;text/vnd.merant.contribution+xml                                          &lt;/P&gt;&lt;P&gt;Test1 description                                                         &lt;/P&gt;&lt;P&gt;Product Detail                                                            &lt;/P&gt;&lt;P&gt;0                                                                         &lt;/P&gt;&lt;P&gt;0                                                                         &lt;/P&gt;&lt;P&gt;/WebSite/Content/Products/Product Detail/Test1.html                       &lt;/P&gt;&lt;P&gt;Test1                                                                     &lt;/P&gt;&lt;P&gt;9                                                                         &lt;/P&gt;&lt;P&gt;Financial Intelligence,IRA                                                &lt;/P&gt;&lt;P&gt;Banks,Finance Companies                                                   &lt;/P&gt;&lt;P&gt;Electronic Documents                                                      &lt;/P&gt;&lt;P&gt;Menu-driven paper - Request Consultation                                  &lt;/P&gt;&lt;P&gt;asdfsa                                                                    &lt;/P&gt;&lt;P&gt;23412                                                                     &lt;/P&gt;&lt;P&gt;test, akjsd                                                               &lt;/P&gt;&lt;P&gt;This is a search descriptions                                             &lt;/P&gt;&lt;P&gt;&amp;lt;IMG class="" alt="Soap Bubbles" src="../../../Assets/Images/Soap%20Bubble&lt;/P&gt;&lt;P&gt;&amp;lt;A class="" title="" href="../../../Assets/Documents/Catalog_Hub_UXP_v1_4.&lt;/P&gt;&lt;P&gt;This is a &amp;amp;lt;b&amp;amp;gt;Short Description&amp;amp;lt;/b&amp;amp;gt;.                           &lt;/P&gt;&lt;P&gt;&amp;lt;FONT color=#ffffff cmid="Product Detail:longDescription"&amp;gt;&amp;lt;FONT color=#ff0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i have nearly 29 fields....in one more jtab like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_product occurs 0,&lt;/P&gt;&lt;P&gt;      p1(20),&lt;/P&gt;&lt;P&gt;      p2(70),&lt;/P&gt;&lt;P&gt;      p3(20),&lt;/P&gt;&lt;P&gt;      p4(20),&lt;/P&gt;&lt;P&gt;      p5(2),&lt;/P&gt;&lt;P&gt;      p6(2),&lt;/P&gt;&lt;P&gt;      p7(15),&lt;/P&gt;&lt;P&gt;      p8(10),&lt;/P&gt;&lt;P&gt;      p9(70),&lt;/P&gt;&lt;P&gt;      p10(60),&lt;/P&gt;&lt;P&gt;      p11(50),&lt;/P&gt;&lt;P&gt;      P12(30),&lt;/P&gt;&lt;P&gt;      P13(2),&lt;/P&gt;&lt;P&gt;      P14(2),&lt;/P&gt;&lt;P&gt;      P15(70),&lt;/P&gt;&lt;P&gt;      P16(10),&lt;/P&gt;&lt;P&gt;      P17(2),&lt;/P&gt;&lt;P&gt;      P18(30),&lt;/P&gt;&lt;P&gt;      P19(30),&lt;/P&gt;&lt;P&gt;      P20(30),&lt;/P&gt;&lt;P&gt;      P21(40),&lt;/P&gt;&lt;P&gt;      P22(20),&lt;/P&gt;&lt;P&gt;      P23(10),&lt;/P&gt;&lt;P&gt;      P24(7),&lt;/P&gt;&lt;P&gt;      P25(15),&lt;/P&gt;&lt;P&gt;      P26(40),&lt;/P&gt;&lt;P&gt;      P27(50),&lt;/P&gt;&lt;P&gt;      P28(100),&lt;/P&gt;&lt;P&gt;      P29(80),&lt;/P&gt;&lt;P&gt;      P30(100),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      end of it_product.&lt;/P&gt;&lt;P&gt;so i want to move data from itab to jatb.&lt;/P&gt;&lt;P&gt;So after exicuting my pgm jtab shold give output like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p1  p2   p3   p4   p5  ......etc...p30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:p1 means data in itab...&lt;/P&gt;&lt;P&gt;Can any body tell me how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381733#M186275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381734#M186276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; move itab to itab1.&lt;/P&gt;&lt;P&gt; append itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work provided your contents are occupying the full length of the field declcared, meaning the data for P1 should occupy the full 20 characters, else wrong data will go into wrong fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way of doing it is to have a delimiter that separates the data of each field. Then you can use SPLIT command to seprate the data and append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381734#M186276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T16:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381735#M186277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this.&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: itab type table of string with header line.

data: begin of itab2 occurs 0,
      fld1(10) type c,
      fld2(10) type c,
      fld3(10) type c,
      fld4(10) type c,
      end of itab2.

field-symbols: &amp;lt;fs&amp;gt;.

loop at itab.

  assign component sy-tabix of structure itab2 to &amp;lt;fs&amp;gt;.
  if sy-subrc &amp;lt;&amp;gt; 0.
    exit.
  endif.

  &amp;lt;fs&amp;gt; = itab.

endloop.

append itab2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1381735#M186277</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-17T16:24:03Z</dc:date>
    </item>
  </channel>
</rss>

