<?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 Create object/structure like dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060602#M91794</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;We have created dynamic internal table with some fields.&lt;/P&gt;&lt;P&gt;for the above how to create structure or internal table like dynamic internal table structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: internal table itab1 ( with header line) have 5 fields.&lt;/P&gt;&lt;P&gt;Based on some of the conditions in layout of the report. &lt;/P&gt;&lt;P&gt;we have to create dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;FS&amp;gt; type standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are able to create dynamic internal table with 3 fields&lt;/P&gt;&lt;P&gt;with assignment &amp;lt;fs&amp;gt; = itab1[]&lt;/P&gt;&lt;P&gt;the columns are not appearing but data appearing in next column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve this one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2005 14:05:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-20T14:05:39Z</dc:date>
    <item>
      <title>Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060602#M91794</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;We have created dynamic internal table with some fields.&lt;/P&gt;&lt;P&gt;for the above how to create structure or internal table like dynamic internal table structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: internal table itab1 ( with header line) have 5 fields.&lt;/P&gt;&lt;P&gt;Based on some of the conditions in layout of the report. &lt;/P&gt;&lt;P&gt;we have to create dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;FS&amp;gt; type standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are able to create dynamic internal table with 3 fields&lt;/P&gt;&lt;P&gt;with assignment &amp;lt;fs&amp;gt; = itab1[]&lt;/P&gt;&lt;P&gt;the columns are not appearing but data appearing in next column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve this one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 14:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060602#M91794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T14:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060603#M91795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the weblog posted by - Subramanian Venkateswaran&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help you alot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vijay Raheja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 14:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060603#M91795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T14:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060604#M91796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, you want to create a dynamic internal table just like another dynamic internal table.  Is this correct?  If so, then you would just create two instances of the same dynamic internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

field-symbols: &amp;lt;dyn_table&amp;gt; type standard table,
               &amp;lt;dyn_table2&amp;gt; type standard table,
               &amp;lt;dyn_wa&amp;gt;
               &amp;lt;dyn_wa2&amp;gt;.

data: alv_fldcat type slis_t_fieldcat_alv,
      it_fldcat type lvc_t_fcat.

  data: index(3) type c.

  data: new_table type ref to data,
        new_table2 type ref to data,
        new_line  type ref to data,
        new_line2 type ref to data,
        wa_it_fldcat type lvc_s_fcat.

* Create fields
  clear index.
  do 10 times.
    index = sy-index.
    clear wa_it_fldcat.
    concatenate 'Field' index into
             wa_it_fldcat-fieldname .
    condense  wa_it_fldcat-fieldname no-gaps.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 5.
    append wa_it_fldcat to it_fldcat .
  enddo.

* Create dynamic internal table and assign to FS
  call method cl_alv_table_create=&amp;gt;create_dynamic_table
               exporting
                  it_fieldcatalog = it_fldcat
               importing
                  ep_table        = new_table.

  call method cl_alv_table_create=&amp;gt;create_dynamic_table
               exporting
                  it_fieldcatalog = it_fldcat
               importing
                  ep_table        = new_table2.


  assign new_table-&amp;gt;* to &amp;lt;dyn_table&amp;gt;.
  assign new_table2-&amp;gt;* to &amp;lt;dyn_table2&amp;gt;.

* Create dynamic work area and assign to FS
  create data new_line like line of &amp;lt;dyn_table&amp;gt;.
  assign new_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;.

  create data new_line2 like line of &amp;lt;dyn_table2&amp;gt;.
  assign new_line2-&amp;gt;* to &amp;lt;dyn_wa2&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&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>Thu, 20 Oct 2005 14:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060604#M91796</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-20T14:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060605#M91797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;  I hope this code works...&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  yup_alv_datbase                         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-Display Database table contents in ALV Grid Format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;********************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This report displays data from SAP tables, views (like SE16)        *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM : REUSE_ALV_GRID_DISPLAY                                         *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;  dd02l,                               " SAP tables&lt;/P&gt;&lt;P&gt;  dd03l.                               " Table Fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.                      " ALV Global Types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen :&lt;/P&gt;&lt;P&gt;begin of line, comment 1(35) v_1 for field p_table.         "#EC NEEDED&lt;/P&gt;&lt;P&gt;parameters p_table like dd03l-tabname obligatory memory id dtb.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen :&lt;/P&gt;&lt;P&gt;begin of line, comment 1(35) v_2 for field p_max.           "#EC NEEDED&lt;/P&gt;&lt;P&gt;parameters p_max(2) type n default '20' obligatory.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single * from dd02l where tabname  = p_table&lt;/P&gt;&lt;P&gt;                               and as4local = 'A'&lt;/P&gt;&lt;P&gt;                               and as4vers  = '0000'.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Table &amp;amp; is not active in the Dictionary&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    message e402(mo) with p_table.&lt;/P&gt;&lt;P&gt;  elseif dd02l-tabclass = 'INTTAB'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  &amp;amp; is a structure, not a table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    message e403(mo) with p_table.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_1 = 'Table'.&lt;/P&gt;&lt;P&gt;  v_2 = 'Maximum of records'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform f_display_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Form  F_DISPLAY_DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form f_display_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Macro definition&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  define m_sort.&lt;/P&gt;&lt;P&gt;    add 1 to ls_sort-spos.&lt;/P&gt;&lt;P&gt;    ls_sort-fieldname = &amp;amp;1.&lt;/P&gt;&lt;P&gt;    ls_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;    append ls_sort to lt_sort.&lt;/P&gt;&lt;P&gt;  end-of-definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;    l_long type i,&lt;/P&gt;&lt;P&gt;    lp_struct   type ref to data,&lt;/P&gt;&lt;P&gt;    lp_table    type ref to data,      " Pointer to dynamic table&lt;/P&gt;&lt;P&gt;    of_sdescr   type ref to cl_abap_structdescr,&lt;/P&gt;&lt;P&gt;    ls_lvc_cat  type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;    lt_lvc_cat  type lvc_t_fcat,       " Field catalog&lt;/P&gt;&lt;P&gt;    ls_fieldcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;    lt_fieldcat type slis_t_fieldcat_alv,  " Field catalog&lt;/P&gt;&lt;P&gt;    ls_layout   type slis_layout_alv,&lt;/P&gt;&lt;P&gt;    lt_sort     type slis_t_sortinfo_alv,  " Sort table&lt;/P&gt;&lt;P&gt;    ls_sort     type slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field-symbols :&lt;/P&gt;&lt;P&gt;    &amp;lt;fieldcat&amp;gt;   type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;    &amp;lt;lt_data&amp;gt;    type table,           " Data to display&lt;/P&gt;&lt;P&gt;    &amp;lt;fs&amp;gt;         type any,&lt;/P&gt;&lt;P&gt;    &amp;lt;components&amp;gt; type abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dynamic creation of a structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data lp_struct type (p_table).&lt;/P&gt;&lt;P&gt;  assign lp_struct-&amp;gt;* to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fields Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  of_sdescr ?= cl_abap_typedescr=&amp;gt;describe_by_data( &amp;lt;fs&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at of_sdescr-&amp;gt;components assigning &amp;lt;components&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Field MANDT not displayed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if sy-tabix = 1 and &amp;lt;components&amp;gt;-name = 'MANDT'.&lt;/P&gt;&lt;P&gt;      continue.                        " Next loop&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Build Fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_lvc_cat-fieldname = &amp;lt;components&amp;gt;-name.&lt;/P&gt;&lt;P&gt;    ls_lvc_cat-ref_table = p_table.&lt;/P&gt;&lt;P&gt;    append ls_lvc_cat to lt_lvc_cat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Build Fieldcatalog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_fieldcat-fieldname = &amp;lt;components&amp;gt;-name.&lt;/P&gt;&lt;P&gt;    ls_fieldcat-ref_tabname = p_table.&lt;/P&gt;&lt;P&gt;    append ls_fieldcat to lt_fieldcat.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;    exporting it_fieldcatalog = lt_lvc_cat&lt;/P&gt;&lt;P&gt;    importing ep_table = lp_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign lp_table-&amp;gt;* to &amp;lt;lt_data&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * from (p_table) up to p_max rows&lt;/P&gt;&lt;P&gt;    into corresponding fields of table &amp;lt;lt_data&amp;gt;&lt;/P&gt;&lt;P&gt;   order by primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if &amp;lt;lt_data&amp;gt;[] is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  No table entries found for specified key&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    message i429(mo).&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read key field to Build Sort Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * from dd03l where tabname  = p_table&lt;/P&gt;&lt;P&gt;                        and fieldname &amp;lt;&amp;gt; '.INCLUDE'&lt;/P&gt;&lt;P&gt;                        and as4vers  = '0000'&lt;/P&gt;&lt;P&gt;                        and as4local = 'A'&lt;/P&gt;&lt;P&gt;                      order by position.&lt;/P&gt;&lt;P&gt;    read table lt_fieldcat assigning &amp;lt;fieldcat&amp;gt;&lt;/P&gt;&lt;P&gt;                            with key fieldname = dd03l-fieldname.&lt;/P&gt;&lt;P&gt;    check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    add dd03l-leng to l_long.&lt;/P&gt;&lt;P&gt;    if dd03l-keyflag = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Build Sort Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      m_sort dd03l-fieldname.&lt;/P&gt;&lt;P&gt;      &amp;lt;fieldcat&amp;gt;-key = 'X'.&lt;/P&gt;&lt;P&gt;    elseif l_long &amp;gt; 150.&lt;/P&gt;&lt;P&gt;      &amp;lt;fieldcat&amp;gt;-tech = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;  ls_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            is_layout   = ls_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat = lt_fieldcat&lt;/P&gt;&lt;P&gt;            it_sort     = lt_sort&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab    = &amp;lt;lt_data&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " F_DISPLAY_DATA&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;END OF PROGRAM Z_ALV_DYNAMIC_DATA *********************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sampath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 14:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060605#M91797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T14:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060606#M91798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all quick responses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is in detail i am giving my scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;      field1 type c,&lt;/P&gt;&lt;P&gt;      field2(2) type c,&lt;/P&gt;&lt;P&gt;      field3(2) type c,&lt;/P&gt;&lt;P&gt;      field4 type c,&lt;/P&gt;&lt;P&gt;      field5 type c,&lt;/P&gt;&lt;P&gt;      end of itab1.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on some conditions i have created dynamic internal table with fields of field1, field2, field5&lt;/P&gt;&lt;P&gt;after that i have done as below&lt;/P&gt;&lt;P&gt;&amp;lt;dyn_table&amp;gt; = itab1[]. (problem is happening here)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in &amp;lt;dyn_table&amp;gt; field1, field2 appering correctly  but in field 5 value of fiedl3 is appearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i think it is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 15:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060606#M91798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T15:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060607#M91799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cannot use&lt;/P&gt;&lt;P&gt;&amp;lt;dyn_table&amp;gt; = itab1[]. &lt;/P&gt;&lt;P&gt;as itab and &amp;lt;dyn_table&amp;gt; are of different structure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: new_line  TYPE REF TO data.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;l_line&amp;gt;  TYPE ANY .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA new_line LIKE LINE OF &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab .&lt;/P&gt;&lt;P&gt;move-corresponding itab to &amp;lt;l_line&amp;gt; .&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;l_line&amp;gt; INTO TABLE &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 10:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060607#M91799</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-10-22T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create object/structure like dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060608#M91800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;reward the helpful answers and mark it answered if so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2005 10:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-object-structure-like-dynamic-internal-table/m-p/1060608#M91800</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-10-22T10:49:41Z</dc:date>
    </item>
  </channel>
</rss>

