Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: ABAP CDS view with GROUP BY clause returning duplicates

$
0
0

You might want to include the case-condition columns in the group by clause instead of the columns you use for the case-condition columns.

Grouping is done in reference to the output of the query (the projection list).

 

Also, not sure whether this is handled automatically in ABAP CDS or not, I don't see a MANDT/CLIENT field in the selection/join condition. If ABAP CDS doesn't handle this for you, this could be a reason for data duplication.

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>