Snapshot: new training tasks (balanced generation), docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
24
tasks_gen/train/G1927/seed/i_job_cost.ddls.asddls
Normal file
24
tasks_gen/train/G1927/seed/i_job_cost.ddls.asddls
Normal file
@@ -0,0 +1,24 @@
|
||||
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
||||
@EndUserText.label: 'Service job cost'
|
||||
define view entity {{P}}I_JOB_COST
|
||||
as select from {{p}}job as h
|
||||
inner join {{p}}jobl as l on l.job_id = h.job_id
|
||||
{
|
||||
key h.job_id as job_id,
|
||||
h.customer as customer_name,
|
||||
h.calc_mode as calc_mode_cd,
|
||||
h.group_code as group_code,
|
||||
h.job_date as job_date,
|
||||
sum( l.work_hours ) as hours_sum,
|
||||
count( * ) as line_count,
|
||||
sum( case when h.calc_mode = 'F'
|
||||
then cast( l.rate as abap.dec( 21, 4 ) )
|
||||
else cast( l.work_hours * l.rate as abap.dec( 21, 4 ) )
|
||||
end ) as value_sum
|
||||
}
|
||||
group by
|
||||
h.job_id,
|
||||
h.customer,
|
||||
h.calc_mode,
|
||||
h.group_code,
|
||||
h.job_date
|
||||
13
tasks_gen/train/G1927/seed/job.tabl.asabap
Normal file
13
tasks_gen/train/G1927/seed/job.tabl.asabap
Normal file
@@ -0,0 +1,13 @@
|
||||
@EndUserText.label : 'Service job'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}job {
|
||||
key client : abap.clnt not null;
|
||||
key job_id : abap.char(10) not null;
|
||||
customer : abap.char(10);
|
||||
calc_mode : abap.char(1);
|
||||
group_code : abap.char(2);
|
||||
job_date : abap.dats;
|
||||
}
|
||||
12
tasks_gen/train/G1927/seed/jobl.tabl.asabap
Normal file
12
tasks_gen/train/G1927/seed/jobl.tabl.asabap
Normal file
@@ -0,0 +1,12 @@
|
||||
@EndUserText.label : 'Service job work line'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}jobl {
|
||||
key client : abap.clnt not null;
|
||||
key job_id : abap.char(10) not null;
|
||||
key line_no : abap.int4 not null;
|
||||
work_hours : abap.dec(5,2);
|
||||
rate : abap.dec(15,2);
|
||||
}
|
||||
Reference in New Issue
Block a user