<?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 internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297002#M157147</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;Please go through the link below. It will surely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sapfans.com/forums/viewtopic.php?p=107594"&amp;gt;http://www.sapfans.com/forums/viewtopic.php?p=107594&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please makr helpful answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2006 11:16:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-26T11:16:30Z</dc:date>
    <item>
      <title>Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1296998#M157143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've got same fields eg. kunnr, erdat and internal table with column names 1001,1002,1003 etc. I would like to make internal table from above values like following:&lt;/P&gt;&lt;P&gt;kunnr,erdat,1001,1002,1003,...&lt;/P&gt;&lt;P&gt;Some of fileds will be from SELECT statement others must be calculated and filled in program. Have anybody idea how to make it? Please send source code if possible.&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>Sun, 04 Feb 2024 06:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1296998#M157143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-04T06:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1296999#M157144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu can use this syntax:&lt;/P&gt;&lt;P&gt;CREATE DATA &amp;lt;REF&amp;gt; TYPE &amp;lt;TYPE TABLE&amp;gt; TABLE OF &amp;lt;TYPE LINE&amp;gt;&lt;/P&gt;&lt;P&gt;[WITH [UNIQUE|NON-UNIQUE] keydef] [INITIAL SIZE n]. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 10:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1296999#M157144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T10:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297000#M157145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what is dynamic here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB ASSIGNING &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Process and calculate&lt;/P&gt;&lt;P&gt; &amp;lt;FS&amp;gt;-1001 =  value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these fields are dynamic, take a look at weblog&lt;/P&gt;&lt;P&gt;/people/ravikumar.allampallam/blog/2005/05/31/expand-the-list-of-columns-in-a-report-dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should update the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravikumar Allampallam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 10:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297000#M157145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T10:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297001#M157146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1068724"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 10:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297001#M157146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T10:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297002#M157147</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;Please go through the link below. It will surely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sapfans.com/forums/viewtopic.php?p=107594"&amp;gt;http://www.sapfans.com/forums/viewtopic.php?p=107594&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please makr helpful answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 11:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297002#M157147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297003#M157148</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;&lt;/P&gt;&lt;P&gt;1.  I've got same fields eg. kunnr, erdat and internal table with column names 1001,1002,1003 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For this purpose,&lt;/P&gt;&lt;P&gt;  in my program,&lt;/P&gt;&lt;P&gt;  there is an INDEPENDENT FORM &lt;/P&gt;&lt;P&gt;  whose inputs are FIELD LIST&lt;/P&gt;&lt;P&gt;  and from those, it consructs dynamic table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Here is the program.&lt;/P&gt;&lt;P&gt;the dynamic table name will be &lt;/P&gt;&lt;P&gt;&amp;lt;DYNTABLE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. U can use this program (FORM in this program)&lt;/P&gt;&lt;P&gt;to generate any kind of internal table&lt;/P&gt;&lt;P&gt;by specifying some inputs (ie. field list)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; COMPULSORY&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;dyntable&amp;gt; TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;dynline&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA: lt TYPE lvc_t_fcat.&lt;/P&gt;&lt;P&gt;DATA: ls TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fld&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA : fldname(50) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;PARAMETERS : infty(4) TYPE c OBLIGATORY.&lt;/P&gt;&lt;P&gt;DATA : iname LIKE dd02l-tabname.&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;HR originaltext="--------------" /&gt;&lt;P&gt; GET INFO&lt;/P&gt;&lt;P&gt;CONCATENATE 'P' infty INTO iname.&lt;/P&gt;&lt;P&gt;DATA : ddfields LIKE ddfield OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DD_NAMETAB_TO_DDFIELDS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;tabname = iname&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;ddfields = ddfields.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; CONSTRUCT FIELD LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ddfields.&lt;/P&gt;&lt;P&gt;ls-fieldname = ddfields-fieldname.&lt;/P&gt;&lt;P&gt;APPEND ls TO lt.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; PERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM mydyntable USING lt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INDEPENDENT FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM mydyntable USING lt TYPE lvc_t_fcat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Create Dyn Table From FC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_data&amp;gt; TYPE REF TO data.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_2&amp;gt; TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;DATA: lt_data TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN lt_data TO &amp;lt;fs_data&amp;gt;.&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 = lt&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ep_table = &amp;lt;fs_data&amp;gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;generate_subpool_dir_full = 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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; Assign Dyn Table To Field Sumbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN &amp;lt;fs_data&amp;gt;-&amp;gt;* TO &amp;lt;fs_1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN &amp;lt;fs_1&amp;gt; TO &amp;lt;fs_2&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN &amp;lt;fs_1&amp;gt; TO &amp;lt;dyntable&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "MYDYNTABLE&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 11:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297003#M157148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T11:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297004#M157149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you extend your answer by any example. Dynamic means that my dynamic internal table structure ITAB should be build from other internal table values CTAB as columns. CTAB may have field called MATNR and values 1001,1002,1003,... so my ITAB structure should be:&lt;/P&gt;&lt;P&gt;FIELD1, FIELD2,...,1001,1002,1003,....&lt;/P&gt;&lt;P&gt;It can be simple in theory but in practise I need fill first few fields from SELECT and other fields in a lopp.&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>Wed, 26 Apr 2006 11:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297004#M157149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T11:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297005#M157150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are aware of creating the field catalog manually. So, create a field catalog of type LVC_T_FCAT by appending each field FIELD1, FIELD2, 1001, 1002 .... by giving the other details like DATA TYPE etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the field catalog, use the method CREATE_DYNAMIC_TABLE as shown in the blog and the output will be a internal table with the fields you have appended to the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that appending data to that field will be tricky. Look at ASSIGN COMPONENT xxx OF STRUCTURE .... USING which you will be to update data. If you can clearly tell me the strcuture of the table where the data is and explain in more detail, I can try giving you a psuedo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 11:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297005#M157150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297006#M157151</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;  Please check the below code. In this I am getting&lt;/P&gt;&lt;P&gt;  fields from some table and taking then as columns &lt;/P&gt;&lt;P&gt;  for other table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZSIRI_TABLES1 .

* Selection screen
PARAMETER P_TAB LIKE DD03L-TABNAME.


DATA : BEGIN OF I_FIELDS OCCURS 0,
         NAME LIKE DD03L-FIELDNAME,
         POS  LIKE DD03L-POSITION,
         LEN  LIKE DD03L-INTLEN,
         DATATYPE LIKE DD03L-DATATYPE,
       END OF I_FIELDS.

FIELD-SYMBOLS : &amp;lt;F_FS&amp;gt; TYPE TABLE,
&amp;lt;F_FS1&amp;gt; TYPE TABLE,
&amp;lt;F_FS2&amp;gt; TYPE ANY,
&amp;lt;F_FS3&amp;gt; TYPE TABLE,
&amp;lt;F_FS4&amp;gt; TYPE ANY.

DATA: D_REF TYPE REF TO DATA ,
D_REF2 TYPE REF TO DATA ,
D_REF3 TYPE REF TO DATA,
I_ALV_CAT TYPE TABLE OF LVC_S_FCAT ,
LS_ALV_CAT LIKE LINE OF I_ALV_CAT .

* get the fields of the table
SELECT DISTINCT FIELDNAME POSITION INTLEN
  FROM DD03L
  INTO TABLE I_FIELDS
  WHERE TABNAME = P_TAB.

SORT I_FIELDS BY POS.

LOOP AT I_FIELDS.

  LS_ALV_CAT-FIELDNAME = I_FIELDS-NAME.
  LS_ALV_CAT-INTTYPE    = I_FIELDS-DATATYPE.
  LS_ALV_CAT-OUTPUTLEN = I_FIELDS-LEN.
  LS_ALV_CAT-SELTEXT = I_FIELDS-NAME.

  APPEND LS_ALV_CAT TO I_ALV_CAT.

ENDLOOP.

CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE
EXPORTING IT_FIELDCATALOG = I_ALV_CAT
IMPORTING EP_TABLE = D_REF .
ASSIGN D_REF-&amp;gt;* TO &amp;lt;F_FS&amp;gt;.

* get data from the table and insert into simultaneous rows.
SELECT * FROM (P_TAB) INTO TABLE &amp;lt;F_FS&amp;gt;.
*    perform get_fields.
*  endselect.

IF SY-SUBRC = 0.
ENDIF.
*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.Pls let me know if you need more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2006 11:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/1297006#M157151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-26T11:56:08Z</dc:date>
    </item>
  </channel>
</rss>

