<?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: Regarding Dynamic Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432040#M206441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chech the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?p=107594" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?p=107594&lt;/A&gt;&lt;/P&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="1556476"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jul 2006 14:07:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-15T14:07:36Z</dc:date>
    <item>
      <title>Regarding Dynamic Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432037#M206438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  could any one help me in explanining what is dynamic internal table concept in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; information regarding this is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  thanks very much&lt;/P&gt;&lt;P&gt;    pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 17:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432037#M206438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T17:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Dynamic Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432038#M206439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, I dynamic internal table is one that is built on the fly during runtime as opposed to one that is defined at design time.  Usually you define interal tables like this directly in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: begin of ttab,
       fld1(10) type c,
       fld2 type sy-datum,
       end of ttab.

data: itab type table of ttab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also build an internal table at runtime.&lt;/P&gt;&lt;P&gt;Here is a sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003
       no standard page heading.

type-pools: slis.

field-symbols: &amp;lt;dyn_table&amp;gt; type standard table,
               &amp;lt;dyn_wa&amp;gt;.

data: alv_fldcat type slis_t_fieldcat_alv,
      it_fldcat type lvc_t_fcat.


selection-screen begin of block b1 with frame title text-001.
parameters: p_check type c.
selection-screen end of block b1.

start-of-selection.

  perform build_dyn_itab.
  perform build_report.

  loop at &amp;lt;dyn_table&amp;gt; into &amp;lt;dyn_wa&amp;gt;.
    write:/ &amp;lt;dyn_wa&amp;gt;.
  endloop.


************************************************************************
*  Build_dyn_itab
************************************************************************
form build_dyn_itab.

  data: index(3) type c.

  data: new_table type ref to data,
        new_line  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.

  assign new_table-&amp;gt;* to &amp;lt;dyn_table&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;.

endform.

*********************************************************************
*      Form  build_report
*********************************************************************
form build_report.

  data: fieldname(20) type c.
  data: fieldvalue(5) type c.
  data: index(3) type c.
  field-symbols: &amp;lt;fs1&amp;gt;.

  do 10 times.

    index = sy-index.

* Set up fieldname
    concatenate 'FIELD' index into
             fieldname .
    condense   fieldname  no-gaps.

* Set up fieldvalue
    concatenate 'FLD' index into
             fieldvalue.
    condense   fieldvalue no-gaps.

    assign component  fieldname  of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;fs1&amp;gt;.
    &amp;lt;fs1&amp;gt; =  fieldvalue.

  enddo.

* Append to the dynamic internal table
  append &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_table&amp;gt;.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Fri, 14 Jul 2006 17:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432038#M206439</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-14T17:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Dynamic Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432039#M206440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pavan,&lt;/P&gt;&lt;P&gt;check these links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci554038,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/tip/1,289483,sid21_gci554038,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 18:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432039#M206440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T18:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Dynamic Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432040#M206441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chech the below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?p=107594" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?p=107594&lt;/A&gt;&lt;/P&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="1556476"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 14:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432040#M206441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Dynamic Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432041#M206442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE GO THROUGH THE LINKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to create Dynamic internal table&lt;/P&gt;&lt;P&gt;&lt;A href="http://72.14.203.104/search?q=cache:PW0nTfKGW78J:www.sap-img.com/ab030.htm" target="test_blank"&gt;http://72.14.203.104/search?q=cache:PW0nTfKGW78J:www.sap-img.com/ab030.htm&lt;/A&gt;&lt;EM&gt;DYNAMIC&lt;/EM&gt;INTERNAL&lt;EM&gt;TABLE&lt;/EM&gt;ABAP+&amp;amp;hl=en&amp;amp;gl=in&amp;amp;ct=clnk&amp;amp;cd=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic Internal Tables&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kabai.com/abaps/z53.htm" target="test_blank"&gt;http://www.kabai.com/abaps/z53.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the following 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;Rgds,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF THIS IS USEFUL PLEASE REWARD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2006 14:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-dynamic-internal-table/m-p/1432041#M206442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-15T14:18:48Z</dc:date>
    </item>
  </channel>
</rss>

