<?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: oops tables statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109754#M440730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage of tables statement is prohibited in object oriented abap.u can define a work area type table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_ITAB TYPE USR01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u can add new record to the workarea and then to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 10:14:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-01T10:14:24Z</dc:date>
    <item>
      <title>oops tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109750#M440726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on OOPS and got  a typical problem.I've created a class in class builder and created methods for the class.while coding for the method itried to ues the tables statement. like tables : abc,def.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its giving the error &lt;/P&gt;&lt;P&gt;You cannot use the TABLES statement within a method.&lt;/P&gt;&lt;P&gt;How can i resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 04:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109750#M440726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T04:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: oops tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109751#M440727</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;In ABAP object TABLES statement is not allowed. The statement TABLES does nothing but create a work ares. Intead use DATA statement to create work area explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See what SAP says about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Creating table work areas with the TABLES statement 
is forbiddenin ABAP Objects. 

In ABAP Objects, an error message occurs on: 

TABLES dbtab. 

Correct syntax:
---------------

DATA wa TYPE dbtab. 

Reason:
-------

The semantics of the TABLES statement is ambiguous. 

Instead of table work areas, you should use explicit work 
areas&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 04:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109751#M440727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T04:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: oops tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109752#M440728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prajith , &lt;/P&gt;&lt;P&gt;  I cannot understand why you want to use TABLES in a method , as my understanding is that we use tables generally to define elements in out selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if would be great if you could tell why you want to use the tables statement in the method , as this will help us suggest some alternative&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 04:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109752#M440728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T04:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: oops tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109753#M440729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some similar problem like Prajith. The reason is (in my case) in a method I would like to add a new record to table &amp;lt;b&amp;gt;USR01&amp;lt;/b&amp;gt;. If I don't define it with statement &amp;lt;b&amp;gt;TABLES&amp;lt;/b&amp;gt; the system doesn't recognizes him and says &amp;lt;b&amp;gt;Field "USR01" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.&amp;lt;/b&amp;gt;. So I think somewhere I have to define it with &amp;lt;b&amp;gt;TABLES: USR01&amp;lt;/b&amp;gt;. But by this I get that errormessage like Prajith too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you any idea dear Arun R?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 09:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109753#M440729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T09:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: oops tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109754#M440730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage of tables statement is prohibited in object oriented abap.u can define a work area type table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_ITAB TYPE USR01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u can add new record to the workarea and then to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 10:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109754#M440730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T10:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: oops tables statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109755#M440731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prajith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx to Your help, but I have resolved the problem by another way. I have just created a function element than I'm call that from the method. I'ts work perfectly now &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 08:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-tables-statement/m-p/2109755#M440731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T08:44:01Z</dc:date>
    </item>
  </channel>
</rss>

