Snapshot: new training tasks (balanced generation), docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
21
tasks_gen/train/G1924/seed/i_mill_charge.ddls.asddls
Normal file
21
tasks_gen/train/G1924/seed/i_mill_charge.ddls.asddls
Normal file
@@ -0,0 +1,21 @@
|
||||
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
||||
@EndUserText.label: 'Milling charge'
|
||||
define view entity {{P}}I_MILL_CHARGE
|
||||
with parameters
|
||||
p_min_charge : abap.dec( 15, 2 )
|
||||
as select from {{p}}milllot as lot
|
||||
inner join {{p}}milljob as job on job.job_id = lot.job_id
|
||||
{
|
||||
key job.job_id as job_id,
|
||||
job.farmer as farmer,
|
||||
count( * ) as lot_count,
|
||||
sum( lot.sacks ) as sack_count,
|
||||
sum( lot.sacks * lot.mill_rate ) as mill_amount,
|
||||
case when sum( lot.sacks * lot.mill_rate ) < cast( '25.00' as abap.dec( 15, 2 ) )
|
||||
then cast( '25.00' as abap.dec( 15, 2 ) )
|
||||
else sum( lot.sacks * lot.mill_rate )
|
||||
end as charge_amount
|
||||
}
|
||||
group by
|
||||
job.job_id,
|
||||
job.farmer
|
||||
11
tasks_gen/train/G1924/seed/milljob.tabl.asabap
Normal file
11
tasks_gen/train/G1924/seed/milljob.tabl.asabap
Normal file
@@ -0,0 +1,11 @@
|
||||
@EndUserText.label : 'Milling job header'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}milljob {
|
||||
key client : abap.clnt not null;
|
||||
key job_id : abap.char(10) not null;
|
||||
farmer : abap.char(10);
|
||||
delivery_date : abap.dats;
|
||||
}
|
||||
13
tasks_gen/train/G1924/seed/milllot.tabl.asabap
Normal file
13
tasks_gen/train/G1924/seed/milllot.tabl.asabap
Normal file
@@ -0,0 +1,13 @@
|
||||
@EndUserText.label : 'Milling job grain lot'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}milllot {
|
||||
key client : abap.clnt not null;
|
||||
key job_id : abap.char(10) not null;
|
||||
key lot_no : abap.int4 not null;
|
||||
grain : abap.char(10);
|
||||
sacks : abap.int4;
|
||||
mill_rate : abap.dec(15,2);
|
||||
}
|
||||
Reference in New Issue
Block a user