<?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 Modify Dynamic Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152355#M454471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to modify a dynamic internal table, but i don't know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already built the table, but how can i access to the fields???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at &amp;lt;gt_table&amp;gt; assigning &amp;lt;wa_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 08:54:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T08:54:50Z</dc:date>
    <item>
      <title>Modify Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152355#M454471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to modify a dynamic internal table, but i don't know how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already built the table, but how can i access to the fields???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at &amp;lt;gt_table&amp;gt; assigning &amp;lt;wa_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 08:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152355#M454471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152356#M454472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just click on the below 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;Here you can see the complete details of HOW TO CREATE DYANMIC INTERNAL TABLE. It is Crystal Clear.By analysing this code you get idea of solving your problem &lt;/P&gt;&lt;P&gt;on your own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can understand it easily.&lt;/P&gt;&lt;P&gt;Reward all  helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;V.Raghavender.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 08:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152356#M454472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T08:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152357#M454473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;chk this

CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog           = it_fieldcatalog
    IMPORTING
      ep_table                  = new_table
    EXCEPTIONS
      generate_subpool_dir_full = 1
      OTHERS                    = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  ASSIGN new_table-&amp;gt;* TO &amp;lt;it_final&amp;gt;.

*********CREATE WORK AREA****************************

CREATE DATA new_line LIKE LINE OF &amp;lt;it_final&amp;gt;.
  ASSIGN new_line-&amp;gt;* TO &amp;lt;wa_final&amp;gt;.

*********INSERTTING WORK AREAR TO INTERNAL TABLE******

    INSERT &amp;lt;wa_final&amp;gt; INTO TABLE &amp;lt;it_final&amp;gt;.

*******POPULATING DATA*******************************  
  LOOP.
   
   ASSIGN COMPONENT 'FIELD1' OF STRUCTURE &amp;lt;wa_final&amp;gt; TO &amp;lt;w_field&amp;gt;.
   &amp;lt;w_field&amp;gt; = '12345'.

    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE &amp;lt;wa_final&amp;gt; TO &amp;lt;w_field&amp;gt;.
   &amp;lt;w_field&amp;gt; = '21453DD'.

   FIELD1 AND FIELD2 ARE COMPONENTS OF FIELDCATALOG.
    
ENDLOOP.     &lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 08:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152357#M454473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T08:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152358#M454474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field-symbols: &amp;lt;l_field&amp;gt; type any .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;gt_table&amp;gt; assigning &amp;lt;wa_table&amp;gt;.&lt;/P&gt;&lt;P&gt;assign component 'FIELDNAME' of structure &amp;lt;wa_table&amp;gt; to &amp;lt;l_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &amp;lt;l_field&amp;gt; is assigned .&lt;/P&gt;&lt;P&gt;&amp;lt;l_field&amp;gt; = 'some value' .&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;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 08:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152358#M454474</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-04-17T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152359#M454475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can access the fields using &lt;/P&gt;&lt;P&gt;&amp;lt;wa_table&amp;gt; - field_name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152359#M454475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T09:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152360#M454476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi .. &lt;/P&gt;&lt;P&gt;I do not know how you have created the dynamic internal tables... &lt;/P&gt;&lt;P&gt;but just for your reference ... I am giving u a piece of code ... Its quiet simple .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say.. You want to change the 3rd column of the table. So to read the 3rd column, I write  the statement : ASSIGN COMPONENT 3 OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;fs_val&amp;gt;.&lt;/P&gt;&lt;P&gt;Then on it is simple since I am using the Field symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just see in debugging mode and you will understand everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;fs_table&amp;gt; TYPE ANY TABLE,&lt;/P&gt;&lt;P&gt;                &amp;lt;fs_wa&amp;gt;    TYPE ANY,&lt;/P&gt;&lt;P&gt;                &amp;lt;fs_val&amp;gt;   TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT &amp;lt;fs_table&amp;gt; ASSIGNING &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT 3 OF STRUCTURE &amp;lt;fs_wa&amp;gt; TO &amp;lt;fs_val&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;fs_val&amp;gt; = 'Test Change'.&lt;/P&gt;&lt;P&gt;    MODIFY TABLE &amp;lt;fs_table&amp;gt; FROM &amp;lt;fs_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;    BREAK-POINT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to contact in case it is not clear .. I can give u another example .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points if this was helpful ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table/m-p/2152360#M454476</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2007-04-17T09:15:23Z</dc:date>
    </item>
  </channel>
</rss>

