<?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 Left outer join in 7.4 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346057#M6525</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm writing a FM for extracting data to BW.&lt;/P&gt;&lt;P&gt;I'm using the OPEN CURSOR for the selection.&lt;/P&gt;&lt;P&gt;The select is from 4 different tables using left outer join, with WHERE clause on update date of each one of the tables:&lt;/P&gt;&lt;P&gt;Table A, table B, table C, table D.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A Left outer B on A~KET = B~KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;   Left outer C on A~KET = C~KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;   Left outer D on A~KET = D~KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE A~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;               B~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;               C~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;               D~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to create a delta every time a records is updated in one of the tables.&lt;/P&gt;&lt;P&gt;Therefor, in the WHERE clause I check each one of the tables.&lt;/P&gt;&lt;P&gt;The problem is that I can't check the date in all right tables.&lt;/P&gt;&lt;P&gt;I also "break" the join because of the open cursor.&lt;/P&gt;&lt;P&gt;Is there any solution for this restriction? &lt;/P&gt;&lt;P&gt;I searched the forums for one but couldn't find any.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2017 11:38:50 GMT</pubDate>
    <dc:creator>former_member342346</dc:creator>
    <dc:date>2017-01-11T11:38:50Z</dc:date>
    <item>
      <title>Left outer join in 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346057#M6525</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm writing a FM for extracting data to BW.&lt;/P&gt;&lt;P&gt;I'm using the OPEN CURSOR for the selection.&lt;/P&gt;&lt;P&gt;The select is from 4 different tables using left outer join, with WHERE clause on update date of each one of the tables:&lt;/P&gt;&lt;P&gt;Table A, table B, table C, table D.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A Left outer B on A~KET = B~KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;   Left outer C on A~KET = C~KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;   Left outer D on A~KET = D~KEY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE A~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;               B~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;               C~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;               D~UPD_DT IN DATE_RANGE OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to create a delta every time a records is updated in one of the tables.&lt;/P&gt;&lt;P&gt;Therefor, in the WHERE clause I check each one of the tables.&lt;/P&gt;&lt;P&gt;The problem is that I can't check the date in all right tables.&lt;/P&gt;&lt;P&gt;I also "break" the join because of the open cursor.&lt;/P&gt;&lt;P&gt;Is there any solution for this restriction? &lt;/P&gt;&lt;P&gt;I searched the forums for one but couldn't find any.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 11:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346057#M6525</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2017-01-11T11:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Left outer join in 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346058#M6526</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/14841-sczic.png" /&gt;&lt;/P&gt;what exactly is the Problem?&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Stefan Seeburger&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 12:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346058#M6526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-01-11T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Left outer join in 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346059#M6527</link>
      <description>&lt;P&gt;Thanks Stefan...&lt;/P&gt;&lt;P&gt;when I write the select with the WHERE clause as I explained in my original post I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The elements in the "SELECT LIST" list must be separated using commas.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I searched the forum for the reason for this error I found out that it is because of the WHERE...&lt;/P&gt;&lt;P&gt;I removed all the right tables from the where clause and the error was solved.&lt;/P&gt;&lt;P&gt;As it was explained, this is a new behavior in 7.4.&lt;/P&gt;&lt;P&gt;Do you check your code in sane release?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 12:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346059#M6527</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2017-01-11T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Left outer join in 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346060#M6528</link>
      <description>&lt;P&gt;Why didn't you say so from the beginning?&lt;/P&gt;&lt;P&gt;From Release 7.4 on, there are &lt;A href="http://help.sap.com/abapdocu_751/en/index.htm?file=abenopensql_strict_modes.htm"&gt;stricter syntax rules for Open SQL when new syntax constructs are used&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Simply follow the stricter rules as they are documented. Especially lists should be separated by commas and host variables should be preceded by @.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 12:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346060#M6528</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-01-11T12:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Left outer join in 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346061#M6529</link>
      <description>&lt;P&gt;Thanks Horst....that helped me solve my problem.&lt;/P&gt;&lt;P&gt;By the way... I mentioned the version 7.4 in the topic of this question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 14:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346061#M6529</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2017-01-11T14:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Left outer join in 7.4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346062#M6530</link>
      <description>&lt;P&gt;And where from that description should one has guessed the syntax error (which in fact explains what should be done)?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 14:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/left-outer-join-in-7-4/m-p/346062#M6530</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-01-11T14:34:17Z</dc:date>
    </item>
  </channel>
</rss>

