<?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: Dynamic ITAB as exporting parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534233#M1071430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i understood very well, but it doesn't solve my problem... maybe it's because of my english...&lt;/P&gt;&lt;P&gt;ok, i try once more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote FM with importing parameters YT_TAB1, YT_TAB2, YT_TAB3, YT_TAB4. These tables are containing some datas to process. All these tables having same structure. Than i have table YT_GROUP_BY, this table is also importing and contains atributes on which I will collect all records in YT_TAB1 ... 4. On table YT_GROUP_BY depands, which type of structure will be my output table. And this dynamically created table i know only AFTER executing of this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is interface of my FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION y0bi_cm_overview_dynamic.
*"----------------------------------------------------------------------
*"*"Lokální rozhraní:
*"  IMPORTING
*"     REFERENCE(XT_S600) TYPE  Y0BI_S600_TAB OPTIONAL
*"     REFERENCE(XT_S601) TYPE  Y0BI_S601_TAB OPTIONAL
*"     REFERENCE(XT_S610) TYPE  Y0BI_S610_TAB OPTIONAL
*"     REFERENCE(XT_S611) TYPE  Y0BI_S611_TAB OPTIONAL
*"     REFERENCE(XT_GROUP_BY_TABLE) TYPE  Y0BI_GROUP_BY_TAB
*"  EXPORTING
*"     REFERENCE(YT_TABLE) TYPE  TABLE
*"  TABLES
*"      T_OUTPUT_TABLE
*"  EXCEPTIONS
*"      NO_INPUT_DATA&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, i can make table parameter without data type, but still, when i call this FM, i have to know type of this T_OUTPUT. Thats the reason, why i can't do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 14:47:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-06T14:47:04Z</dc:date>
    <item>
      <title>Dynamic ITAB as exporting parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534229#M1071426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I have this problem. I'm calling my FM, which returns some table with datas. But this table is dynamically created in my FM. That means, i don't know a structure of this table before i call this FM. Is there some way, how to return this data to a program? If not, is it possible to do this with methods?&lt;/P&gt;&lt;P&gt;Hope, you understand, what i want &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanx for ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 14:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534229#M1071426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ITAB as exporting parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534230#M1071427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, just define the tables PARAMETER of your function module as generic, like in the function GUI_DOWNLOAD. &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>Mon, 06 Oct 2008 14:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534230#M1071427</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-10-06T14:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ITAB as exporting parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534231#M1071428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that's not it, because the type of table is not known before i call this FM. The table is dynamicaly created in it. So i need to return something like pointer on this table. I think, this is not possible in FM, but in classes/methods maybe yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 14:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534231#M1071428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ITAB as exporting parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534232#M1071429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you understand what Rich suggested..? you can define a table parameter with out referring to any type(unknown type). so that it can hold any thing in the runtime. the best examples are GUI_UPLOAD and GUI_DOWNLOAD functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 14:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534232#M1071429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T14:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ITAB as exporting parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534233#M1071430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i understood very well, but it doesn't solve my problem... maybe it's because of my english...&lt;/P&gt;&lt;P&gt;ok, i try once more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote FM with importing parameters YT_TAB1, YT_TAB2, YT_TAB3, YT_TAB4. These tables are containing some datas to process. All these tables having same structure. Than i have table YT_GROUP_BY, this table is also importing and contains atributes on which I will collect all records in YT_TAB1 ... 4. On table YT_GROUP_BY depands, which type of structure will be my output table. And this dynamically created table i know only AFTER executing of this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is interface of my FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION y0bi_cm_overview_dynamic.
*"----------------------------------------------------------------------
*"*"Lokální rozhraní:
*"  IMPORTING
*"     REFERENCE(XT_S600) TYPE  Y0BI_S600_TAB OPTIONAL
*"     REFERENCE(XT_S601) TYPE  Y0BI_S601_TAB OPTIONAL
*"     REFERENCE(XT_S610) TYPE  Y0BI_S610_TAB OPTIONAL
*"     REFERENCE(XT_S611) TYPE  Y0BI_S611_TAB OPTIONAL
*"     REFERENCE(XT_GROUP_BY_TABLE) TYPE  Y0BI_GROUP_BY_TAB
*"  EXPORTING
*"     REFERENCE(YT_TABLE) TYPE  TABLE
*"  TABLES
*"      T_OUTPUT_TABLE
*"  EXCEPTIONS
*"      NO_INPUT_DATA&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, i can make table parameter without data type, but still, when i call this FM, i have to know type of this T_OUTPUT. Thats the reason, why i can't do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 14:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534233#M1071430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ITAB as exporting parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534234#M1071431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Philip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For local function modules (i.e. not RFC-enabled) the approach suggested by Rich will work.&lt;/P&gt;&lt;P&gt;The interface of your function module can have an untyped TABLES parameter yet its structure is determined when you do the function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you need a fully dynamic approach which should work for RFC-enabled fm's as well you may have a look at thread &lt;SPAN __jive_macro_name="thread" id="1067568"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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, 06 Oct 2008 14:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-itab-as-exporting-parameter/m-p/4534234#M1071431</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-10-06T14:47:24Z</dc:date>
    </item>
  </channel>
</rss>

