Snapshot: new training tasks (balanced generation), docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
17
tasks_gen/train/G1941/seed/compost_seed.clas.abap
Normal file
17
tasks_gen/train/G1941/seed/compost_seed.clas.abap
Normal file
@@ -0,0 +1,17 @@
|
||||
CLASS {{p}}compost_seed DEFINITION PUBLIC FINAL CREATE PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
CLASS {{p}}compost_seed IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DELETE FROM {{p}}gwaste.
|
||||
INSERT {{p}}gwaste FROM TABLE @( VALUE #(
|
||||
( delivery_id = 1 round_id = 'R1001' waste_type = 'GRAS' deliv_date = '20260110' weight_kg = '1200.00' )
|
||||
( delivery_id = 2 round_id = 'R1001' waste_type = 'HEDG' deliv_date = '20260210' weight_kg = '800.00' )
|
||||
( delivery_id = 3 round_id = 'R1002' waste_type = 'BRAN' deliv_date = '20260115' weight_kg = '3000.00' )
|
||||
( delivery_id = 4 round_id = 'R1003' waste_type = 'GRAS' deliv_date = '20251231' weight_kg = '5000.00' )
|
||||
( delivery_id = 5 round_id = 'R1003' waste_type = 'BRAN' deliv_date = '20260301' weight_kg = '200.00' ) ) ).
|
||||
out->write( sy-dbcnt ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
13
tasks_gen/train/G1941/seed/gwaste.tabl.asabap
Normal file
13
tasks_gen/train/G1941/seed/gwaste.tabl.asabap
Normal file
@@ -0,0 +1,13 @@
|
||||
@EndUserText.label : 'Green waste deliveries'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}gwaste {
|
||||
key client : abap.clnt not null;
|
||||
key delivery_id : abap.int4 not null;
|
||||
round_id : abap.char(6);
|
||||
waste_type : abap.char(4);
|
||||
deliv_date : abap.dats;
|
||||
weight_kg : abap.dec(15,2);
|
||||
}
|
||||
Reference in New Issue
Block a user