<?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: Problem with dynamic internal table updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064914#M1613039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i tried  appending the normal work area to the fieldsymbol  internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wg_split to &amp;lt;f_dyntable&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is hiting dump the same dump and so i created a fieldsymbol work area. ( &amp;lt;f_wg_dyntable&amp;gt;.)and tried to append the field symbol internal table with this work area. which is again giving the dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;f_wg_dyntable&amp;gt; to &amp;lt;f_dyntable&amp;gt;. ( Again a Dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Charan-SAP on Aug 2, 2011 9:40 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Charan-SAP on Aug 2, 2011 9:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 19:40:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-02T19:40:10Z</dc:date>
    <item>
      <title>Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064912#M1613037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  I created  a dynamic internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
      EXPORTING
        it_fieldcatalog           = i_fieldcat
      IMPORTING
        ep_table                  = i_dyntab
      EXCEPTIONS
        generate_subpool_dir_full = 1
        OTHERS                    = 2.
ASSIGN i_dyntab-&amp;gt;* TO &amp;lt;f_dyntable&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and created a work area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CREATE DATA wg_f_split LIKE LINE OF &amp;lt;f_dyntable&amp;gt;.
    ASSIGN wg_f_split-&amp;gt;* TO &amp;lt;f_wg_dyntable&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that , i have to loop a normal internal table and append those records to the filed symbol internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE i_normal_itab INTO wg_split INDEX wl_rows-index.
      IF sy-subrc EQ 0.
        ASSIGN wg_split to &amp;lt;f_wg_dyntable&amp;gt;.
         APPEND &amp;lt;f_wg_dyntable&amp;gt; to &amp;lt;f_dyntable&amp;gt;.
       endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i am geeting dump as "MOVE src TO dst" ... i can get the data in the work area FSymbol but cannot append it in Internal table Field Symbol.. Please help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Added code tags&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Aug 3, 2011 10:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 18:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064912#M1613037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T18:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064913#M1613038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charan-SAP,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ASSIGN wg_split to &amp;lt;f_wg_dyntable&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;because of this statement, you changed the field symbol so it does not refer to the line of the dynamical internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, I think you want to do something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MOVE-CORRESPONDING wg_split to &amp;lt;f_wg_dyntable&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 19:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064913#M1613038</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-02T19:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064914#M1613039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i tried  appending the normal work area to the fieldsymbol  internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append wg_split to &amp;lt;f_dyntable&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is hiting dump the same dump and so i created a fieldsymbol work area. ( &amp;lt;f_wg_dyntable&amp;gt;.)and tried to append the field symbol internal table with this work area. which is again giving the dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;f_wg_dyntable&amp;gt; to &amp;lt;f_dyntable&amp;gt;. ( Again a Dump)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Charan-SAP on Aug 2, 2011 9:40 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Charan-SAP on Aug 2, 2011 9:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 19:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064914#M1613039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T19:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064915#M1613040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN i_dyntab-&amp;gt;* TO &amp;lt;f_dyntable&amp;gt;. and created a work area 

field-symbols: &amp;lt;fs_dyntable&amp;gt; type line of &amp;lt;f_dyntable&amp;gt;. 

READ TABLE i_normal_itab INTO wg_split INDEX wl_rows-index.
IF sy-subrc EQ 0.
&amp;lt;fs_dyntable&amp;gt; = wg_split.
APPEND &amp;lt;fs_dyntable&amp;gt; to &amp;lt;f_dyntable&amp;gt;.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 19:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064915#M1613040</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2011-08-02T19:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064916#M1613041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
APPEND &amp;lt;f_wg_dyntable&amp;gt; to &amp;lt;f_dyntable&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If it dumps, it means that you changed the assignment of &amp;lt;f_wg_dyntable&amp;gt; right before, you shouldn't. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But could you explain what you want to achieve, what fields are in &lt;STRONG&gt;wg_split&lt;/STRONG&gt; , are they the same as in &lt;STRONG&gt;&amp;lt;f_wg_dyntable&amp;gt;&lt;/STRONG&gt; or do they have fields with same name? (then MOVE-CORRESPONDING should work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 19:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064916#M1613041</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-02T19:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064917#M1613042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Charan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code snippet works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT gt_data INTO gs_data. "LOOP on static table
*   Append the line to the dynamic table
    APPEND INITIAL LINE TO &amp;lt;gt_dyn&amp;gt; ASSIGNING &amp;lt;gs_dyn&amp;gt;.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING gs_data TO &amp;lt;gs_dyn&amp;gt;.
    ENDIF.

  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 06:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064917#M1613042</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-03T06:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dynamic internal table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064918#M1613043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this time Move-corresponding worked.. Thanks for you help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 06:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dynamic-internal-table-updation/m-p/8064918#M1613043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T06:17:10Z</dc:date>
    </item>
  </channel>
</rss>

