<?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: Modify Dynamic Internal table content ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837160#M1131577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using FIELD-SYMBOLS assignation during a LOOP, there is no need to MODIFY the internal table, you only need MODIFY when using work area. (Look at [Access Methods to Individual Table Entries|http://help.sap.com/erp2005_ehp_04/helpdata/EN/fc/eb3612358411d1829f0000e829fbfe/frameset.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you have a BUDAT and a YEAR field in structure, so&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT &amp;lt;fs_t_son&amp;gt; ASSIGNING &amp;lt;wa_son&amp;gt;.
  ASSIGN COMPONENT 'BUDAT'  OF STRUCTURE &amp;lt;wa_son&amp;gt; TO &amp;lt;fs_date&amp;gt;.
  CHECK sy-subrc EQ 0.
  ASSIGN COMPONENT 'GJAHR'  OF STRUCTURE &amp;lt;wa_son&amp;gt; TO &amp;lt;fs_year&amp;gt;.
  CHECK sy-subrc EQ 0.
  &amp;lt;fs_year&amp;gt; = &amp;lt;fs_date&amp;gt;+0(4).
ENDLOOP.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2008 07:17:00 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-12-04T07:17:00Z</dc:date>
    <item>
      <title>Modify Dynamic Internal table content ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837159#M1131576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify the dynamic table content .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. I have a Date value in the dyn. int. table and I want to modify it to the Year value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

fied-symbol : &amp;lt;fs_year&amp;gt;    TYPE ANY.
  DATA: lv_string TYPE char20,
            lv_year   TYPE char04.

    LOOP AT &amp;lt;fs_t_son&amp;gt; ASSIGNING &amp;lt;wa_son&amp;gt;.
* Get the Field and Value for the Date/Year
      ASSIGN COMPONENT 'BUDAT'  OF STRUCTURE &amp;lt;wa_son&amp;gt; TO &amp;lt;fs_year&amp;gt;.
      IF sy-subrc = 0.
        CLEAR lv_string.
        MOVE &amp;lt;fs_year&amp;gt; TO lv_string.
        CLEAR lv_year.
        lv_year = lv_string.
      &amp;lt;fs_year&amp;gt; = lv_year.

" How to modify my dyn. int. table with this value of &amp;lt;fs_year&amp;gt;  now ????
      ENDIF.  " if sy-subrc = 0.  "Assign
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clues ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 06:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837159#M1131576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T06:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal table content ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837160#M1131577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using FIELD-SYMBOLS assignation during a LOOP, there is no need to MODIFY the internal table, you only need MODIFY when using work area. (Look at [Access Methods to Individual Table Entries|http://help.sap.com/erp2005_ehp_04/helpdata/EN/fc/eb3612358411d1829f0000e829fbfe/frameset.htm])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you have a BUDAT and a YEAR field in structure, so&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT &amp;lt;fs_t_son&amp;gt; ASSIGNING &amp;lt;wa_son&amp;gt;.
  ASSIGN COMPONENT 'BUDAT'  OF STRUCTURE &amp;lt;wa_son&amp;gt; TO &amp;lt;fs_date&amp;gt;.
  CHECK sy-subrc EQ 0.
  ASSIGN COMPONENT 'GJAHR'  OF STRUCTURE &amp;lt;wa_son&amp;gt; TO &amp;lt;fs_year&amp;gt;.
  CHECK sy-subrc EQ 0.
  &amp;lt;fs_year&amp;gt; = &amp;lt;fs_date&amp;gt;+0(4).
ENDLOOP.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837160#M1131577</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-12-04T07:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal table content ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837161#M1131578</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;to modify ur table we dont need structure assignment. Do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fied-symbol : &amp;lt;fs_year&amp;gt;    TYPE ANY.&lt;/P&gt;&lt;P&gt;  DATA:  lv_year   TYPE char04.&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt; LOOP AT &amp;lt;fs_t_son&amp;gt; ASSIGNING &amp;lt;wa_son&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;wa_son&amp;gt;-year = lv_year.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case by just assigning the desired value to work area will modify the internal table dynamically.&lt;/P&gt;&lt;P&gt;no need to use explicit data movement or modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal Kapoor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837161#M1131578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T07:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Dynamic Internal table content ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837162#M1131579</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 have assigned field-symbols &amp;lt;wa_son&amp;gt; to line of  &amp;lt;fs_t_son&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs_year&amp;gt; is pointing to BUDAT component of &amp;lt;wa_son&amp;gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence any changes made to &amp;lt;f_year&amp;gt; will directly get changed in &amp;lt;wa_son&amp;gt; and hence your internal table. [As you are using field-symbols in both assignments].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although, I am not able to understand functionality of this portion of your code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR lv_string.
        MOVE &amp;lt;fs_year&amp;gt; TO lv_string.
        CLEAR lv_year.
        lv_year = lv_string.
      &amp;lt;fs_year&amp;gt; = lv_year.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 07:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-dynamic-internal-table-content/m-p/4837162#M1131579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T07:30:43Z</dc:date>
    </item>
  </channel>
</rss>

