Snapshot: new training tasks (balanced generation), docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
29
tasks_gen/train/G1931/seed/i_rental_fee.ddls.asddls
Normal file
29
tasks_gen/train/G1931/seed/i_rental_fee.ddls.asddls
Normal file
@@ -0,0 +1,29 @@
|
||||
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
||||
@EndUserText.label: 'Rental fee'
|
||||
define view entity {{P}}I_RENTAL_FEE
|
||||
as select from {{p}}rental as rental
|
||||
{
|
||||
key rental.rental_id as rental_id,
|
||||
rental.car_group as car_group,
|
||||
rental.rental_days as rental_days,
|
||||
cast(
|
||||
case when rental.rental_days >= 7
|
||||
then case when rental.car_group = 'C' then case when rental.season = 'H' then 96 else 80 end
|
||||
when rental.car_group = 'B' then case when rental.season = 'H' then 60 else 50 end
|
||||
else case when rental.season = 'H' then 36 else 30 end
|
||||
end * ( rental.rental_days - 1 )
|
||||
+ case when rental.car_group = 'C' then 25
|
||||
when rental.car_group = 'B' then 15
|
||||
else 10
|
||||
end
|
||||
else case when rental.car_group = 'C' then case when rental.season = 'H' then 96 else 80 end
|
||||
when rental.car_group = 'B' then case when rental.season = 'H' then 60 else 50 end
|
||||
else case when rental.season = 'H' then 36 else 30 end
|
||||
end * rental.rental_days
|
||||
+ case when rental.car_group = 'C' then 25
|
||||
when rental.car_group = 'B' then 15
|
||||
else 10
|
||||
end
|
||||
end
|
||||
as abap.dec( 15, 2 ) ) as fee
|
||||
}
|
||||
12
tasks_gen/train/G1931/seed/rental.tabl.asabap
Normal file
12
tasks_gen/train/G1931/seed/rental.tabl.asabap
Normal file
@@ -0,0 +1,12 @@
|
||||
@EndUserText.label : 'Rental'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}rental {
|
||||
key client : abap.clnt not null;
|
||||
key rental_id : abap.char(10) not null;
|
||||
car_group : abap.char(1);
|
||||
season : abap.char(1);
|
||||
rental_days : abap.int4;
|
||||
}
|
||||
Reference in New Issue
Block a user