<?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: Question regarding populating Internal table values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-populating-internal-table-values/m-p/858533#M47567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understood, you can achieve this using field symbols. Look at the following sample code. There I assume your internal tables &amp;lt;i&amp;gt;table_1&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;table_2&amp;lt;/i&amp;gt; having their header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;E.g.&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS &amp;lt;f&amp;gt; .

LOOP AT table_1 .
  
  ASSIGN COMPONENT (table_1-f1) 
         OF STRUCTURE table_2 
         TO &amp;lt;f&amp;gt; .
  IF sy-subrc = 0 .
    &amp;lt;f&amp;gt; = table_1-f2 .
  ENDIF .

ENDLOOP .

APPEND table_2 .
UNASSIGN &amp;lt;f&amp;gt; .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this much helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;P&gt;ssimsekler@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Feb 2005 22:40:21 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2005-02-16T22:40:21Z</dc:date>
    <item>
      <title>Question regarding populating Internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-populating-internal-table-values/m-p/858532#M47566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 internal tables as mentioned below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table I &lt;/P&gt;&lt;P&gt;F1    F2 &lt;/P&gt;&lt;P&gt;VBELN XXXX &lt;/P&gt;&lt;P&gt;AEDAT 01/01/2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1 &amp;amp; F2 are fields of Table I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table II&lt;/P&gt;&lt;P&gt;VBELN AEDAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to populate the values of Table I to &lt;/P&gt;&lt;P&gt;Table II based the field names which is one of the values in Table I ?. These 2 tables doesn't have the same fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After copying the values in Table II should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table II&lt;/P&gt;&lt;P&gt;VBELN AEDAT&lt;/P&gt;&lt;P&gt;XXXX 01/01/2005 &lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 22:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-populating-internal-table-values/m-p/858532#M47566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-16T22:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question regarding populating Internal table values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-populating-internal-table-values/m-p/858533#M47567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understood, you can achieve this using field symbols. Look at the following sample code. There I assume your internal tables &amp;lt;i&amp;gt;table_1&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;table_2&amp;lt;/i&amp;gt; having their header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;E.g.&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS &amp;lt;f&amp;gt; .

LOOP AT table_1 .
  
  ASSIGN COMPONENT (table_1-f1) 
         OF STRUCTURE table_2 
         TO &amp;lt;f&amp;gt; .
  IF sy-subrc = 0 .
    &amp;lt;f&amp;gt; = table_1-f2 .
  ENDIF .

ENDLOOP .

APPEND table_2 .
UNASSIGN &amp;lt;f&amp;gt; .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this much helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;P&gt;ssimsekler@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 22:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-regarding-populating-internal-table-values/m-p/858533#M47567</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-02-16T22:40:21Z</dc:date>
    </item>
  </channel>
</rss>

