SAP CDS HAVING CLAUSE V1
Get Example source ABAP code based on a different SAP table
• HAVING ABAP_CDS_SELECT_V1
ABAP_CDS_DDL - DDIC-Based View,
ABAP_SYNTAX
What does it do?
Defines a
Removes all rows from the result set that do not meet the condition
Latest notes:
NON_V5_HINTS
ABAP_HINT_END
ABAP_EXAMPLE_VX5
When accessed, the CDS view
define view sales_order as
select from snwd_so
inner join
snwd_bpa on buyer_guid = snwd_bpa.node_key
{ key bp_role as role, //e.g. customer or supplier
count(distinct buyer_guid) as partners_count,
sum(snwd_so.gross_amount) as sum_gross_amount }
where snwd_so.currency_code = 'EUR'
group by bp_role
having sum(snwd_so.gross_amount) > 100000.00;>
ABAP_EXAMPLE_END