Stage 2 summary at 50 accepted trajectories
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
17
tasks_gen/train/G1093/seed/mix_sample.func.abap
Normal file
17
tasks_gen/train/G1093/seed/mix_sample.func.abap
Normal file
@@ -0,0 +1,17 @@
|
||||
FUNCTION {{P}}MIX_SAMPLE
|
||||
IMPORTING
|
||||
it_tints TYPE {{P}}PAINT_MIX=>TY_TINTS
|
||||
EXPORTING
|
||||
ev_volume TYPE decfloat34
|
||||
EXCEPTIONS
|
||||
no_components.
|
||||
|
||||
IF it_tints IS INITIAL.
|
||||
RAISE no_components.
|
||||
ENDIF.
|
||||
|
||||
LOOP AT it_tints INTO DATA(ls_tint).
|
||||
ev_volume = ev_volume + ls_tint-quantity_ml.
|
||||
ENDLOOP.
|
||||
|
||||
ENDFUNCTION.
|
||||
28
tasks_gen/train/G1093/seed/paint_mix.clas.abap
Normal file
28
tasks_gen/train/G1093/seed/paint_mix.clas.abap
Normal file
@@ -0,0 +1,28 @@
|
||||
CLASS {{p}}paint_mix DEFINITION PUBLIC FINAL CREATE PUBLIC.
|
||||
PUBLIC SECTION.
|
||||
TYPES:
|
||||
BEGIN OF ty_tint,
|
||||
tint_id TYPE c LENGTH 4,
|
||||
quantity_ml TYPE i,
|
||||
END OF ty_tint,
|
||||
ty_tints TYPE STANDARD TABLE OF ty_tint WITH EMPTY KEY.
|
||||
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS {{p}}paint_mix IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DATA lt_prices TYPE STANDARD TABLE OF {{p}}tintpr WITH EMPTY KEY.
|
||||
lt_prices = VALUE #(
|
||||
( tint_id = 'WHIT' price_ml = '0.020' )
|
||||
( tint_id = 'BLUE' price_ml = '0.045' )
|
||||
( tint_id = 'GREY' price_ml = '0.030' )
|
||||
( tint_id = 'GOLD' price_ml = '0.250' ) ).
|
||||
|
||||
DELETE FROM {{p}}tintpr.
|
||||
INSERT {{p}}tintpr FROM TABLE @lt_prices.
|
||||
|
||||
out->write( |Tint prices seeded: { lines( lt_prices ) }| ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
10
tasks_gen/train/G1093/seed/tintpr.tabl.abap
Normal file
10
tasks_gen/train/G1093/seed/tintpr.tabl.abap
Normal file
@@ -0,0 +1,10 @@
|
||||
@EndUserText.label : 'Tint prices'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}tintpr {
|
||||
key client : abap.clnt not null;
|
||||
key tint_id : abap.char(4) not null;
|
||||
price_ml : abap.dec(13,3) not null;
|
||||
}
|
||||
Reference in New Issue
Block a user