<?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: Exporting int table in a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954247#M696802</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;create a type-pools ztypepool..and include the type-pools in the top include..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the type-pools..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of ztypepool_t_table occurs 0,&lt;/P&gt;&lt;P&gt;               matnr type matnr,&lt;/P&gt;&lt;P&gt;             end of ztypepool_t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the ztypepool_t_table in your exporting parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for how to create type-pools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas610/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas610/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&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>Fri, 19 Oct 2007 03:50:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T03:50:32Z</dc:date>
    <item>
      <title>Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954236#M696791</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;How to export the resultant table in function module ? I have  created a itab in my function module and it's getting filled up.I need to export this table ? how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN of itab occurs 0,&lt;/P&gt;&lt;P&gt;          empno type p0001-pernr,&lt;/P&gt;&lt;P&gt;          ename type p0001-ename,&lt;/P&gt;&lt;P&gt;          END of itab.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;I don't want to create structure in se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;jothi.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954236#M696791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954237#M696792</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 don't want to create structure in SE11 then you can't use EXPORTING paramter. Then you can transfer your table under TABLES parameter. Define TABLE of type any in TABLES parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954237#M696792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954238#M696793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a table type in TOP of the function module and Define a table in TABLES Parameter using that Table Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kartavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954238#M696793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954239#M696794</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;I declared the inttable in Tables tab. But i not able to specify its type.i left it blank as the type is declared in the source code of the fn module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is getting filled up correctly inside the code but there is no entries when i export the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Jothi.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954239#M696794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954240#M696795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you import that table, how is it declared in the importing program. Is it field-symbol or the table of same type defination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 01:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954240#M696795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T01:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954241#M696796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used any field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foll is my code in the fun mod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF s_tab,
        pernr LIKE p0001-pernr,
        ename LIKE p0001-ename
       END of s_tab.
DATA : itab like s_tab occur0 with header data.
** Filling the itab here...

In the table tab of the fn mod,
itab - - - - 

Cud u give me a sample pgm with above fields.

Rgds,
Jothi.P

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 02:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954241#M696796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T02:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954242#M696797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make that you declare the parameter in the TABLES section, something like T_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just before the ENDFUNCTION statement pass itab to T_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;T_ITAB[] = itab[].&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 02:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954242#M696797</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-10-19T02:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954243#M696798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks.It's coming.But all fields are merged into single field.&lt;/P&gt;&lt;P&gt;I want to see the data for each field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Jothi.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 02:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954243#M696798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T02:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954244#M696799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jothi ,&lt;/P&gt;&lt;P&gt;This is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just create a similar structure/workarea in your FM as you are trying to get inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now do &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into workarea.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can access workarea and it will be in proper fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 02:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954244#M696799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T02:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954245#M696800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr. Jothi,&lt;/P&gt;&lt;P&gt;This is Venkat.O here. &lt;/P&gt;&lt;P&gt;Just follow this ..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. Function module source code.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;FUNCTION zvenkat_testfun.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(PERNR) TYPE  PERNR-PERNR&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      II_TAB&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  BEGIN OF li_output occurs 0,&lt;/P&gt;&lt;P&gt;      pernr TYPE pa0001-pernr,&lt;/P&gt;&lt;P&gt;      ename TYPE pa0001-ename,&lt;/P&gt;&lt;P&gt;  END OF li_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT pernr ename&lt;/P&gt;&lt;P&gt;    FROM  pa0001&lt;/P&gt;&lt;P&gt;    into table li_output&lt;/P&gt;&lt;P&gt;    WHERE  pernr  = pernr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   ii_tab[] = li_output[].&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2.Sample abap program  with Logical database PNP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zvenkat_notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;        pernr TYPE pa0001-pernr,&lt;/P&gt;&lt;P&gt;        ename TYPE pa0001-ename,&lt;/P&gt;&lt;P&gt;      END OF i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZVENKAT_TESTFUN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      pernr = pernr-pernr&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    ii_tab        = i_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at i_tab.&lt;/P&gt;&lt;P&gt;   write:/ i_tab-pernr,&lt;/P&gt;&lt;P&gt;           i_tab-ename.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;It is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way How are you .&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.O&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 02:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954245#M696800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T02:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954246#M696801</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;Fine!Hw r u?&lt;/P&gt;&lt;P&gt;Pl see my above post.I need the output in a table format (now it all merged to a single field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Jothi.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 03:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954246#M696801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T03:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting int table in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954247#M696802</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;create a type-pools ztypepool..and include the type-pools in the top include..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the type-pools..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of ztypepool_t_table occurs 0,&lt;/P&gt;&lt;P&gt;               matnr type matnr,&lt;/P&gt;&lt;P&gt;             end of ztypepool_t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the ztypepool_t_table in your exporting parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for how to create type-pools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas610/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas610/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&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>Fri, 19 Oct 2007 03:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-int-table-in-a-function-module/m-p/2954247#M696802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T03:50:32Z</dc:date>
    </item>
  </channel>
</rss>

