<?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: reg:doubt in dynamic generated internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579211#M861679</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 this code, i think it may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LV_DBTAB1 LIKE DD02L-TABNAME.&lt;/P&gt;&lt;P&gt;DATA : DREF TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;ITAB&amp;gt; TYPE ANY TABLE, " used to store dynamic tables&lt;/P&gt;&lt;P&gt;&amp;lt;WA&amp;gt; TYPE ANY, " used to store record data&lt;/P&gt;&lt;P&gt;&amp;lt;WA1&amp;gt; TYPE ANY . " used to store field data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_DBTAB1 = 'MARA'.&lt;/P&gt;&lt;P&gt;data: it_mara like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA DREF TYPE STANDARD TABLE OF (LV_DBTAB1)&lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;ASSIGN DREF-&amp;gt;* TO &amp;lt;ITAB&amp;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;selects all data &lt;/P&gt;&lt;P&gt;SELECT * FROM (LV_DBTAB1) INTO TABLE &amp;lt;ITAB&amp;gt; .&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;ITAB&amp;gt; ASSIGNING &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;WA&amp;gt; TO IT_MARA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;vasavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 04:23:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T04:23:01Z</dc:date>
    <item>
      <title>reg:doubt in dynamic generated internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579208#M861676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i generated a internal table dynamically,the output is in fied symbol,i want to create a internal table using the field symbol sturture,how to create that????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz tell me how to create a internal table referencing field symbol structure........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very urgent plz help.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;balaji.s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579208#M861676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: reg:doubt in dynamic generated internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579209#M861677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;dyn_table&amp;gt; TYPE STANDARD TABLE,&lt;/P&gt;&lt;P&gt;               &amp;lt;dyn_wa&amp;gt; TYPE ANY .&lt;/P&gt;&lt;P&gt;Data:it_fieldcat TYPE lvc_t_fcat.&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 = it_fieldcat&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table        = dyn_table.&lt;/P&gt;&lt;P&gt;  ASSIGN dyn_table-&amp;gt;* TO &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  CREATE DATA dyn_line LIKE LINE OF &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN dyn_line-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IT_FIELDCAT is a strucure.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;dyn_table&amp;gt; is internal table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;dyn_wa&amp;gt; is work area of the table &amp;lt;dyn_table&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vodka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579209#M861677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: reg:doubt in dynamic generated internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579210#M861678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the example codes..&lt;/P&gt;&lt;P&gt;&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;Sample code:&lt;/P&gt;&lt;P&gt;DATA: l_cnt(2) TYPE n,&lt;/P&gt;&lt;P&gt;l_cnt1(3) TYPE n,&lt;/P&gt;&lt;P&gt;l_nam(12),&lt;/P&gt;&lt;P&gt;l_con(18) TYPE c,&lt;/P&gt;&lt;P&gt;l_con1(18) TYPE c,&lt;/P&gt;&lt;P&gt;lf_mat TYPE matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_bom_expl BY bom_comp bom_mat level.&lt;/P&gt;&lt;P&gt;CLEAR: l_cnt1, &amp;lt;fs_dyn_wa&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Looping the component internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT it_bom_expl INTO gf_it_bom_expl.&lt;/P&gt;&lt;P&gt;CLEAR: l_cnt1.&lt;/P&gt;&lt;P&gt;AT NEW bom_comp.&lt;/P&gt;&lt;P&gt;CLEAR: l_cnt, &amp;lt;fs_dyn_wa&amp;gt;, lf_mat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For every new bom component the material data is moved to&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;temp material table which will be used for assigning the levels&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;checking the count&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it_mat_temp[] = it_mat[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Component data is been assigned to the field symbol which is checked&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;against the field of dynamic internal table and the value of the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;component number is been passed to the dynamic internal table field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ASSIGN COMPONENT c_comp_list OF STRUCTURE &amp;lt;fs_dyn_wa&amp;gt; TO&lt;/P&gt;&lt;P&gt;&amp;lt;fs_check&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs_check&amp;gt; = gf_it_bom_expl-bom_comp.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;AT NEW bom_mat.&lt;/P&gt;&lt;P&gt;CLEAR l_con.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;lf_mat = gf_it_bom_expl-bom_mat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Looping the temp internal table and looping the dynamic internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*by reading line by line into workarea, the materialxxn is been assigned&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to field symbol which will be checked and used.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT it_mat_temp.&lt;/P&gt;&lt;P&gt;l_nam = c_mat.&lt;/P&gt;&lt;P&gt;l_cnt1 = l_cnt1 + 1.&lt;/P&gt;&lt;P&gt;CONCATENATE l_nam l_cnt1 INTO l_nam.&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;fs_dyn_table2&amp;gt; ASSIGNING &amp;lt;fs_dyn_wa2&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT l_nam OF STRUCTURE &amp;lt;fs_dyn_wa2&amp;gt; TO &amp;lt;fs_xy&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;IF &amp;lt;fs_xy&amp;gt; = lf_mat.&lt;/P&gt;&lt;P&gt;CLEAR lf_mat.&lt;/P&gt;&lt;P&gt;l_con1 = l_con.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking whether the material exists for a component and if so it is&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;been assigned to the field symbol which is checked against the field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;of dynamic internal table and the level of the component number&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;against material is been passed to the dynamic internal table field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF &amp;lt;fs_xy&amp;gt; = gf_it_bom_expl-bom_mat.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT l_nam OF STRUCTURE &amp;lt;fs_dyn_wa&amp;gt; TO &amp;lt;fs_check&amp;gt;.&lt;/P&gt;&lt;P&gt;CLEAR l_con.&lt;/P&gt;&lt;P&gt;MOVE gf_it_bom_expl-level TO l_con.&lt;/P&gt;&lt;P&gt;CONCATENATE c_val_l l_con INTO l_con.&lt;/P&gt;&lt;P&gt;CONDENSE l_con NO-GAPS.&lt;/P&gt;&lt;P&gt;IF l_con1 NE space.&lt;/P&gt;&lt;P&gt;CONCATENATE l_con1 l_con INTO l_con SEPARATED BY c_comma.&lt;/P&gt;&lt;P&gt;CLEAR l_con1.&lt;/P&gt;&lt;P&gt;l_cnt = l_cnt - 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&amp;lt;fs_check&amp;gt; = l_con.&lt;/P&gt;&lt;P&gt;l_cnt = l_cnt + 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF bom_comp.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At end of every new bom component the count is moved to the field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;symbol which is checked against the field of dynamic internal table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and the count is been passed to the dynamic internal table field&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ASSIGN COMPONENT c_count OF STRUCTURE &amp;lt;fs_dyn_wa&amp;gt; TO &amp;lt;fs_check&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;fs_check&amp;gt; = l_cnt.&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;fs_dyn_wa&amp;gt; INTO TABLE &amp;lt;fs_dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDAT.&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;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options: s_bukrs for t001-bukrs, &lt;/P&gt;&lt;P&gt;                s_pfolio for ztab-pfolio. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_pfolio-low.&lt;/P&gt;&lt;P&gt;PERFORM f4_for_portfolios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_pfolio-high.&lt;/P&gt;&lt;P&gt;PERFORM f4_for_portfolios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f4_for_portfolios.&lt;/P&gt;&lt;P&gt;l_dynpro = sy-repid.&lt;/P&gt;&lt;P&gt;l_dynnar = sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for parameters/one single value(low/high) of select-option this is OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If i give 'S_BUKRS' it is giving dump.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it_dynpfields-fieldname = 'S_BUKRS-LOW'.&lt;/P&gt;&lt;P&gt;APPEND it_dynpfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;dyname = l_dynpro&lt;/P&gt;&lt;P&gt;dynumb = l_dynnar " '1000' &lt;/P&gt;&lt;P&gt;translate_to_upper = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynpfields = it_dynpfields.&lt;/P&gt;&lt;P&gt;READ TABLE it_dynpfields INDEX 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH r_bukrs.&lt;/P&gt;&lt;P&gt;IF NOT it_dynpfields-fieldvalue IS INITIAL.&lt;/P&gt;&lt;P&gt;r_bukrs-low = it_dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;r_bukrs-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_bukrs-option = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND r_bukrs.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;bukrs a&lt;/SUB&gt;portfolio b~xportb&lt;/P&gt;&lt;P&gt;INTO TABLE it_plo&lt;/P&gt;&lt;P&gt;FROM ( zlt_mandate AS a&lt;/P&gt;&lt;P&gt;INNER JOIN twpob AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;bukrs = b&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;portfolio = b&lt;/SUB&gt;rportb )&lt;/P&gt;&lt;P&gt;WHERE a~bukrs IN r_bukrs . "= it_dynpfields-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;retfield = 'PORTFOLIO'&lt;/P&gt;&lt;P&gt;dynpprog = l_dynpro&lt;/P&gt;&lt;P&gt;dynpnr = l_dynnar&lt;/P&gt;&lt;P&gt;dynprofield = 'S_PFOLIO-LOW'&lt;/P&gt;&lt;P&gt;value_org = 'S'"C&lt;/P&gt;&lt;P&gt;display = 'F'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;value_tab = it_plo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "get_portfolios&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;sowjanya.b&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579210#M861678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: reg:doubt in dynamic generated internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579211#M861679</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 this code, i think it may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LV_DBTAB1 LIKE DD02L-TABNAME.&lt;/P&gt;&lt;P&gt;DATA : DREF TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;ITAB&amp;gt; TYPE ANY TABLE, " used to store dynamic tables&lt;/P&gt;&lt;P&gt;&amp;lt;WA&amp;gt; TYPE ANY, " used to store record data&lt;/P&gt;&lt;P&gt;&amp;lt;WA1&amp;gt; TYPE ANY . " used to store field data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_DBTAB1 = 'MARA'.&lt;/P&gt;&lt;P&gt;data: it_mara like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA DREF TYPE STANDARD TABLE OF (LV_DBTAB1)&lt;/P&gt;&lt;P&gt;WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;ASSIGN DREF-&amp;gt;* TO &amp;lt;ITAB&amp;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;selects all data &lt;/P&gt;&lt;P&gt;SELECT * FROM (LV_DBTAB1) INTO TABLE &amp;lt;ITAB&amp;gt; .&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;ITAB&amp;gt; ASSIGNING &amp;lt;WA&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;WA&amp;gt; TO IT_MARA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;vasavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 04:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-doubt-in-dynamic-generated-internal-table/m-p/3579211#M861679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T04:23:01Z</dc:date>
    </item>
  </channel>
</rss>

