<?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 FM exporting table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582237#M262609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to export a table from a FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best method? Define the table under the EXPORT screen or TABLES screen? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the code in the FM be, if my internal table is named it_tableTOexport?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 15:14:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T15:14:20Z</dc:date>
    <item>
      <title>FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582237#M262609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to export a table from a FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best method? Define the table under the EXPORT screen or TABLES screen? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the code in the FM be, if my internal table is named it_tableTOexport?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582237#M262609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582238#M262610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rune,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always it's better to define tables in tables only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582238#M262610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582239#M262611</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;If it is table then you need to export it in tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582239#M262611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582240#M262612</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;  If you have a table type created in the DDIC you can use the EXPORTING parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you have structure only then you can use the TABLES parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582240#M262612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582241#M262613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say EXPORT, hope you mean download to pc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best is to pass the table as a TABLE parameter and the code can be to use the FM Gui_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function 'Gui_download'&lt;/P&gt;&lt;P&gt; exporting &lt;/P&gt;&lt;P&gt;   filename = p_file&lt;/P&gt;&lt;P&gt;   filetype = 'ASC'&lt;/P&gt;&lt;P&gt; tables&lt;/P&gt;&lt;P&gt;   data_table = it_tabletoexport.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582241#M262613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582242#M262614</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;Under TABLES only. Use the option IMPORT, CHANGING and EXPORT only for variables or strucrures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582242#M262614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582243#M262615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rune&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way to differentiate between semantically different TABLES parameters is by using naming convention. I use the following conventions:&lt;/P&gt;&lt;P&gt;(1) Importing TABLES parameter (i.e. this is only input for the function module, the itab entries are not changed) = &amp;lt;b&amp;gt;IT_&amp;lt;itab name&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;(2) Exporting TABLES parameters (i.e. this is only output of the function module) = &amp;lt;b&amp;gt;ET_&amp;lt;itab name&amp;gt;&amp;lt;/b&amp;gt; [In addition, one of the first line of coding in the function module is: REFRESH: et_&amp;lt;itab name&amp;gt;]&lt;/P&gt;&lt;P&gt;(3) Changing TABLES parameters (i.e. this is input and output at the same time) = &amp;lt;b&amp;gt;XT_&amp;lt;itab name&amp;gt;&amp;lt;/b&amp;gt; [usually there will be no REFRESH statement using this TABLES parameter]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the differentiation between importing, exporting and changing is purely &amp;lt;b&amp;gt;semantic&amp;lt;/b&amp;gt; because technically all TABLES parameters are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582243#M262615</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-18T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582244#M262616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is in my FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(T_RESULT_EXPORT) LIKE  ZT_RESULT STRUCTURE&lt;/P&gt;&lt;P&gt;*"        ZTKG_RESULT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the parameter name T_RESULT_EXPORT in the Export section. How can I fill the table with data? I get an compiler error saying "T_RESULT_EXPORT is not an internal table - the OCCURS n specification is missing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to do is filling my export table. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 06:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582244#M262616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: FM exporting table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582245#M262617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The exporting parameter cannot be filled like an internal table unless it points to a table type. Which is to say, the structure ZT_RESULT STRUCTURE should be a table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, the error occurs because ZT_RESULT STRUCTURE is a structure and hence, T_RESULT_EXPORT is also a structure and not an itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 solutions: &lt;/P&gt;&lt;P&gt;1. Create T_RESULT_EXPORT under tables instead of exporting&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. Creat ZT_RESULT STRUCTURE as a table type instead of structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 11:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-exporting-table/m-p/1582245#M262617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T11:22:55Z</dc:date>
    </item>
  </channel>
</rss>

