<?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 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951454#M391904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Declare liek this,&lt;/P&gt;&lt;P&gt;   DATA: ITAB LIKE STANDARD TABLE OF &amp;lt;Flatfile Structure&amp;gt; WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 07:17:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T07:17:01Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951450#M391900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a flat file which contains a field named matnr.&lt;/P&gt;&lt;P&gt;i nedd to declare a internal table with field matnr1 and matnr 2.&lt;/P&gt;&lt;P&gt;my problem is in my flat file they may be 10 material numbers or 100.&lt;/P&gt;&lt;P&gt;so looking how to declare an internal table dynamically so that my internal table should contain 10 material matnr1....matnr10 if it contains 100 internal table should contain matnr1..............matnr100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not able to understand please do reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951450#M391900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951451#M391901</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;No need to bother about how an internal Table takes how many records.(10 or 100) &lt;/P&gt;&lt;P&gt;At run time they increase automatically depending on the requirement.&lt;/P&gt;&lt;P&gt;Just declare Itab as OCCURS 0.&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>Wed, 28 Feb 2007 07:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951451#M391901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951452#M391902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. From Vertical----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&amp;gt; To Horizontal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Its very difficult to do this way, dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Its best to declare pre-defined fixed fields with name such as&lt;/P&gt;&lt;P&gt;  MATNR001, MATNR002 .. and so on.&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951452#M391902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951453#M391903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please be more clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951453#M391903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951454#M391904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Declare liek this,&lt;/P&gt;&lt;P&gt;   DATA: ITAB LIKE STANDARD TABLE OF &amp;lt;Flatfile Structure&amp;gt; WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951454#M391904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951455#M391905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;           matnr(200),&lt;/P&gt;&lt;P&gt;          end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : title(200),&lt;/P&gt;&lt;P&gt;          vtext(18).&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;data : len type i.&lt;/P&gt;&lt;P&gt;using gui_upload fn module just fill int table itab1.&lt;/P&gt;&lt;P&gt;sort itab1 by matnr.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab1 comparing matnr.&lt;/P&gt;&lt;P&gt;describe table itab1 lines len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;concatenate 'Matnr' sy-index into v_text.&lt;/P&gt;&lt;P&gt;conactenate title v_text into title separated by space..&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;write : / title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT WILL SHOW THE HEADING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;concatenate itab-matnr itab1-matnr into itab-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;append itab-matnr.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : / itab-matnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;it will show the matrial no.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951455#M391905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951456#M391906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your is regarding n number of materials i.e different records then declaring the itab with occurs 0 would serve your purpose as size of the itab would increase dyanmically. But if your case is regarding having n number of material fields its not possible to declare new fields for an itab dynamically. If you are not sure on how many fields are there, then you are gonna face a problem in uploading the flat file to the itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion is you reanalyse the requirement and change your logic accordingly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1951456#M391906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:55:45Z</dc:date>
    </item>
  </channel>
</rss>

