<?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: Resultset value for ambiguous column in Open SQL Join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468559#M15011</link>
    <description>&lt;P&gt;Doesn't the &lt;A href="http://help-legacy.sap.com/abapdocu_751/en/abapinto_clause.htm#!ABAP_ALTERNATIVE_1@1@"&gt;online documentation for CORRESPONDING FIELDS OF&lt;/A&gt; explicitly states that 'if CORRESPONDING FIELDS
is specified. If a column name appears multiple times and no alternative column name was granted, the
last column listed is assigned.'&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 14:04:05 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-05-24T14:04:05Z</dc:date>
    <item>
      <title>Resultset value for ambiguous column in Open SQL Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468558#M15010</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I would like to know the behaviour of an Open SQL Statement where a column is ambiguously selected from several tables.&lt;/P&gt;&lt;P&gt;Example (assuming zentity1 and zentity2 both have a column col2 with different values for the join condition of col1):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        SELECT  *
         FROM zentity1
                         INNER JOIN zentity2

                         ON zentity1~col1 = zentity2~col1

         INTO CORRESPONDING FIELDS OF TABLE @result
.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can you control in advance whether the value of zentity1~col2 or of zentity2~col2 will be copied to the result table?&lt;/P&gt;&lt;P&gt;When testing, it seemed like the column value of the table specified last (in this case zentity2) would be copied. When specifiying a projection other than * (e.g. SELECT zentity1~col2, zentity2~col2), the value of the column specified last would be copied.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can you rely on this behaviour? Or is there a way to retrieve all columns of zentity1 except for the ambiguous ones, without specifying the whole column list (e.g. by excluding columns explicitly)?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestions,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 12:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468558#M15010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-24T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Resultset value for ambiguous column in Open SQL Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468559#M15011</link>
      <description>&lt;P&gt;Doesn't the &lt;A href="http://help-legacy.sap.com/abapdocu_751/en/abapinto_clause.htm#!ABAP_ALTERNATIVE_1@1@"&gt;online documentation for CORRESPONDING FIELDS OF&lt;/A&gt; explicitly states that 'if CORRESPONDING FIELDS
is specified. If a column name appears multiple times and no alternative column name was granted, the
last column listed is assigned.'&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 14:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468559#M15011</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-05-24T14:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Resultset value for ambiguous column in Open SQL Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468560#M15012</link>
      <description>&lt;P&gt;Unfortunately, I missed this information since I checked section CORRESPONDING FIELDS OF TABLE of the documentation, not the section about single work areas. As there is a reference to the addition linked by you, stating that the rules for single work areas also apply on a multi-row result set, your reply answers my question.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 15:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/resultset-value-for-ambiguous-column-in-open-sql-join/m-p/468560#M15012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-24T15:08:35Z</dc:date>
    </item>
  </channel>
</rss>

