<?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 Update table after join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255534#M1214052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dear Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made the program with simple join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  XXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: AAA, BBB, CCC, DDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single&lt;/P&gt;&lt;P&gt;       b~field2&lt;/P&gt;&lt;P&gt;       c~field3&lt;/P&gt;&lt;P&gt;       a~field1&lt;/P&gt;&lt;P&gt;       into (DDD-field4, DDD-field5, DDD-field6)&lt;/P&gt;&lt;P&gt;       from AAA AS a&lt;/P&gt;&lt;P&gt;       INNER JOIN BBB AS b ON a&lt;SUB&gt;field1 = b&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;       AND a&lt;SUB&gt;fieldx = b&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;       INNER JOIN CCC AS c ON a&lt;SUB&gt;field1 = c&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;       AND a&lt;SUB&gt;fieldx = c&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;       WHERE a~fieldx = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update CCC from CCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is, how can I update the table CCC after the join is made?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 09:23:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-26T09:23:09Z</dc:date>
    <item>
      <title>Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255534#M1214052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dear Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made the program with simple join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  XXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: AAA, BBB, CCC, DDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single&lt;/P&gt;&lt;P&gt;       b~field2&lt;/P&gt;&lt;P&gt;       c~field3&lt;/P&gt;&lt;P&gt;       a~field1&lt;/P&gt;&lt;P&gt;       into (DDD-field4, DDD-field5, DDD-field6)&lt;/P&gt;&lt;P&gt;       from AAA AS a&lt;/P&gt;&lt;P&gt;       INNER JOIN BBB AS b ON a&lt;SUB&gt;field1 = b&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;       AND a&lt;SUB&gt;fieldx = b&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;       INNER JOIN CCC AS c ON a&lt;SUB&gt;field1 = c&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;       AND a&lt;SUB&gt;fieldx = c&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;       WHERE a~fieldx = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update CCC from CCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is, how can I update the table CCC after the join is made?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255534#M1214052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T09:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255535#M1214053</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 try to update CCC with CCC. How should this change somethink??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to update CCC from an other workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255535#M1214053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255536#M1214054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Maintenance View in SE11 using the condition specified in the select query.&lt;/P&gt;&lt;P&gt;Use that View to update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255536#M1214054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255537#M1214055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update ccc &lt;STRONG&gt;from table&lt;/STRONG&gt; CCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Regards,&lt;/P&gt;&lt;P&gt;Amuktha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255537#M1214055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255538#M1214056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, It was small mistake in the explanation : should be update DDD from ddd....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255538#M1214056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T09:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255539#M1214057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other Explanation of the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT XXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: AAA, BBB, CCC, DDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single&lt;/P&gt;&lt;P&gt;b~field2&lt;/P&gt;&lt;P&gt;c~field3&lt;/P&gt;&lt;P&gt;a~field1&lt;/P&gt;&lt;P&gt;into (DDD-field4, DDD-field5, DDD-field6)&lt;/P&gt;&lt;P&gt;from AAA AS a&lt;/P&gt;&lt;P&gt;INNER JOIN BBB AS b ON a&lt;SUB&gt;field1 = b&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;fieldx = b&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;INNER JOIN CCC AS c ON a&lt;SUB&gt;field1 = c&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;fieldx = c&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;WHERE a~fieldx = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to update DDD Table in the database (I don't want to use view, the example is made directly on database tables without creating internal tables)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 11:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255539#M1214057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255540#M1214058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better way is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the work area to save three variables of DDD and then Update the DDD table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__Naveen Inuganti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 11:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255540#M1214058</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2009-02-26T11:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255541#M1214059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tables: AAA, BBB, CCC, DDD.&lt;/P&gt;&lt;P&gt;data: idata TYPE STANDARD TABLE OF  ddd&lt;/P&gt;&lt;P&gt;data: wa_data TYPE ddd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;into idata&lt;/P&gt;&lt;P&gt;from AAA AS a&lt;/P&gt;&lt;P&gt;INNER JOIN BBB AS b ON a&lt;SUB&gt;field1 = b&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;fieldx = b&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;INNER JOIN CCC AS c ON a&lt;SUB&gt;field1 = c&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;fieldx = c&lt;/SUB&gt;fieldx&lt;/P&gt;&lt;P&gt;WHERE a~fieldx = 'A'.&lt;/P&gt;&lt;P&gt;collect idata.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at idata into wa_data.&lt;/P&gt;&lt;P&gt;                  update ddd from wa_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nicole Lorenz on Feb 26, 2009 6:22 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nicole Lorenz on Feb 26, 2009 6:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 11:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255541#M1214059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T11:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255542#M1214060</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;&lt;/P&gt;&lt;P&gt;Pl.check, if it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables: AAA, BBB, CCC, DDD.

select single
b~field2
c~field3
a~field1
into (DDD-field4, DDD-field5, DDD-field6)
from AAA AS a
INNER JOIN BBB AS b ON a~field1 = b~field2
AND a~fieldx = b~fieldx
INNER JOIN CCC AS c ON a~field1 = c~field1
AND a~fieldx = c~fieldx
WHERE a~fieldx = 'A'.

UPDATE DDD SET: field4 = ddd-field4,
                field5 = ddd-field5,
                field6 = ddd-field6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 11:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255542#M1214060</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-02-26T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255543#M1214061</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;I've created the select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: BBB, CCC, AAA, DDD.&lt;/P&gt;&lt;P&gt;Data: idata TYPE STANDARD TABLE OF DDD.&lt;/P&gt;&lt;P&gt;Data: wa_data TYPE DDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;       b~field1&lt;/P&gt;&lt;P&gt;       c~field2&lt;/P&gt;&lt;P&gt;       a~field3&lt;/P&gt;&lt;P&gt;       into idata&lt;/P&gt;&lt;P&gt;       from AAA AS a&lt;/P&gt;&lt;P&gt;       INNER JOIN BBB AS b ON a&lt;SUB&gt;field4 = b&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;       AND a&lt;SUB&gt;field3 = b&lt;/SUB&gt;field5&lt;/P&gt;&lt;P&gt;       INNER JOIN CCC AS c ON a&lt;SUB&gt;field6 = c&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;       AND a&lt;SUB&gt;field3 = c&lt;/SUB&gt;field7&lt;/P&gt;&lt;P&gt;       WHERE a~field3 = 'A'.&lt;/P&gt;&lt;P&gt;       collect idata.&lt;/P&gt;&lt;P&gt;       endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       loop at idata into wa_data.&lt;/P&gt;&lt;P&gt;       update DDD from wa_data.&lt;/P&gt;&lt;P&gt;       endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got the error: you cannot use an internal table as a work area. What is the reason for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255543#M1214061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T13:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255544#M1214062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data: wa_data TYPE DDD.&lt;/P&gt;&lt;P&gt; is the mistake.&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;P&gt; wa_data like line of idata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bobi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 15:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255544#M1214062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T15:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255545#M1214063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tables: BBB, CCC, AAA, DDD.&lt;/P&gt;&lt;P&gt;Data: idata TYPE STANDARD TABLE OF DDD.&lt;/P&gt;&lt;P&gt;Data: wa_data like line of idata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;b~field1&lt;/P&gt;&lt;P&gt;c~field2&lt;/P&gt;&lt;P&gt;a~field3&lt;/P&gt;&lt;P&gt;into idata&lt;/P&gt;&lt;P&gt;from AAA AS a&lt;/P&gt;&lt;P&gt;INNER JOIN BBB AS b ON a&lt;SUB&gt;field4 = b&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;field3 = b&lt;/SUB&gt;field5&lt;/P&gt;&lt;P&gt;INNER JOIN CCC AS c ON a&lt;SUB&gt;field6 = c&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;field3 = c&lt;/SUB&gt;field7&lt;/P&gt;&lt;P&gt;WHERE a~field3 = 'A'.&lt;/P&gt;&lt;P&gt;collect idata.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at idata into wa_data.&lt;/P&gt;&lt;P&gt;update DDD from wa_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same error: You cannot use an internal table as work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 16:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255545#M1214063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255546#M1214064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please use code tags. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT b~field1 c~field2 a~field3
  INTO wa_data                          &amp;lt;====
  FROM aaa AS a
    INNER JOIN bbb AS b ON a~field4 = b~field1
                       AND a~field3 = b~field5
    INNER JOIN ccc AS c ON a~field6 = c~field2
                       AND a~field3 = c~field7
  WHERE a~field3 = 'A'.
  COLLECT idata.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 17:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255546#M1214064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T17:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255547#M1214065</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;use the statements below to compare the mistake you have done in coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables: BBB, CCC, AAA, DDD.
Data: idata TYPE STANDARD TABLE OF DDD.
Data: wa_data like line of idata.

select
b~field1
c~field2
a~field3
"into idata                           idata is declared as internal table of DDD without header line. so this 
" created a problem because you have not entered into table addition. Instead of this statement use the 
" statement given below
into wa_data
from AAA AS a
INNER JOIN BBB AS b ON a~field4 = b~field1
AND a~field3 = b~field5
INNER JOIN CCC AS c ON a~field6 = c~field2
AND a~field3 = c~field7
WHERE a~field3 = 'A'.
collect wa_data to idata.                       " also change this statement from collect idata to the given 
" statement
endselect.

loop at idata into wa_data.
update DDD from wa_data.
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;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 18:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255547#M1214065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T18:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255548#M1214066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Siddarth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified the select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: BBB, CCC, AAA, DDD.&lt;/P&gt;&lt;P&gt;Data: idata TYPE STANDARD TABLE OF DDD.&lt;/P&gt;&lt;P&gt;Data: wa_data like line of idata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;b~field1&lt;/P&gt;&lt;P&gt;c~field2&lt;/P&gt;&lt;P&gt;a~field3&lt;/P&gt;&lt;P&gt;into wa_data&lt;/P&gt;&lt;P&gt;from AAA AS a&lt;/P&gt;&lt;P&gt;   INNER JOIN BBB AS b ON a&lt;SUB&gt;field4 = b&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;field3 = b&lt;/SUB&gt;field5&lt;/P&gt;&lt;P&gt;   INNER JOIN CCC AS c ON a&lt;SUB&gt;field6 = c&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;field3 = c&lt;/SUB&gt;field7&lt;/P&gt;&lt;P&gt;WHERE a~field3 = 'A'.&lt;/P&gt;&lt;P&gt;collect wa_data into idata.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at idata into wa_data.&lt;/P&gt;&lt;P&gt;update DDD from wa_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any syntax error but update doesn't work. it works for this select (without using int tables and wa):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: BBB, CCC, AAA, DDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;b~field1&lt;/P&gt;&lt;P&gt;c~field2&lt;/P&gt;&lt;P&gt;a~field3&lt;/P&gt;&lt;P&gt;into (DDD-field, DDD-field, DDD-field)&lt;/P&gt;&lt;P&gt;from AAA AS a&lt;/P&gt;&lt;P&gt;   INNER JOIN BBB AS b ON a&lt;SUB&gt;field4 = b&lt;/SUB&gt;field1&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;field3 = b&lt;/SUB&gt;field5&lt;/P&gt;&lt;P&gt;   INNER JOIN CCC AS c ON a&lt;SUB&gt;field6 = c&lt;/SUB&gt;field2&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;field3 = c&lt;/SUB&gt;field7&lt;/P&gt;&lt;P&gt;WHERE a~field3 = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update DDD.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 08:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255548#M1214066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T08:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255549#M1214067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstly please check the key fields of table DDD and also check if wa is changing the value of the key fields in this case update will not work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still you didn't understand pls. paste the key fields of DDD table and one example value of the table&lt;/P&gt;&lt;P&gt;and also the fields and value of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 08:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255549#M1214067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T08:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update table after join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255550#M1214068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Siddarth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The both selects work now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 09:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-after-join/m-p/5255550#M1214068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T09:04:19Z</dc:date>
    </item>
  </channel>
</rss>

