Pipeline controller: plan 2 (hard +, error +50 %), backlog throttle, 2 trajectory workers, stop rules, summaries every 50; budget reserve
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
18
tasks_gen/train/G1000/reference/i_cont_weight.ddls.asddls
Normal file
18
tasks_gen/train/G1000/reference/i_cont_weight.ddls.asddls
Normal file
@@ -0,0 +1,18 @@
|
||||
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
||||
@EndUserText.label: 'Container weight check'
|
||||
define view entity {{P}}I_CONT_WEIGHT
|
||||
as select from {{p}}cont as cont
|
||||
inner join {{p}}weigh as weigh on weigh.cont_id = cont.cont_id
|
||||
{
|
||||
key cont.cont_id as cont_id,
|
||||
cont.customer as customer,
|
||||
cont.decl_kg as decl_kg,
|
||||
weigh.meas_kg as meas_kg,
|
||||
cast( abs( weigh.meas_kg - cont.decl_kg ) as abap.dec(15,2) ) as deviation_kg,
|
||||
division( abs( weigh.meas_kg - cont.decl_kg ) * 100, cont.decl_kg, 2 ) as deviation_pct,
|
||||
case
|
||||
when weigh.meas_kg > cont.max_kg then 'HOLD'
|
||||
when division( abs( weigh.meas_kg - cont.decl_kg ) * 100, cont.decl_kg, 2 ) > 5 then 'WARN'
|
||||
else 'LOAD'
|
||||
end as status
|
||||
}
|
||||
Reference in New Issue
Block a user