<?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 export an internal table???? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207930#M1522234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The exporting is in transaction SE24, so the problem is that the data I pass, itab_one with type Dictionary tabla don't let me return all the fields....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know, but is probably I've to define a structure of that table for using it?&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 12:13:53 GMT</pubDate>
    <dc:creator>former_member384574</dc:creator>
    <dc:date>2010-08-17T12:13:53Z</dc:date>
    <item>
      <title>How to export an internal table????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207928#M1522232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a method X in my class Y, my method X exports a table (which is defined in dictionary) with a lot of fields. In the code part, I've an internal table wich must be the table to be exported, but when I'm trying to returned it, I've a message that say "Itab_X is not an internal table OCCURS n", how can I export that itab?&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 11:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207928#M1522232</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2010-08-17T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an internal table????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207929#M1522233</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;Use export to shared buffer to export internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
EXPORT ITAB TO  SHARED BUFFER INDX(ST) ID 'TEST1'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To import,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IMPORT ITAB FROM  SHARED BUFFER INDX(ST) ID 'TEST1'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Tue, 17 Aug 2010 12:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207929#M1522233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T12:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an internal table????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207930#M1522234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The exporting is in transaction SE24, so the problem is that the data I pass, itab_one with type Dictionary tabla don't let me return all the fields....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know, but is probably I've to define a structure of that table for using it?&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 12:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207930#M1522234</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2010-08-17T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an internal table????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207931#M1522235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, you have a method wherein you extract some data from DB table and want to return this table content to the method's caller. Is that right? If so you type your exporting parameter must be of TABLE TYPE defined either in DDIC or you in local class typing area. In the latter case you can use this type only within current class pool, so typing with DDIC type is a better choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically you should follow this logic&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
class lcl_test definition.
   "exporting parameter typed with DDIC table type FLIGHTTAB 
  methods: get_db_table_data exporting et_tab type FLIGHTTAB. 
endlcass.

class lcl_test implementation.
  method get_dd_table_data.
      select * from sflight into table ET_TAB ....
      "now ET_TAB stores desired entries and can return data to its caller in form of a table
  endmethod.
endclass.


"using the method
data itab_flights type flighttab.

call methods lo_test-&amp;gt;get_db_table_data( importing et_tab = itab_flights ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's it. It's all about correct parameter typing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 12:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207931#M1522235</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-08-17T12:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an internal table????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207932#M1522236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved! I have to create a type of line and then generate the table!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rebeca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 12:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-export-an-internal-table/m-p/7207932#M1522236</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2010-08-17T12:33:56Z</dc:date>
    </item>
  </channel>
</rss>

