<?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 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/2553979#M581895</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;&lt;/P&gt;&lt;P&gt;  The below program was taken from the &amp;lt;b&amp;gt;SDN&amp;lt;/b&amp;gt; forum, but as a beginner in abap it is difficult for me to understand the assignment of Field Symbols in this program even though the steps are clearly explained here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So can anyone explain me ,where the internal table is dynamically created also how field symbols are actually helpful in creating the dynamic internal table in this program?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data definitions&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: LT_DATA type ref to DATA.&lt;/P&gt;&lt;P&gt;DATA: LT_FIELDCATALOG type LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: LS_FIELDCATALOG type LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Data References&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: NEW_LINE type ref to data,&lt;/P&gt;&lt;P&gt;FS_DATA type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Field Symbols&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_DATA&amp;gt; type ref to DATA,&lt;/P&gt;&lt;P&gt;&amp;lt;FS_1&amp;gt; type any table,&lt;/P&gt;&lt;P&gt;&amp;lt;FS_2&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;lt;FS_3&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Populating the internal table with fieldnames required for our dynamic&lt;/P&gt;&lt;P&gt;*internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'MANDT'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'CARRID'. "Fieldname&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'C'. "Internal Type C-&amp;gt; Character&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'CONNID'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'N'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'FLDATE'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'D'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'PRICE'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'P'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'C'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Calling the method CREATE_DYNAMIC_TABLE&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_FIELDCATALOG&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;ep_table = FS_DATA&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;.&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;*Assigning Field-Symbol to our dynamic internal table&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;&lt;/P&gt;&lt;P&gt;*Internal Table is ready, now to put data in that table&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;So &amp;lt;FS_1&amp;gt; now points to our dynamic internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign FS_DATA-&amp;gt;* to &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Next step is to create a work area for our dynamic internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create data NEW_LINE like line of &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;A field-symbol to access that work area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;assign NEW_LINE-&amp;gt;* to &amp;lt;FS_2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;And to put the data in the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;CARRID&lt;/P&gt;&lt;P&gt;CONNID&lt;/P&gt;&lt;P&gt;FLDATE&lt;/P&gt;&lt;P&gt;PRICE&lt;/P&gt;&lt;P&gt;CURRENCY&lt;/P&gt;&lt;P&gt;from SFLIGHT&lt;/P&gt;&lt;P&gt;into corresponding fields of table &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Access contents of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;loop at &amp;lt;FS_1&amp;gt; assigning &amp;lt;FS_2&amp;gt;.&lt;/P&gt;&lt;P&gt;do 5 times.&lt;/P&gt;&lt;P&gt;assign component sy-index of structure &amp;lt;FS_2&amp;gt; to &amp;lt;FS_3&amp;gt;.&lt;/P&gt;&lt;P&gt;write: &amp;lt;FS_3&amp;gt;.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;WRITE:/5 'FUJITSU CONSULTING COMPANY' INVERSE COLOR 6,&lt;/P&gt;&lt;P&gt;50 SY-DATUM INVERSE COLOR 6,&lt;/P&gt;&lt;P&gt;70 SY-PAGNO INVERSE COLOR 6.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 16:23:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-12T16:23:02Z</dc:date>
    <item>
      <title>Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/2553979#M581895</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;&lt;/P&gt;&lt;P&gt;  The below program was taken from the &amp;lt;b&amp;gt;SDN&amp;lt;/b&amp;gt; forum, but as a beginner in abap it is difficult for me to understand the assignment of Field Symbols in this program even though the steps are clearly explained here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So can anyone explain me ,where the internal table is dynamically created also how field symbols are actually helpful in creating the dynamic internal table in this program?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Data definitions&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: LT_DATA type ref to DATA.&lt;/P&gt;&lt;P&gt;DATA: LT_FIELDCATALOG type LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: LS_FIELDCATALOG type LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Data References&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: NEW_LINE type ref to data,&lt;/P&gt;&lt;P&gt;FS_DATA type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Field Symbols&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS_DATA&amp;gt; type ref to DATA,&lt;/P&gt;&lt;P&gt;&amp;lt;FS_1&amp;gt; type any table,&lt;/P&gt;&lt;P&gt;&amp;lt;FS_2&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;lt;FS_3&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Populating the internal table with fieldnames required for our dynamic&lt;/P&gt;&lt;P&gt;*internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'MANDT'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'CARRID'. "Fieldname&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'C'. "Internal Type C-&amp;gt; Character&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'CONNID'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'N'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'FLDATE'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'D'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'PRICE'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'P'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-FIELDNAME = 'CURRENCY'.&lt;/P&gt;&lt;P&gt;LS_FIELDCATALOG-INTTYPE = 'C'.&lt;/P&gt;&lt;P&gt;append LS_FIELDCATALOG to LT_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Calling the method CREATE_DYNAMIC_TABLE&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_FIELDCATALOG&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;ep_table = FS_DATA&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;.&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;*Assigning Field-Symbol to our dynamic internal table&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;&lt;/P&gt;&lt;P&gt;*Internal Table is ready, now to put data in that table&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;So &amp;lt;FS_1&amp;gt; now points to our dynamic internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign FS_DATA-&amp;gt;* to &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Next step is to create a work area for our dynamic internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create data NEW_LINE like line of &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;A field-symbol to access that work area&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;assign NEW_LINE-&amp;gt;* to &amp;lt;FS_2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;And to put the data in the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;CARRID&lt;/P&gt;&lt;P&gt;CONNID&lt;/P&gt;&lt;P&gt;FLDATE&lt;/P&gt;&lt;P&gt;PRICE&lt;/P&gt;&lt;P&gt;CURRENCY&lt;/P&gt;&lt;P&gt;from SFLIGHT&lt;/P&gt;&lt;P&gt;into corresponding fields of table &amp;lt;FS_1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Access contents of internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;loop at &amp;lt;FS_1&amp;gt; assigning &amp;lt;FS_2&amp;gt;.&lt;/P&gt;&lt;P&gt;do 5 times.&lt;/P&gt;&lt;P&gt;assign component sy-index of structure &amp;lt;FS_2&amp;gt; to &amp;lt;FS_3&amp;gt;.&lt;/P&gt;&lt;P&gt;write: &amp;lt;FS_3&amp;gt;.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;WRITE:/5 'FUJITSU CONSULTING COMPANY' INVERSE COLOR 6,&lt;/P&gt;&lt;P&gt;50 SY-DATUM INVERSE COLOR 6,&lt;/P&gt;&lt;P&gt;70 SY-PAGNO INVERSE COLOR 6.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 16:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/2553979#M581895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T16:23:02Z</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/2553980#M581896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see the doc of field symbols &lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; { typing | STRUCTURE struc DEFAULT dobj }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... typing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... STRUCTURE struc DEFAULT dobj &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The FIELD-SYMBOLS statement declares a field symbol &amp;lt;fs&amp;gt;. The naming conventions apply to the name fs. The angle brackets of the field symbols indicate the difference to data objects and are obligatory. You can declare field symbols in any procedure and in the global declaration section of an ABAP program, but not in the declaration section of a class or an interface. You can use a field symbol in any operand position in which it is visible and which match the typing defined using typing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After its declaration, a field symbol is initial - that is, it does not reference a memory area. You have to assign a memory area to it (normally using the ASSIGN statement) before you can use it as an operand. Otherwise an exception will be triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... typing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;You can use the addition typing to type the field symbol. The syntax of typing is described under Syntax of Typing. The typing specifies which memory areas can be assigned to the field symbol (see Checking the Typing) and in which operand positions it can be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;You can omit the addition typing outside of methods. In this case, the field symbol has the complete generic type any and is implicitly assigned the predefined constant space during the declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... STRUCTURE struc DEFAULT dobj &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If you specify the addition STRUCTURE instead of typing for a field symbol, and struc is a local program structure (a data object, not a data type) or a flat structure from the ABAP Dictionary, this structure is cast for the field symbol &amp;lt;fs&amp;gt;. You have to specify a data object dobj that is initially assigned to the field symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field symbol copies the technical attributes of structure struc as if it were completely typed. When you assign a data object using the addition DEFAULT, or later using ASSIGN, its complete data type is not checked in non- Unicode programs. Instead, the system merely checks whether it has at least the length of the structure and its alignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode programs, we differentiate between structured and elementary data objects. For a structured data object dobj, its Unicode fragment view has to match the one of struc. In the case of an elementary data object, the object must be character-type and flat, and struc must be purely character-type. The same applies to assignments of data objects to field symbols typed using STRUCTURE when using the ASSIGN statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Field symbols declared using the addition STRUCTURE are a mixture of typed field symbols and a utility for casting structured data types. You should use the additions TYPE or LIKE for the FIELD-SYMBOLS statement to type field symbols, while the addition CASTING of the ASSIGN statement is used for casting. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;The first example shows the obsolete usage of the addition STRUCTURE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa1 TYPE c LENGTH 512. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;scarr1&amp;gt; STRUCTURE scarr DEFAULT wa1. &lt;/P&gt;&lt;P&gt;&amp;lt;scarr1&amp;gt;-carrid = '...'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second example shows the replacement of STRUCTURE with the additions TYPE and CASTING. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa2 TYPE c LENGTH 512. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;scarr2&amp;gt; TYPE scarr. &lt;/P&gt;&lt;P&gt;ASSIGN wa2 TO &amp;lt;scarr2&amp;gt; CASTING. &lt;/P&gt;&lt;P&gt;&amp;lt;scarr2&amp;gt;-carrid = '...'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic Internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic internal table is internal table that we create on the fly with flexible column numbers. &lt;/P&gt;&lt;P&gt;For sample code, please look at this code tutorial. Hopefully it can help you &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 16:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/2553980#M581896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T16:33:55Z</dc:date>
    </item>
  </channel>
</rss>

