@AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'Cleaning cost per site' define view entity {{P}}I_SITE_COST as select from {{p}}cln_job { key site_id as site_id, count( * ) as job_count, sum( duration ) as total_hours, max( cast( duration * hour_rate as abap.dec( 15, 2 ) ) ) as total_cost } where job_status <> 'C' group by site_id