<?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 How to update table 2 based from table 1. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438178#M208670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Z tables and I need to update table 2 based from table 1. Tables 1 &amp;amp; 2 have 2 fields which are the same namely &lt;/P&gt;&lt;P&gt;KUNNR and CDSEQ. Now, I want to update the ZADDRESS field of table 2 based from table1-zaddress where table1-kunnr and &lt;/P&gt;&lt;P&gt;table1-cdseq is equal to table2-kunnr and table2-cdseq. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2006 09:50:49 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2006-06-20T09:50:49Z</dc:date>
    <item>
      <title>How to update table 2 based from table 1.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438178#M208670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 Z tables and I need to update table 2 based from table 1. Tables 1 &amp;amp; 2 have 2 fields which are the same namely &lt;/P&gt;&lt;P&gt;KUNNR and CDSEQ. Now, I want to update the ZADDRESS field of table 2 based from table1-zaddress where table1-kunnr and &lt;/P&gt;&lt;P&gt;table1-cdseq is equal to table2-kunnr and table2-cdseq. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thank you guys and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 09:50:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438178#M208670</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-06-20T09:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to update table 2 based from table 1.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438179#M208671</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;the only way out would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. use internal table and move the content based on the entries and selection criteria mentioned and say&lt;/P&gt;&lt;P&gt;modify dbtab from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. there are specific events associated with each tableu can make use of that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 09:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438179#M208671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-20T09:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to update table 2 based from table 1.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438180#M208672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: itab contains three fields kunnr cdseq and zaddress,&lt;/P&gt;&lt;P&gt;      wa_itab type line of itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr&lt;/P&gt;&lt;P&gt;       cdseq&lt;/P&gt;&lt;P&gt;       zaddress&lt;/P&gt;&lt;P&gt;from table1&lt;/P&gt;&lt;P&gt;     into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab&lt;/P&gt;&lt;P&gt;  update table2 set zaddress = wa_itab-address&lt;/P&gt;&lt;P&gt;         where kunnr = wa_itab-kunnr&lt;/P&gt;&lt;P&gt;               cdseq = wa_itab-cdseq&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 09:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438180#M208672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-20T09:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to update table 2 based from table 1.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438181#M208673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viraylab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;P&gt;DATA : begin of wa,&lt;/P&gt;&lt;P&gt;       zaddress TYPE ztable1-zaddress,&lt;/P&gt;&lt;P&gt;       end of wa. &lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ztable1 &lt;/P&gt;&lt;P&gt;                INTO corresponding fields of wa &lt;/P&gt;&lt;P&gt;  WHERE KUNNR = Ztable2-kunnr and&lt;/P&gt;&lt;P&gt;        CDSEQ = Ztable2-CDSEQ. &lt;/P&gt;&lt;P&gt;UPDATE ztable2 FROM wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 09:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438181#M208673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-20T09:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to update table 2 based from table 1.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438182#M208674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viraylab,&lt;/P&gt;&lt;P&gt; Please see this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;Report :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; data : itab type table of table1 with header line,&lt;/P&gt;&lt;P&gt;        jtab type table of table2 with header line,&lt;/P&gt;&lt;P&gt;        wa like line of itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; select * from table1 into table itab.&lt;/P&gt;&lt;P&gt; select * from table2 into table jtab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; loop at itab into wa.&lt;/P&gt;&lt;P&gt;  read table jtab with key kunnr = itab-kunnr and&lt;/P&gt;&lt;P&gt;                           cdseq = itab-cdseq.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   jtab-address = itab-address.&lt;/P&gt;&lt;P&gt;   modify jtab.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt; modify table2 from jtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If found helpful, please do reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 10:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-update-table-2-based-from-table-1/m-p/1438182#M208674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-20T10:21:01Z</dc:date>
    </item>
  </channel>
</rss>

