<?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: Question on dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381528#M1544216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this might be a data issue not an ABAP one. To ensure please go to se37 and test this FM giving same values for input parameters. You shall see then if the result is as expected or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 13:26:11 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-10-11T13:26:11Z</dc:date>
    <item>
      <title>Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381522#M1544210</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 have to utilise the function module (FM) 'RSDRI_INFOPROV_READ'. The kind of structure for which the data to be fetched from infoprovider is generated dynamically. &lt;/P&gt;&lt;P&gt;In the FM lets assume,&lt;/P&gt;&lt;P&gt;Import parameters are;&lt;/P&gt;&lt;P&gt;g_th_sfc - Characteristics That Are to Be Returned&lt;/P&gt;&lt;P&gt;g_th_sfk - Key Figures That Are to Be Returned&lt;/P&gt;&lt;P&gt;g_t_range - Selection Conditions Connected with AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in export parameters;&lt;/P&gt;&lt;P&gt;g_t_data - Internal Table with Query Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i can build/assign the rows to the import parameters dynamically through a look up on certain transparent table, but g_t_data needs to have a predefined structure declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, to do above, the concept of dynamic internal table exists, but I am not familiar with coding/syntax conventions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 04:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381522#M1544210</guid>
      <dc:creator>PankajVPatil</dc:creator>
      <dc:date>2010-10-11T04:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381523#M1544211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a code sample, maybe it will help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:       w_structref         TYPE REF TO cl_abap_structdescr,
      it_comptab          TYPE abap_compdescr_tab,
      w_comptab           TYPE abap_compdescr. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN (g_t_data) TO &amp;lt;fs_line&amp;gt;.
  w_structref ?= cl_abap_structdescr=&amp;gt;describe_by_data( &amp;lt;fs_line&amp;gt; ).
  it_comptab = w_structref-&amp;gt;components.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381523#M1544211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381524#M1544212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your exporting parameter simply should be either of type &lt;STRONG&gt;ANY TABLE&lt;/STRONG&gt; (so you can assign any TABLE back to it) or should be any data reference ( type &lt;STRONG&gt;REF TO DATA&lt;/STRONG&gt; ).  Please refer &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1494479"&gt;&lt;/A&gt; for the second approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you migh be interested with &lt;STRONG&gt;RTTS&lt;/STRONG&gt; approach as an alternative to two above. /people/marcin.pciak/blog/2010/09/09/do-you-really-know-everything-about-typing--part-2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Oct 11, 2010 9:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381524#M1544212</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T07:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381525#M1544213</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;I have created a certain field catalog with dynamic internal table. Following is the code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = it_fieldcat
    IMPORTING
      ep_table        = new_table.

  ASSIGN new_table-&amp;gt;* TO &amp;lt;l_table&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to populate the &amp;lt;l_table&amp;gt; through function module RSDRI_INFOPROV_READ.&lt;/P&gt;&lt;P&gt;How do I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 13:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381525#M1544213</guid>
      <dc:creator>PankajVPatil</dc:creator>
      <dc:date>2010-10-11T13:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381526#M1544214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is the problem then? You can pass &amp;lt;l_table&amp;gt; to parameter &lt;EM&gt;E_T_DATA&lt;/EM&gt; which expects any standard table (without particular structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 13:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381526#M1544214</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381527#M1544215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did the same thing. Please see below the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'RSDRI_INFOPROV_READ'
      EXPORTING
        i_infoprov             = l_infoprov
        i_th_sfc               = g_th_sfc
        i_th_sfk               = g_th_sfk
        i_t_range              = g_t_range
        i_reference_date       = sy-datum
        i_packagesize          = 1000
      IMPORTING
        e_t_data               = &amp;lt;l_table&amp;gt;
        e_end_of_data          = g_end_of_data
      CHANGING
        c_first_call           = g_first_call
      EXCEPTIONS
        illegal_input          = 1
        illegal_input_sfc      = 2
        illegal_input_sfk      = 3
        illegal_input_range    = 4
        illegal_input_tablesel = 5
        no_authorization       = 6
        illegal_download       = 8
        illegal_tablename      = 9
        OTHERS                 = 11.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though i have the data in infoprovider i do not get data in &amp;amp;lt;l_table&amp;amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 13:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381527#M1544215</guid>
      <dc:creator>PankajVPatil</dc:creator>
      <dc:date>2010-10-11T13:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381528#M1544216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this might be a data issue not an ABAP one. To ensure please go to se37 and test this FM giving same values for input parameters. You shall see then if the result is as expected or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 13:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381528#M1544216</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T13:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381529#M1544217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try doing it through SE37, i get the information pop up of "Error generating the test frame".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when I debug all the input parameters they are restricted to correct values, but the sy-subrc for the function module is set to 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 14:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381529#M1544217</guid>
      <dc:creator>PankajVPatil</dc:creator>
      <dc:date>2010-10-11T14:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381530#M1544218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some records in the infoprovider that follow data from g_t_range restrictions. But the data some how disappears from table &amp;lt;l_table&amp;gt;. &lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 07:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381530#M1544218</guid>
      <dc:creator>PankajVPatil</dc:creator>
      <dc:date>2010-10-12T07:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381531#M1544219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gave description instead of technical name in the ALIAS component of g_th_sfc internal table.&lt;/P&gt;&lt;P&gt;It is working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 15:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-dynamic-internal-table/m-p/7381531#M1544219</guid>
      <dc:creator>PankajVPatil</dc:creator>
      <dc:date>2010-10-12T15:50:22Z</dc:date>
    </item>
  </channel>
</rss>

