Snapshot: new training tasks (balanced generation), docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kral
2026-10-05 22:08:59 +02:00
parent eb13453097
commit 6984fc7917
572 changed files with 30024 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
CLASS {{p}}bike_seed DEFINITION PUBLIC FINAL CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
ENDCLASS.
CLASS {{p}}bike_seed IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
DELETE FROM {{p}}jobitm.
DELETE FROM {{p}}jobhdr.
DELETE FROM {{p}}mech.
INSERT {{p}}mech FROM TABLE @( VALUE #(
( mech_id = 'M001' mech_name = 'Anna Keller' )
( mech_id = 'M002' mech_name = 'Ben Osei' )
( mech_id = 'M003' mech_name = 'Cara Lund' ) ) ).
INSERT {{p}}jobhdr FROM TABLE @( VALUE #(
( job_id = 101 job_date = '20260410' customer = 'Haus Meier' mech_id = 'M001' )
( job_id = 102 job_date = '20260410' customer = 'Bistro Nord' mech_id = 'M002' )
( job_id = 103 job_date = '20260410' customer = 'Haus Meier' mech_id = 'M001' )
( job_id = 104 job_date = '20260411' customer = 'Villa See' mech_id = 'M002' )
( job_id = 105 job_date = '20260410' customer = 'Kiosk West' mech_id = 'M009' )
( job_id = 106 job_date = '20260410' customer = 'Garage Sued' mech_id = 'M003' ) ) ).
INSERT {{p}}jobitm FROM TABLE @( VALUE #(
( job_id = 101 item_no = 10 spare_part = 'Brake pad' qty = 2 price = '12.50' )
( job_id = 101 item_no = 20 spare_part = 'Cable' qty = 1 price = '4.00' )
( job_id = 102 item_no = 10 spare_part = 'Tyre' qty = 1 price = '35.00' )
( job_id = 103 item_no = 10 spare_part = 'Chain' qty = 1 price = '22.00' )
( job_id = 103 item_no = 20 spare_part = 'Bell' qty = 1 price = '6.50' )
( job_id = 104 item_no = 10 spare_part = 'Saddle' qty = 1 price = '40.00' )
( job_id = 105 item_no = 10 spare_part = 'Tube' qty = 2 price = '8.00' ) ) ).
out->write( |items: { sy-dbcnt }| ).
ENDMETHOD.
ENDCLASS.

View File

@@ -0,0 +1,12 @@
@EndUserText.label : 'Repair jobs'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}jobhdr {
key client : abap.clnt not null;
key job_id : abap.int4 not null;
job_date : abap.dats;
customer : abap.char(40);
mech_id : abap.char(6);
}

View File

@@ -0,0 +1,13 @@
@EndUserText.label : 'Spare parts of a repair job'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}jobitm {
key client : abap.clnt not null;
key job_id : abap.int4 not null;
key item_no : abap.int4 not null;
spare_part : abap.char(20);
qty : abap.int4;
price : abap.dec(15,2);
}

View File

@@ -0,0 +1,10 @@
@EndUserText.label : 'Mechanics'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}mech {
key client : abap.clnt not null;
key mech_id : abap.char(6) not null;
mech_name : abap.char(40);
}