<?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/2088809#M434014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at main_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move : f1 to itab_header-f1,&lt;/P&gt;&lt;P&gt;            f2 to itab_header-f1, &lt;/P&gt;&lt;P&gt;            f3 to itab_header-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append itab_header.&lt;/P&gt;&lt;P&gt;    clear itab_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Take the unique value column from header    and move those recoreds to line &lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;item internal table.Say f1 is unique.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; move : f1 to itab_lineitem-f1,&lt;/P&gt;&lt;P&gt;            f4 to itab_lineitem-f4, &lt;/P&gt;&lt;P&gt;            f5 to itab_lineitem-f5,&lt;/P&gt;&lt;P&gt;            f6 to itab_lineitem-f6.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        append itab_lineitem.&lt;/P&gt;&lt;P&gt;        clear itab_lineitem.&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;don't forget to reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 09:27:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T09:27:44Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088805#M434010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a internal table with records like&lt;/P&gt;&lt;P&gt;f1     f2   f3   f4    f5  f6&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;123  45  rat  ade 56 78&lt;/P&gt;&lt;P&gt;                   agh 34  67&lt;/P&gt;&lt;P&gt;                   wer  56 77&lt;/P&gt;&lt;P&gt;123  77  dog dhg  99 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fields f1 f2 f3 are header fields and f4 f5 f6 are line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while uploading i need to process the header and line items.&lt;/P&gt;&lt;P&gt;i need to pass the header to one internal table and all the corressponding line items to another internal table &lt;/P&gt;&lt;P&gt;how to process them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088805#M434010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088806#M434011</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;Use function GET_COMPONENT_LIST to read the structure of internal table.This will give u the list of the columns used in the internal table.&lt;/P&gt;&lt;P&gt;Use this list and then pass the information into different tables.&lt;/P&gt;&lt;P&gt;Just loop at the list, check if the column is a header or item and do the required processing.&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088806#M434011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088807#M434012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In header table keep the records first in one line.&lt;/P&gt;&lt;P&gt;and in Item table also keep the first key field in the header and other item fields, such that when we loop the Item under Header, that is the field to read the Item.&lt;/P&gt;&lt;P&gt;ie. header: f1  f2  f3   &lt;/P&gt;&lt;P&gt;     Item     f1 i1  i2  i3 ... if f1 f2 f3 all are key fields then keep all of them in the item table. to read it in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088807#M434012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088808#M434013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*Declate it_header table with fields f1 f2 f3&lt;/P&gt;&lt;P&gt;*Declare it_items table with fields f1 f4 f5 f6 so that f1 is the common field to relate them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
 move-corresponding itab to it_header.
 move-corresponding itab to it_items.
 append it_header.
 appen it_items.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088808#M434013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088809#M434014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at main_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move : f1 to itab_header-f1,&lt;/P&gt;&lt;P&gt;            f2 to itab_header-f1, &lt;/P&gt;&lt;P&gt;            f3 to itab_header-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    append itab_header.&lt;/P&gt;&lt;P&gt;    clear itab_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Take the unique value column from header    and move those recoreds to line &lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;item internal table.Say f1 is unique.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; move : f1 to itab_lineitem-f1,&lt;/P&gt;&lt;P&gt;            f4 to itab_lineitem-f4, &lt;/P&gt;&lt;P&gt;            f5 to itab_lineitem-f5,&lt;/P&gt;&lt;P&gt;            f6 to itab_lineitem-f6.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        append itab_lineitem.&lt;/P&gt;&lt;P&gt;        clear itab_lineitem.&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;don't forget to reward if useful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088809#M434014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088810#M434015</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;1.  If possible fetch values initially in two i tabs....&lt;/P&gt;&lt;P&gt;2.  Assuming that f1 f2 f3 as key field  i m suggesting floowing codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if f1 is not initial and f2 id not initial and f3 id not initial.&lt;/P&gt;&lt;P&gt;append f1 f2 f3 into itab1 " which has first 3 fileds only&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append f4 f5 f6 into itab2 "which has f4-f6 fileds.&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;Hope your problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088810#M434015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088811#M434016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare ihead with fields f1 f2 f3 and iitem with f4 f5 f6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;if itab-f1 ne '' and itab-f2 ne '' and itabf3 ne ''.&lt;/P&gt;&lt;P&gt;move-corresponding itab to ihead.&lt;/P&gt;&lt;P&gt;append ihead.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;move-corresponding itab to iitem.&lt;/P&gt;&lt;P&gt;append iitem.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088811#M434016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088812#M434017</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;the internal table contains the data as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123 45 rat ade 56 78&lt;/P&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  --   ---      agh 34 67&lt;/P&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;   ---   ---      wer 56 77&lt;/P&gt;&lt;P&gt;123 77 dog dhg 99 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088812#M434017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088813#M434018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create two internal tables - i_header and i_item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_header having fields f1,f2 and f3.&lt;/P&gt;&lt;P&gt;i_item having fields f4, f5, f6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;move-corresponding itab to i_header.&lt;/P&gt;&lt;P&gt;move-corresponding itab to i_items.&lt;/P&gt;&lt;P&gt;append i_header.&lt;/P&gt;&lt;P&gt;appen i_items.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 11:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088813#M434018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T11:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088814#M434019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i assume that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123 45 rat ade 56 78&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; -- --- agh 34 67&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; --- --- wer 56 77&lt;/P&gt;&lt;P&gt;123 77 dog dhg 99 12&lt;/P&gt;&lt;P&gt;this will be data &lt;/P&gt;&lt;P&gt;so asper my code&lt;/P&gt;&lt;P&gt;in header table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will contain.&lt;/P&gt;&lt;P&gt; ade 56 78&lt;/P&gt;&lt;P&gt;agh 34 67&lt;/P&gt;&lt;P&gt; wer 56 77&lt;/P&gt;&lt;P&gt; dog dhg 99 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123 77 dog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and item table it will contain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 11:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2088814#M434019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T11:26:36Z</dc:date>
    </item>
  </channel>
</rss>

