@AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'Grade of a tree sapling' define view entity {{P}}I_PLANT_GRADE as select from {{p}}plant as sapling { key sapling.tree_id as tree_id, sapling.species as species, cast( sapling.height_cm as abap.dec( 15, 2 ) ) / 100 as height_m, case when sapling.height_cm < 100 then 'S' when sapling.height_cm < 200 then 'M' else 'L' end as grade, concat( concat( case when sapling.height_cm < 100 then 'S' when sapling.height_cm < 200 then 'M' else 'L' end, '-' ), sapling.species ) as grade_text }