<?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 export table parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012661#M1607879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using an RFC FM it would be different 'cause you always have to type all the parameters.&lt;/P&gt;&lt;P&gt;In case it's not an RFC, of course you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION ZJMOTERO.
*"----------------------------------------------------------------------
*"*"Interfase local
*"  IMPORTING
*"     REFERENCE(I_RUTA) TYPE  ZJMOTERO3
*"  TABLES
*"      TABLE
*"----------------------------------------------------------------------

field-symbols: &amp;lt;fs&amp;gt; type table.

data: a type ref to data.
data: tabla type table of pa0001.

select * into table tabla from pa0001 where pernr eq 1.
assign tabla to &amp;lt;fS&amp;gt;.

table[] = &amp;lt;fs&amp;gt;[].

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 09:01:16 GMT</pubDate>
    <dc:creator>former_member209703</dc:creator>
    <dc:date>2011-08-01T09:01:16Z</dc:date>
    <item>
      <title>Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012656#M1607874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently im having this issue whereby i need a dynamic export table parameter in the function module. this is because there is a dynamic selection from the database and then i do not know what is the reference type for the exporting table. how to define a dynamic reference type. btw im developing on 4.6C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 08:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012656#M1607874</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-08-01T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012657#M1607875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you just define the table parameter in the FM, with no explicit type assigned to it? &lt;/P&gt;&lt;P&gt;Then you can use a Field-Symbol to assign the dynamic table to the export parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 08:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012657#M1607875</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-01T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012658#M1607876</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;You should take a cue from the widely used FM 'GUI_DOWNLOAD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 08:45:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012658#M1607876</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-01T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012659#M1607877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cant assign the field symbol to the export table because export table is not a field symbol. and also is it possible to do this in a RFC function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 08:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012659#M1607877</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-08-01T08:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012660#M1607878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Suhas Saha is it possible to use the logic from gui_download for RFC Function Module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 08:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012660#M1607878</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-08-01T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012661#M1607879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using an RFC FM it would be different 'cause you always have to type all the parameters.&lt;/P&gt;&lt;P&gt;In case it's not an RFC, of course you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION ZJMOTERO.
*"----------------------------------------------------------------------
*"*"Interfase local
*"  IMPORTING
*"     REFERENCE(I_RUTA) TYPE  ZJMOTERO3
*"  TABLES
*"      TABLE
*"----------------------------------------------------------------------

field-symbols: &amp;lt;fs&amp;gt; type table.

data: a type ref to data.
data: tabla type table of pa0001.

select * into table tabla from pa0001 where pernr eq 1.
assign tabla to &amp;lt;fS&amp;gt;.

table[] = &amp;lt;fs&amp;gt;[].

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 09:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012661#M1607879</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-01T09:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012662#M1607880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Jose Maria Otero	 what do you actually mean? right now im doing a RFC function module meaning it cant be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 09:09:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012662#M1607880</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-08-01T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012663#M1607881</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;As already mentioned you can't use generic types in RFC modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some standard SAP FMs using similar logic as your's, e.g., RFC_READ_TABLE. You can leverage its logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 09:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012663#M1607881</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-01T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic export table parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012664#M1607882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right.&lt;/P&gt;&lt;P&gt;RFC's don't allow generic types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 11:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-export-table-parameter/m-p/8012664#M1607882</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-01T11:07:39Z</dc:date>
    </item>
  </channel>
</rss>

