<?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: how to declare table i method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013370#M958931</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 OO you cannot have tables defined with header lines, so in OO its the same way you create tables in programs or FM without header lines. and also you cannot use LIKE statement in the OO ABAP, you could only use TYPE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And about the place where you need to write the code, you should go to the METHOD and double click on the method where you will be displayed the ABAP editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you face any problem still, else kindly close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yugandhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 07:11:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-20T07:11:25Z</dc:date>
    <item>
      <title>how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013367#M958928</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to now  how to  declare table (like in fm) in method,&lt;/P&gt;&lt;P&gt;because when i try declare table in parameters (SE24) with type the structure i build in se11 i get error:&lt;/P&gt;&lt;P&gt;""LT_TAB" is not an internal table "OCCURS n" specification is problem "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i don't have the option of like (like in fm for structure  ) just type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. how i have to declare table in changing or returning ?&lt;/P&gt;&lt;P&gt;(in the fm its in tab tables i put  - LT_TAB LIKE Z_STRUCTURE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013367#M958928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013368#M958929</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;Try using the below code for declaration.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES : BEGIN OF gs_bsis,
          bukrs LIKE bsis-bukrs,
          hkont LIKE bsis-hkont,
          gjahr LIKE bsis-gjahr,
        END OF gs_bsis.

DATA : gt_bsis TYPE TABLE OF gs_bsis.  "Inernal table
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013368#M958929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013369#M958930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sriram Ponna  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks but where i put it in se24 ?&lt;/P&gt;&lt;P&gt;i new to OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013369#M958930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013370#M958931</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 OO you cannot have tables defined with header lines, so in OO its the same way you create tables in programs or FM without header lines. and also you cannot use LIKE statement in the OO ABAP, you could only use TYPE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And about the place where you need to write the code, you should go to the METHOD and double click on the method where you will be displayed the ABAP editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you face any problem still, else kindly close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yugandhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013370#M958931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013371#M958932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  Yugandhar Kotha    	 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS i try to declare with type and i have the same error,&lt;/P&gt;&lt;P&gt;how i avoid the header line , i don't declare it i just declare table like &lt;/P&gt;&lt;P&gt;structure in se 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013371#M958932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013372#M958933</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;try to declare the work area type first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES BEGIN OF ts_workarea.
TYPES field1 TYPE field1_type.
TYPES END OF ts_workarea.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then define the table type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES tt_tabletype TYPE STANDARD TABLE OF ts_workarea WITH DEFAULT KEY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create a table type based on SE11 structure then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES tt_tabletype TYPE STANDARD TABLE OF zs_ddic_structure WITH DEFAULT KEY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can take this table type and use it for attributes or parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information can be found here: [The Statements TYPES and DATA|http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2ff3358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013372#M958933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013373#M958934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kramer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i provide you an example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if suppose you need to create a table with fields vbeln, posnr then here it goes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_tab,&lt;/P&gt;&lt;P&gt;               vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;               posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;        end of ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  fs_tab type ty_tab,&lt;/P&gt;&lt;P&gt;  i_tab type table of ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs_tab will be the work area for the table i_tab.&lt;/P&gt;&lt;P&gt;so when you try appending a record in i_tab, populate fs_tab and use it .&lt;/P&gt;&lt;P&gt;append fs_tab to i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how it helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yugandhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 07:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013373#M958934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T07:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013374#M958935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi  Yugandhar Kotha    	 ,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; THANKS i try to declare with type and i have the same error,&lt;/P&gt;&lt;P&gt;&amp;gt; how i avoid the header line , i don't declare it i just declare table like &lt;/P&gt;&lt;P&gt;&amp;gt; structure in se 11.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go on, give us a clue.  WHAT did you try?  Post it here in  tags...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 08:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013374#M958935</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-06-20T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013375#M958936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kramer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let us know if you have the problem still else close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yugandhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 09:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013375#M958936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T09:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013376#M958937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cosmo,&lt;/P&gt;&lt;P&gt;In OO programing there is no concept of the header line ... Instead of this create a Workarea of the same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Jun 20, 2008 1:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 09:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013376#M958937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013377#M958938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  Matthew Billing,	 ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have Fm that work fine,and i wont to do the same but in method,&lt;/P&gt;&lt;P&gt;i declare class &amp;amp;  method and parameters of import ,&lt;/P&gt;&lt;P&gt;in the fm i have tables (itab like structure i build in se11) that  when Execute the fm i get with data,&lt;/P&gt;&lt;P&gt;what i wont is :  &lt;U&gt;now How i declare table in method in se24&lt;/U&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 19:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013377#M958938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T19:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare table i method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013378#M958939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to define  a parameter of a method as itab (table) then create a table type for your structure. Txn SE11, in data type field enter a name and click create, it will prompt you with options and choose the table type and within the definition use your structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;On the way you handled points.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the point system judiciously. you have given points (2) to both wrong answer as well as a close to right answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;For Others who tried to answer&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, read the question thrice before attempting to answer and if you dont know or if you are not sure, do not mislead .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jun 2008 07:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-declare-table-i-method/m-p/4013378#M958939</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-06-22T07:18:47Z</dc:date>
    </item>
  </channel>
</rss>

