<?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 table for RFC function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456312#M215675</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;Check these FM 's: RFC_READ_TABLE&lt;/P&gt;&lt;P&gt;                  RFC_GET_TABLE_ENTRIES&lt;/P&gt;&lt;P&gt;i think these will work for your requirement.&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;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2006 08:38:23 GMT</pubDate>
    <dc:creator>Laxmana_Appana_</dc:creator>
    <dc:date>2006-07-20T08:38:23Z</dc:date>
    <item>
      <title>Dynamic table for RFC function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456310#M215673</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;Currently I am building a function group that retrieves information from a local database and a remote database. For the remote database I call a RFC function with the DESTINATION parameter. Now I would like to use a ANY TABLE for the TABLES parameter since the structure of that parameter does not exist in our system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FIELD-SYMBOLS: &amp;lt;lit_table&amp;gt; TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_ZGETAGRDET'&lt;/P&gt;&lt;P&gt;      DESTINATION 'XYZCLNT160'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        iv_datum       = pa_date&lt;/P&gt;&lt;P&gt;        iv_gpart       = '1'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        et_table       = &amp;lt;lit_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives the error that its not ASSIGNED yet, is it even possible to call a function like this? Or do I need to copy the structure van the remote system to the local system and declare it staticly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is welcome and I'll reward point ofcourse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456310#M215673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table for RFC function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456311#M215674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt; If your FM is RFC enabled you can't declare a generic type. that is the problem when you try to use the FM and try to pass a dynamic table name to get the data from the remote system.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456311#M215674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table for RFC function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456312#M215675</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;Check these FM 's: RFC_READ_TABLE&lt;/P&gt;&lt;P&gt;                  RFC_GET_TABLE_ENTRIES&lt;/P&gt;&lt;P&gt;i think these will work for your requirement.&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;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 08:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456312#M215675</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-20T08:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table for RFC function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456313#M215676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FIELD-SYMBOLS: &amp;lt;lwa_tabname&amp;gt;     TYPE rfc_fields,&lt;/P&gt;&lt;P&gt;                   &amp;lt;lit_aanstelling&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA: lit_nametab  TYPE TABLE OF rfc_fields,&lt;/P&gt;&lt;P&gt;          lob_data     TYPE REF TO data,&lt;/P&gt;&lt;P&gt;          lit_fieldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;          lwa_fieldcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'RFC_GET_STRUCTURE_DEFINITION'&lt;/P&gt;&lt;P&gt;      DESTINATION 'N01CLNT160'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        tabname          = 'ZCS_INTERM_AGR_DET_AANST'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        fields           = lit_nametab&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        table_not_active = 1&lt;/P&gt;&lt;P&gt;        OTHERS           = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT lit_nametab ASSIGNING &amp;lt;lwa_tabname&amp;gt;.&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;lwa_tabname&amp;gt;-fieldname TO lwa_fieldcat-fieldname.&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;lwa_tabname&amp;gt;-exid      TO lwa_fieldcat-inttype.&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;lwa_tabname&amp;gt;-intlength TO lwa_fieldcat-outputlen.&lt;/P&gt;&lt;P&gt;      APPEND lwa_fieldcat TO lit_fieldcat.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog = lit_fieldcat&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ep_table        = lob_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN lob_data-&amp;gt;* TO &amp;lt;lit_aanstelling&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't seem efficient copy data from table1 to table2 but it works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 12:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-for-rfc-function/m-p/1456313#M215676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T12:47:02Z</dc:date>
    </item>
  </channel>
</rss>

