<?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>Question Re: ABAP CDS View showing different data as compared to SQL Console in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572643#M4714396</link>
    <description>&lt;P&gt;Hi Alok,&lt;BR /&gt;&lt;BR /&gt;There might be a compatibility view in your case replacing the old table content with newer content based on a CDS.&lt;BR /&gt;check your table via SE11 --&amp;gt; extras --&amp;gt; Replacement object&lt;BR /&gt;if there is a replacement object available, try selecting the data from there instead.&lt;BR /&gt;&lt;A href="https://blogs.sap.com/2022/04/05/some-interesting-facts-of-compatibility-views-in-sap-bw-4hana-and-sap-s-4hana/"&gt;Some interesting Facts of Compatibility Views in SAP BW/4HANA and SAP S/4HANA | SAP Blogs&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 12:47:07 GMT</pubDate>
    <dc:creator>Christophe_SW</dc:creator>
    <dc:date>2022-10-18T12:47:07Z</dc:date>
    <item>
      <title>ABAP CDS View showing different data as compared to SQL Console</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaq-p/12572640</link>
      <description>&lt;P&gt;We have a requirement to get TEXT1 for T012T table with SKB1 table.&lt;/P&gt;
  &lt;P&gt;Select SKB1~BUKRS,SKB1~saknr,SKB1~HBKID,SKB1~HKTID,T012T~text1 from SKB1&lt;/P&gt;
  &lt;P&gt;LEFT OUTER JOIN T012T On SKB1~BUKRS = T012T~BUKRS AND&lt;/P&gt;
  &lt;P&gt; SKB1~HBKID = T012T~HBKID AND&lt;/P&gt;
  &lt;P&gt; SKB1~HKTID = T012T~HKTID&lt;/P&gt;
  &lt;P&gt;The above code is working fine in SQL Console.&lt;/P&gt;
  &lt;P&gt;But while below code is being written for CDS View.Its not working i.e. T012T.TEXT1 is not getting populated.&lt;/P&gt;
  &lt;P&gt;@AbapCatalog.sqlViewName: 'ZBW_C1'&lt;/P&gt;
  &lt;P&gt;@AbapCatalog.compiler.compareFilter: true&lt;/P&gt;
  &lt;P&gt;@AbapCatalog.preserveKey: true&lt;/P&gt;
  &lt;P&gt;@AccessControl.authorizationCheck: #CHECK&lt;/P&gt;
  &lt;P&gt;@EndUserText.label: 'ZBW_HBD_CDS3'&lt;/P&gt;
  &lt;P&gt;@Analytics.dataExtraction:{enabled: true}&lt;/P&gt;
  &lt;P&gt;@Analytics.dataCategory: #DIMENSION&lt;/P&gt;
  &lt;P&gt;define view ZBW_HBD_CDS3 as select distinct from&lt;/P&gt;
  &lt;P&gt;skb1&lt;/P&gt;
  &lt;P&gt;left outer join t012t on skb1.bukrs = t012t.bukrs and&lt;/P&gt;
  &lt;P&gt; skb1.hbkid = t012t.hbkid and&lt;/P&gt;
  &lt;P&gt; skb1.hktid = t012t.hktid&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt;key skb1.saknr as GL_Account,&lt;/P&gt;
  &lt;P&gt;skb1.bukrs as CompanyCode,&lt;/P&gt;
  &lt;P&gt;skb1.hbkid as HouseBank_ID,&lt;/P&gt;
  &lt;P&gt;skb1.hktid as BankAccount_ID,&lt;/P&gt;
  &lt;P&gt;t012t.text1 as HouseBank_Text,&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 09:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaq-p/12572640</guid>
      <dc:creator>former_member820215</dc:creator>
      <dc:date>2022-09-06T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS View showing different data as compared to SQL Console</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572641#M4714394</link>
      <description>&lt;P&gt;Hi Alok,&lt;/P&gt;&lt;P&gt;did you recognize that in your first SQL there is no DISTINCT, whereas in the CDS there is?!&lt;/P&gt;&lt;P&gt;I did not check these tables, this was just obvious.&lt;/P&gt;&lt;P&gt;BR, Martin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 11:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572641#M4714394</guid>
      <dc:creator>MKreitlein</dc:creator>
      <dc:date>2022-09-06T11:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS View showing different data as compared to SQL Console</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572642#M4714395</link>
      <description>&lt;P&gt;Even removing distinct doesn't change the output...&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 11:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572642#M4714395</guid>
      <dc:creator>former_member820215</dc:creator>
      <dc:date>2022-09-06T11:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS View showing different data as compared to SQL Console</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572643#M4714396</link>
      <description>&lt;P&gt;Hi Alok,&lt;BR /&gt;&lt;BR /&gt;There might be a compatibility view in your case replacing the old table content with newer content based on a CDS.&lt;BR /&gt;check your table via SE11 --&amp;gt; extras --&amp;gt; Replacement object&lt;BR /&gt;if there is a replacement object available, try selecting the data from there instead.&lt;BR /&gt;&lt;A href="https://blogs.sap.com/2022/04/05/some-interesting-facts-of-compatibility-views-in-sap-bw-4hana-and-sap-s-4hana/"&gt;Some interesting Facts of Compatibility Views in SAP BW/4HANA and SAP S/4HANA | SAP Blogs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 12:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/12572643#M4714396</guid>
      <dc:creator>Christophe_SW</dc:creator>
      <dc:date>2022-10-18T12:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS View showing different data as compared to SQL Console</title>
      <link>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/14014398#M4902976</link>
      <description>Hi my friend, thanks for this information.</description>
      <pubDate>Tue, 11 Feb 2025 19:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/abap-cds-view-showing-different-data-as-compared-to-sql-console/qaa-p/14014398#M4902976</guid>
      <dc:creator>Marcelo_Rodrigues1</dc:creator>
      <dc:date>2025-02-11T19:01:30Z</dc:date>
    </item>
  </channel>
</rss>

