<?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: Defining attribute for internal table within class builder? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977304#M1604334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the "local types" tab or "types" tab in se24 to declare your types.&lt;/P&gt;&lt;P&gt;Please note that if you declare your type in "local types "  then that can be used as impor/export parameter of a private method only . To use the type for public method , define type in "types" tab ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2011 13:08:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-05T13:08:56Z</dc:date>
    <item>
      <title>Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977303#M1604333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use an function module that provides me an internal table which has the reference type of the DDIC object zml_output. Furthermore I call this function module within a global class that should keep the result of the function module into the attribute lt_result, that is declared as private and typed with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lt_result TYPE zml_output.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even the definition of that attribute causes the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"lt_result" is not an internal table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any clue how to type lt_result differently. Actually I would need the following type of typing "TYPE TABLE OF" but that does not exist within the class builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advanced!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 12:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977303#M1604333</guid>
      <dc:creator>former_member232785</dc:creator>
      <dc:date>2011-07-05T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977304#M1604334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the "local types" tab or "types" tab in se24 to declare your types.&lt;/P&gt;&lt;P&gt;Please note that if you declare your type in "local types "  then that can be used as impor/export parameter of a private method only . To use the type for public method , define type in "types" tab ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 13:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977304#M1604334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-05T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977305#M1604335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I defined my type through the "Types" tab. Unfortunatelly I get now the error message that my type lt_result is unknown ("It was not defined neither in the mentioned table nor within a DATA command"). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any further idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 13:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977305#M1604335</guid>
      <dc:creator>former_member232785</dc:creator>
      <dc:date>2011-07-05T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977306#M1604336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could use a table type and not an internal table.&lt;/P&gt;&lt;P&gt;What is the code you would like to write in the global class?&lt;/P&gt;&lt;P&gt;Could you provide it  to me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 14:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977306#M1604336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-05T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977307#M1604337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Konstantinidis ... &lt;/P&gt;&lt;P&gt;Of course I can provide it to you. The code of my methode load_data reads as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
method LOAD_DATA.

    CALL FUNCTION 'ZDATAGET'
    EXPORTING
      iv_dat    = iv_dat
      iv_time1  = iv_time1
      iv_delta  = iv_delta
    TABLES
      et_result = lt_result.

endmethod.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Especially the lt_result causes the mentioned error message &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The compiler seems to expect something "TABLE" like for attribute lt_result. But whatever I tried it doesn't seem to work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 14:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977307#M1604337</guid>
      <dc:creator>former_member232785</dc:creator>
      <dc:date>2011-07-05T14:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977308#M1604338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a test with success.&lt;/P&gt;&lt;P&gt;I went to the attribute  ( lt_result)  and i pressed the arrow  button after the "typing" column  ( the column that you set the TYPE,LIKE,etc) .  i  wrote there a new variable  of table type internal table  ( for exampe tlt_result)  and now i  have defined a new variable  which is an internal table.&lt;/P&gt;&lt;P&gt;An other solution is to change the lt_result in the function module and do it  table type . then you need do nothing.&lt;/P&gt;&lt;P&gt;I hope i help you. if not let me know .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 15:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977308#M1604338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-05T15:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Defining attribute for internal table within class builder?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977309#M1604339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank your very much!&lt;/P&gt;&lt;P&gt;I didn't know that the green arrow can be used to declare instance attributes. Great thing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 15:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/defining-attribute-for-internal-table-within-class-builder/m-p/7977309#M1604339</guid>
      <dc:creator>former_member232785</dc:creator>
      <dc:date>2011-07-05T15:44:30Z</dc:date>
    </item>
  </channel>
</rss>

