Stage 2 summary at 50 accepted trajectories

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kral
2026-10-05 18:02:52 +02:00
parent 332fb4601d
commit 5bcd1bf9cd
1230 changed files with 77563 additions and 33 deletions

View 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.

View 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.

View 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;
}