Snapshot: new training tasks (balanced generation), docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
10
tasks_gen/train/G1944/seed/kntype.tabl.asabap
Normal file
10
tasks_gen/train/G1944/seed/kntype.tabl.asabap
Normal file
@@ -0,0 +1,10 @@
|
||||
@EndUserText.label : 'Knife type price list'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}kntype {
|
||||
key client : abap.clnt not null;
|
||||
key type_id : abap.char(5) not null;
|
||||
price : abap.dec(15,2);
|
||||
}
|
||||
13
tasks_gen/train/G1944/seed/sharpen.tabl.asabap
Normal file
13
tasks_gen/train/G1944/seed/sharpen.tabl.asabap
Normal file
@@ -0,0 +1,13 @@
|
||||
@EndUserText.label : 'Knife sharpening items'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}sharpen {
|
||||
key client : abap.clnt not null;
|
||||
key item_id : abap.int4 not null;
|
||||
customer : abap.char(10);
|
||||
knife_type : abap.char(5);
|
||||
knife_count : abap.int4;
|
||||
sharp_date : abap.dats;
|
||||
}
|
||||
28
tasks_gen/train/G1944/seed/t15_seed.clas.abap
Normal file
28
tasks_gen/train/G1944/seed/t15_seed.clas.abap
Normal file
@@ -0,0 +1,28 @@
|
||||
CLASS {{p}}t15_seed DEFINITION PUBLIC FINAL CREATE PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
CLASS {{p}}t15_seed IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DELETE FROM {{p}}kntype.
|
||||
INSERT {{p}}kntype FROM TABLE @( VALUE #(
|
||||
( type_id = 'CHEF' price = '2.00' )
|
||||
( type_id = 'PARI' price = '1.50' )
|
||||
( type_id = 'BONE' price = '3.00' )
|
||||
( type_id = 'BREAD' price = '1.00' ) ) ).
|
||||
|
||||
DELETE FROM {{p}}sharpen.
|
||||
INSERT {{p}}sharpen FROM TABLE @( VALUE #(
|
||||
( item_id = 1 customer = 'TRATTORIA' knife_type = 'CHEF' knife_count = 10 sharp_date = '20260110' )
|
||||
( item_id = 2 customer = 'TRATTORIA' knife_type = 'PARI' knife_count = 4 sharp_date = '20260112' )
|
||||
( item_id = 3 customer = 'BISTRO' knife_type = 'CHEF' knife_count = 6 sharp_date = '20260111' )
|
||||
( item_id = 4 customer = 'BISTRO' knife_type = 'BONE' knife_count = 2 sharp_date = '20251220' )
|
||||
( item_id = 5 customer = 'DELI' knife_type = 'BREAD' knife_count = 5 sharp_date = '20260115' )
|
||||
( item_id = 6 customer = 'DELI' knife_type = 'SUSHI' knife_count = 8 sharp_date = '20260116' )
|
||||
( item_id = 7 customer = 'CANTEEN' knife_type = 'CHEF' knife_count = 20 sharp_date = '20260120' ) ) ).
|
||||
|
||||
COMMIT WORK.
|
||||
out->write( sy-dbcnt ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
Reference in New Issue
Block a user