<?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 Tables statement inside classes methods in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355541#M7219</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;
I am building a method in a class.
I am using a select statement where I extract data from table1 into itab2 for all entries in itab1. &lt;/P&gt;&lt;P&gt;It is giving error,
&lt;EM&gt;"table1" is not defined in the ABAP Dictionary as a table, projection view, or database view&lt;/EM&gt;.
But when I try to use tables : table1, it again refuses to accept that statement inside the method. Any workaround?&lt;/P&gt;&lt;P&gt;
Regards,&lt;/P&gt;&lt;P&gt;
Cleo&lt;/P&gt;</description>
    <pubDate>Sun, 25 Dec 2016 14:20:54 GMT</pubDate>
    <dc:creator>former_member302630</dc:creator>
    <dc:date>2016-12-25T14:20:54Z</dc:date>
    <item>
      <title>Tables statement inside classes methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355541#M7219</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;
I am building a method in a class.
I am using a select statement where I extract data from table1 into itab2 for all entries in itab1. &lt;/P&gt;&lt;P&gt;It is giving error,
&lt;EM&gt;"table1" is not defined in the ABAP Dictionary as a table, projection view, or database view&lt;/EM&gt;.
But when I try to use tables : table1, it again refuses to accept that statement inside the method. Any workaround?&lt;/P&gt;&lt;P&gt;
Regards,&lt;/P&gt;&lt;P&gt;
Cleo&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2016 14:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355541#M7219</guid>
      <dc:creator>former_member302630</dc:creator>
      <dc:date>2016-12-25T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tables statement inside classes methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355542#M7220</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should read the documentation -&amp;gt; first sentence: "This statement is not allowed in classes"
(cf &lt;A href="http://help.sap.com/abapdocu_702/en/?url=ABAPTABLES.htm"&gt;http://help.sap.com/abapdocu_702/en/?url=ABAPTABLES.htm&lt;/A&gt;)&lt;/P&gt;To declare a variable, use DATA (cf &lt;A href="http://help.sap.com/abapdocu_702/en/?url=ABAPDATA.htm"&gt;http://help.sap.com/abapdocu_702/en/?url=ABAPDATA.htm&lt;/A&gt;).</description>
      <pubDate>Sun, 25 Dec 2016 17:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355542#M7220</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-12-25T17:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tables statement inside classes methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355543#M7221</link>
      <description>&lt;P&gt;I made a structure and using that to extract data and used that in a FM.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 15:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355543#M7221</guid>
      <dc:creator>former_member302630</dc:creator>
      <dc:date>2016-12-26T15:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tables statement inside classes methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355544#M7222</link>
      <description>&lt;P&gt;Post your problem code here (method and table declaration).&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 04:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355544#M7222</guid>
      <dc:creator>former_member210008</dc:creator>
      <dc:date>2016-12-27T04:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tables statement inside classes methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355545#M7223</link>
      <description>&lt;P&gt;The TABLES statement is obsolete and should not be used. &lt;B&gt;ALWAYS&lt;/B&gt; use a seperately defined work area.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 08:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables-statement-inside-classes-methods/m-p/355545#M7223</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-12-27T08:18:19Z</dc:date>
    </item>
  </channel>
</rss>

