<?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: Dynamic Internal table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341490#M172725</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;I do I write a statement like &lt;/P&gt;&lt;P&gt;&amp;lt;dyn_table&amp;gt;-lifnr = 1000010452.&lt;/P&gt;&lt;P&gt;&amp;lt;dyn_table&amp;gt;-matnr = v_matnr.... &lt;/P&gt;&lt;P&gt;append  &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not accept the value for the internal table &amp;lt;dyn_table&amp;gt;.&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;stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2006 10:27:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-01T10:27:47Z</dc:date>
    <item>
      <title>Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341487#M172722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created program for creating dynamic internal table as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : abap.&lt;/P&gt;&lt;P&gt;&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;,&lt;/P&gt;&lt;P&gt;               &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dy_table type ref to data,&lt;/P&gt;&lt;P&gt;      dy_line  type ref to data,&lt;/P&gt;&lt;P&gt;      xfc type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      ifc type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame.&lt;/P&gt;&lt;P&gt;parameters: p_table(30) type c default 'T001'.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&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 get_structure.&lt;/P&gt;&lt;P&gt;  perform create_dynamic_itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; perform get_data.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; perform write_out.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : idetails type abap_compdescr_tab,&lt;/P&gt;&lt;P&gt;       xdetails type abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ref_table_des type ref to cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; xfc-fieldname = 'LIFNR'.&lt;/P&gt;&lt;P&gt; xfc-datatype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-intlen = '10'.&lt;/P&gt;&lt;P&gt; xfc-decimals = '0'.&lt;/P&gt;&lt;P&gt;append xfc to ifc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; xfc-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt; xfc-datatype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-intlen = '10'.&lt;/P&gt;&lt;P&gt; xfc-decimals = '0'.&lt;/P&gt;&lt;P&gt;append xfc to ifc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xfc-fieldname = 'MATKL'.&lt;/P&gt;&lt;P&gt; xfc-datatype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-intlen = '9'.&lt;/P&gt;&lt;P&gt; xfc-decimals = '0'.&lt;/P&gt;&lt;P&gt;append xfc to ifc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xfc-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt; xfc-datatype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-intlen = '4'.&lt;/P&gt;&lt;P&gt; xfc-decimals = '0'.&lt;/P&gt;&lt;P&gt;append xfc to ifc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xfc-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt; xfc-datatype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-intlen = '18'.&lt;/P&gt;&lt;P&gt; xfc-decimals = '0'.&lt;/P&gt;&lt;P&gt;append xfc to ifc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xfc-fieldname = 'MAKTX'.&lt;/P&gt;&lt;P&gt; xfc-datatype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-inttype = 'C'.&lt;/P&gt;&lt;P&gt; xfc-intlen = '40'.&lt;/P&gt;&lt;P&gt; xfc-decimals = '0'.&lt;/P&gt;&lt;P&gt;append xfc to ifc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_dynamic_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&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&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = ifc&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign dy_table-&amp;gt;* to &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data dy_line like line of &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  assign dy_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Data from table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * into table &amp;lt;dyn_table&amp;gt;&lt;/P&gt;&lt;P&gt;             from (p_table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form write_out.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write out data from table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at &amp;lt;dyn_table&amp;gt; into &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;    do.&lt;/P&gt;&lt;P&gt;      assign component  sy-index&lt;/P&gt;&lt;P&gt;         of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      if sy-index = 1.&lt;/P&gt;&lt;P&gt;        write:/ &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        write: &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    enddo.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now that I am unable  to access the fields of internal table as as "&amp;lt;dyn_table&amp;gt;-lifnr" nor the work area as "&amp;lt;dyn_wa&amp;gt;-lifnr" .It says structure does not have the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its also not accessible in the debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I access the field to populate data to the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls post ur ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341487#M172722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341488#M172723</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;You can only use the field symbol (just as you're doing) but use the field name instead of the number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign component 'LIFNR'&lt;/P&gt;&lt;P&gt;of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341488#M172723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341489#M172724</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;FIELD-SYMBOLS : &amp;lt;FS_ANY&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'LIFNR' OF STRUCTURE &amp;lt;dyn_table&amp;gt; TO &amp;lt;FS_ANY&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now &amp;lt;FS_ANY&amp;gt; will have the value of &amp;lt;DYN_TABLE&amp;gt;-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341489#M172724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341490#M172725</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;I do I write a statement like &lt;/P&gt;&lt;P&gt;&amp;lt;dyn_table&amp;gt;-lifnr = 1000010452.&lt;/P&gt;&lt;P&gt;&amp;lt;dyn_table&amp;gt;-matnr = v_matnr.... &lt;/P&gt;&lt;P&gt;append  &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on  ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not accept the value for the internal table &amp;lt;dyn_table&amp;gt;.&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;stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341490#M172725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341491#M172726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;FS_ANY&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'LIFNR' OF STRUCTURE &amp;lt;dyn_table&amp;gt; TO &amp;lt;FS_ANY&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;FS_ANY&amp;gt; = 1000010452.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR' OF STRUCTURE &amp;lt;dyn_table&amp;gt; TO &amp;lt;FS_ANY&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;FS_ANY&amp;gt; = V_MATNR ....&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;DYN_TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is becuase its dynamic and at design time while compiling the code it does not kow the name of the columns in DYN_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravikumar Allampallam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341491#M172726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341492#M172727</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;you can do some thing like this.....,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;assign r_dyn_table-&amp;gt;* to &amp;lt;t_dyn_table&amp;gt;.
create data r_wa_dyn_table like line of &amp;lt;t_dyn_table&amp;gt;.
assign r_wa_dyn_table-&amp;gt;* to &amp;lt;wa_dyn_table&amp;gt;.
assign component 'FIELD1' of structure &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;w_field&amp;gt;.
&amp;lt;w_field&amp;gt; = '10'.
assign component 'FIELD2' of structure &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;w_field&amp;gt;.
&amp;lt;w_field&amp;gt; = '10'.
append &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;t_dyn_table&amp;gt;.
assign component 'FIELD1' of structure &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;w_field&amp;gt;.
&amp;lt;w_field&amp;gt; = '10'.
assign component 'FIELD2' of structure &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;w_field&amp;gt;.
&amp;lt;w_field&amp;gt; = '10'.
append &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;t_dyn_table&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341492#M172727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341493#M172728</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;DATA: WA_LINE TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create data WA_LINE like line of &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN WA_LINE-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT xfc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT xfc-FIELDNAME OF STRUCTURE &amp;lt;dyn_wa&amp;gt; TO &amp;lt;FS_ANY&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE xfc-FIELDNAME.&lt;/P&gt;&lt;P&gt;WHEN 'LIFNR'. &amp;lt;FS_ANY&amp;gt; = '1000010452'&lt;/P&gt;&lt;P&gt;WHEN 'MATNR'. &amp;lt;FS_ANY&amp;gt; = V_MATNR.&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341493#M172728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341494#M172729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  &amp;lt;dyn_table&amp;gt;-lifnr = 1000010452.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   It will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. We have to do it in two steps, for each field assignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  varname = 'ITAB-LIFNR'.&lt;/P&gt;&lt;P&gt;  ASSIGN (VARNAME) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;FS&amp;gt; = '10000010452'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  varname = 'ITAB-matnr'.&lt;/P&gt;&lt;P&gt;  ASSIGN (VARNAME) TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;FS&amp;gt; = v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 10:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341494#M172729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T10:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341495#M172730</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;One more obstacle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I read from the dynamic internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I write as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR' OF STRUCTURE &amp;lt;fs_dyn_wa&amp;gt; TO &amp;lt;FS_ANY&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table &amp;lt;fs_dyn_table&amp;gt; with key &amp;lt;fs_any&amp;gt; = i_itab-matnr&lt;/P&gt;&lt;P&gt;                               into &amp;lt;fs_dyn_wa&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;.&lt;/P&gt;&lt;P&gt;.&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;P&gt;It gives error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help with ur ideas.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 11:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341495#M172730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T11:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341496#M172731</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;check this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at &amp;lt;t_dyn_table&amp;gt; into &amp;lt;wa_dyn_table&amp;gt;.

assign component 'FIELD2' of structure &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;w_field&amp;gt;.

assign component 'T_CELLCOLORS'
of structure &amp;lt;wa_dyn_table&amp;gt; to &amp;lt;t_cellcolors&amp;gt;.

clear wa_cellcolors.

wa_cellcolors-fname = 'FIELD2'.

if &amp;lt;w_field&amp;gt; = '10'.
wa_cellcolors-color-col = '7'.
else.
wa_cellcolors-color-col = '5'.
endif.

append wa_cellcolors to &amp;lt;t_cellcolors&amp;gt;.

modify &amp;lt;t_dyn_table&amp;gt; from &amp;lt;wa_dyn_table&amp;gt;.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 11:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341496#M172731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341497#M172732</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;FIELD-SYMBOLS : &amp;lt;FS_TAB&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;DYN_TAB&amp;gt; ASSIGNING &amp;lt;FS_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; ASSIGN COMPONENT 'LIFNR' OF STRUCTURE &amp;lt;FS_TAB&amp;gt; TO &amp;lt;FS_ANY&amp;gt;.&lt;/P&gt;&lt;P&gt; Now, &amp;lt;fs_any&amp;gt; will have the value of LIFNR field.&lt;/P&gt;&lt;P&gt; You can do the same with READ TABLE as well.&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;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 12:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/1341497#M172732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T12:04:00Z</dc:date>
    </item>
  </channel>
</rss>

