<?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: Table problem on SE37 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148397#M116834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome,&lt;/P&gt;&lt;P&gt; You should not declare under the TABLE tab.&lt;/P&gt;&lt;P&gt;declare it as below.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA: ZTEMPTAB LIKE ZTABANOMALIST OCCURS 0 WITH HEADER LINE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2006 16:18:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-14T16:18:47Z</dc:date>
    <item>
      <title>Table problem on SE37</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148396#M116833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a ZTABLE ZTABANOMALIST, and filled it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a fonction to display it (with some enhancements). On the Tab "Table" I declared &lt;/P&gt;&lt;P&gt;ZTEMPTAB LIKE ZTABANOMALIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to write a SQL SELECT like&lt;/P&gt;&lt;P&gt;SELECT * from ZTABANOMALIST into ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before to write this code (and actually after) when I check my code a have this error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;"ZTABANOMALIST" must be a flat structure. You cannot use internal		&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody know why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 16:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148396#M116833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T16:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table problem on SE37</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148397#M116834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome,&lt;/P&gt;&lt;P&gt; You should not declare under the TABLE tab.&lt;/P&gt;&lt;P&gt;declare it as below.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA: ZTEMPTAB LIKE ZTABANOMALIST OCCURS 0 WITH HEADER LINE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 16:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148397#M116834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T16:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table problem on SE37</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148398#M116835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jerome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By putting the ZTEMPTAB on the table-tab you declared the ZTEMPTAB as a table-type, not as a structure (or in older terms a "header-line"). So either create a flat structure with a statement like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: ZTEMPSTRUC like line of ZTEMPTAB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now you can select directly into this ZTEMPSTRUC for further processing, or appending to table ZTEMPTAB.&lt;/P&gt;&lt;P&gt;Another way of doing it (depending on what you need to do) is by filling the internal table immediately using the following code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT * from ZTABANOMALIST into table ZTEMPTAB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you follow Phani's suggestions, you won't be able to import / export values to/from the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. Good luck!&lt;/P&gt;&lt;P&gt;Jan-Willem Kaagman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: J.W.F.  Kaagman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 16:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148398#M116835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T16:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table problem on SE37</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148399#M116836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare another table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ZTEMP LIKE ZTABANOMALIST occurs 10 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * from ZTABANOMALIST into ZTEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ztemptab[]  = ztemp[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 16:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148399#M116836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table problem on SE37</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148400#M116837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add a little, the OCCURS statement is obselete in new versions and can not be used in ABAP objects.  It is suggest that you start moving away from using the OCCURS statement when defining an internal table.  You should be using TYPE TABLE OF instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ZTEMPTAB type table of ZTABANOMALIST WITH HEADER LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the "WITH HEADER LINE" is obselete and not allowed in ABAP objects, you should be defining a seperate work area for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: ZTEMPTAB Type table of ZTABANOMALIST.
data: wa_temptab like line of ztemptab.

&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>Tue, 14 Feb 2006 16:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-problem-on-se37/m-p/1148400#M116837</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-14T16:40:54Z</dc:date>
    </item>
  </channel>
</rss>

