Harness: runner, generator, tasks T01 T13 T14 T15, CLAUDE.md
This commit is contained in:
14
tasks/T15/reference/i_order_total.ddls.asddls
Normal file
14
tasks/T15/reference/i_order_total.ddls.asddls
Normal file
@@ -0,0 +1,14 @@
|
||||
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
||||
@EndUserText.label: 'Order totals'
|
||||
define view entity {{P}}I_ORDER_TOTAL
|
||||
as select from {{p}}ord as head
|
||||
inner join {{p}}itm as item on item.order_id = head.order_id
|
||||
{
|
||||
key head.order_id as order_id,
|
||||
head.customer as customer,
|
||||
count( * ) as item_count,
|
||||
sum( cast( item.quantity as abap.dec( 10, 0 ) ) * item.price ) as total_amount
|
||||
}
|
||||
group by
|
||||
head.order_id,
|
||||
head.customer
|
||||
Reference in New Issue
Block a user