<?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/4277856#M1020587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi iam sujay,&lt;/P&gt;&lt;P&gt; i ve an requirement to list out the quantity sold to customers.....but i need to list out the columns dynamically ie the column should contain customer only if sale done to him for the given period.for example - if sale is done for 15 customer for the given period then i need to have 15 +1(column for material) columns...if sale done for 30 customer then i need to have 30 + 1 columns in my report..&lt;/P&gt;&lt;P&gt;i ve tried this call method cl_alv_table_create=&amp;gt;create_dynamic_table and&lt;/P&gt;&lt;P&gt;created dynamic table but i cant move datas into the dynamic table as per my requirement..how is it possible? plz help me.............&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sujay Pradeesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 06:17:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-12T06:17:38Z</dc:date>
    <item>
      <title>dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/4277856#M1020587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi iam sujay,&lt;/P&gt;&lt;P&gt; i ve an requirement to list out the quantity sold to customers.....but i need to list out the columns dynamically ie the column should contain customer only if sale done to him for the given period.for example - if sale is done for 15 customer for the given period then i need to have 15 +1(column for material) columns...if sale done for 30 customer then i need to have 30 + 1 columns in my report..&lt;/P&gt;&lt;P&gt;i ve tried this call method cl_alv_table_create=&amp;gt;create_dynamic_table and&lt;/P&gt;&lt;P&gt;created dynamic table but i cant move datas into the dynamic table as per my requirement..how is it possible? plz help me.............&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sujay Pradeesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 06:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/4277856#M1020587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T06:17: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/4277857#M1020588</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;Here's an example for the dynamically datau2013typed table &amp;lt;tab&amp;gt; and row &amp;lt;row&amp;gt; that has just code and description fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
field-symbols:
  &amp;lt;row_code&amp;gt;,
  &amp;lt;row_desc&amp;gt;.
...
concatenate:
  '&amp;lt;ROW&amp;gt;-' p_code into row_code_name,
  '&amp;lt;ROW&amp;gt;-' p_desc into row_desc_name.
assign:
  (row_code_name) to &amp;lt;row_code&amp;gt;,
  (row_desc_name) to &amp;lt;row_desc&amp;gt;.

select * from (p_tabn) into table &amp;lt;tab&amp;gt;.

loop at raw_itab into raw_row.
  &amp;lt;code&amp;gt; = raw_row-field1.
  &amp;lt;desc&amp;gt; = raw_row-field2.
  read table &amp;lt;tab&amp;gt; into &amp;lt;row&amp;gt; with key (p_code) = &amp;lt;code&amp;gt;.
  if sy-subrc ne 0.
    clear &amp;lt;row&amp;gt;.
    &amp;lt;row_code&amp;gt; = &amp;lt;code&amp;gt;. "assigns to &amp;lt;row&amp;gt; 'code' field
    &amp;lt;row_desc&amp;gt; = &amp;lt;desc&amp;gt;. "assigns to &amp;lt;row&amp;gt; 'desc' field
    insert (p_tabn) from &amp;lt;row&amp;gt;. "creates a database-table row
    if sy-subrc eq 0.
       write: / 'Inserted :', &amp;lt;row_code&amp;gt;, &amp;lt;row_desc&amp;gt;.
       endif.
    endif.
  endloop.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 10:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/4277857#M1020588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T10:51:06Z</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/4277858#M1020589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.create a field catelog based on the no: of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.use the following method to create a dynamic_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;field symbols&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_any&amp;gt;    TYPE ANY,&lt;/P&gt;&lt;P&gt;               &amp;lt;fs_output&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;               &amp;lt;ft_output&amp;gt; TYPE table.&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           = t_fieldcat&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table                  = ptr_table&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN ptr_table-&amp;gt;* TO &amp;lt;ft_output&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA ptr_warea LIKE LINE OF &amp;lt;ft_output&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN ptr_warea-&amp;gt;* TO &amp;lt;fs_output&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.use the following statement tot transfer the date to output &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT c_stext OF STRUCTURE &amp;lt;fs_output&amp;gt; TO &amp;lt;fs_any&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      &amp;lt;fs_any&amp;gt; = &amp;lt;l_output&amp;gt;-stext.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/4277858#M1020589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T11:18:35Z</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/4277859#M1020590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;***field symbols&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;l_table&amp;gt; type table,&lt;/P&gt;&lt;P&gt;&amp;lt;l_line&amp;gt; type any,&lt;/P&gt;&lt;P&gt;&amp;lt;l_field&amp;gt; type any.&lt;/P&gt;&lt;P&gt;**&lt;/P&gt;&lt;P&gt;data: is_lvc_cat type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      it_lvc_cat type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: new_table type ref to data,&lt;/P&gt;&lt;P&gt;      new_line  type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***assigning filed names to field catalog&lt;/P&gt;&lt;P&gt;  is_lvc_cat-fieldname = 'ESID'.&lt;/P&gt;&lt;P&gt;  append is_lvc_cat to it_lvc_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  is_lvc_cat-fieldname = 'CALLOC'.&lt;/P&gt;&lt;P&gt;  append is_lvc_cat to it_lvc_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***creating 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 = it_lvc_cat&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          ep_table        = new_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      assign new_table-&amp;gt;* to &amp;lt;l_table&amp;gt;.&lt;/P&gt;&lt;P&gt;      create data new_line like line of &amp;lt;l_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;loop at t_grid into l_grid.&lt;/P&gt;&lt;P&gt;    assign component 'ESID' of structure &amp;lt;l_line&amp;gt; to &amp;lt;l_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;l_field&amp;gt; = l_esid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    assign component 'CALLOC' of structure &amp;lt;l_line&amp;gt; to &amp;lt;l_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;l_field&amp;gt; = l_calloc.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 11:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/4277859#M1020590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T11:27:43Z</dc:date>
    </item>
  </channel>
</rss>

