ADT fallback: Accept headers for FUNC; G0189 accepted; regen2 results
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
@EndUserText.label : 'Planned bike move'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}move {
|
||||
key client : abap.clnt not null;
|
||||
key move_no : abap.int4 not null;
|
||||
source_id : abap.char(6) not null;
|
||||
target_id : abap.char(6) not null;
|
||||
quantity : abap.int4 not null;
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
CLASS {{p}}seed_bike DEFINITION
|
||||
PUBLIC FINAL CREATE PUBLIC.
|
||||
|
||||
PUBLIC SECTION.
|
||||
INTERFACES if_oo_adt_classrun.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS {{p}}seed_bike IMPLEMENTATION.
|
||||
METHOD if_oo_adt_classrun~main.
|
||||
DATA lt_stations TYPE STANDARD TABLE OF {{p}}station.
|
||||
DATA lt_moves TYPE STANDARD TABLE OF {{p}}move.
|
||||
|
||||
lt_stations = VALUE #(
|
||||
( station_id = 'S001' station_name = 'Central Square' capacity = 20 bikes = 12 )
|
||||
( station_id = 'S002' station_name = 'Harbour' capacity = 15 bikes = 3 )
|
||||
( station_id = 'S003' station_name = 'Main Station' capacity = 10 bikes = 10 ) ).
|
||||
|
||||
lt_moves = VALUE #(
|
||||
( move_no = 1 source_id = 'S001' target_id = 'S002' quantity = 4 )
|
||||
( move_no = 2 source_id = 'S002' target_id = 'S003' quantity = 2 ) ).
|
||||
|
||||
LOOP AT lt_stations ASSIGNING FIELD-SYMBOL(<ls_station>).
|
||||
<ls_station>-client = sy-mandt.
|
||||
ENDLOOP.
|
||||
|
||||
LOOP AT lt_moves ASSIGNING FIELD-SYMBOL(<ls_move>).
|
||||
<ls_move>-client = sy-mandt.
|
||||
ENDLOOP.
|
||||
|
||||
DELETE FROM {{p}}station.
|
||||
INSERT {{p}}station FROM TABLE @lt_stations.
|
||||
|
||||
DELETE FROM {{p}}move.
|
||||
INSERT {{p}}move FROM TABLE @lt_moves.
|
||||
|
||||
out->write( 'Bike sharing sample data inserted.' ).
|
||||
ENDMETHOD.
|
||||
ENDCLASS.
|
||||
@@ -1,12 +0,0 @@
|
||||
@EndUserText.label : 'Bike station'
|
||||
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
|
||||
@AbapCatalog.tableCategory : #TRANSPARENT
|
||||
@AbapCatalog.deliveryClass : #A
|
||||
@AbapCatalog.dataMaintenance : #RESTRICTED
|
||||
define table {{p}}station {
|
||||
key client : abap.clnt not null;
|
||||
key station_id : abap.char(6) not null;
|
||||
station_name : abap.char(30) not null;
|
||||
capacity : abap.int4 not null;
|
||||
bikes : abap.int4 not null;
|
||||
}
|
||||
12
tasks_gen/eval/G0122/seed/track_sample.func.abap
Normal file
12
tasks_gen/eval/G0122/seed/track_sample.func.abap
Normal file
@@ -0,0 +1,12 @@
|
||||
FUNCTION {{p}}track_sample
|
||||
IMPORTING
|
||||
it_paths TYPE STANDARD TABLE
|
||||
EXPORTING
|
||||
et_fees TYPE STANDARD TABLE
|
||||
EXCEPTIONS
|
||||
invalid_distance
|
||||
invalid_category.
|
||||
|
||||
CLEAR et_fees.
|
||||
|
||||
ENDFUNCTION.
|
||||
28
tasks_gen/eval/G0122/seed/track_types.clas.abap
Normal file
28
tasks_gen/eval/G0122/seed/track_types.clas.abap
Normal file
@@ -0,0 +1,28 @@
|
||||
CLASS {{p}}track_types DEFINITION
|
||||
PUBLIC FINAL CREATE PUBLIC.
|
||||
|
||||
PUBLIC SECTION.
|
||||
TYPES: ty_id TYPE n LENGTH 8,
|
||||
ty_cat TYPE c LENGTH 2,
|
||||
ty_flag TYPE c LENGTH 1,
|
||||
ty_km TYPE p LENGTH 13 DECIMALS 2,
|
||||
ty_money TYPE p LENGTH 13 DECIMALS 2,
|
||||
BEGIN OF ty_path,
|
||||
path_id TYPE ty_id,
|
||||
train_cat TYPE ty_cat,
|
||||
distance_km TYPE ty_km,
|
||||
night_flag TYPE ty_flag,
|
||||
END OF ty_path,
|
||||
tt_path TYPE STANDARD TABLE OF ty_path WITH EMPTY KEY,
|
||||
BEGIN OF ty_fee,
|
||||
train_cat TYPE ty_cat,
|
||||
path_count TYPE i,
|
||||
total_km TYPE ty_km,
|
||||
total_fee TYPE ty_money,
|
||||
END OF ty_fee,
|
||||
tt_fee TYPE STANDARD TABLE OF ty_fee WITH EMPTY KEY.
|
||||
ENDCLASS.
|
||||
|
||||
|
||||
CLASS {{p}}track_types IMPLEMENTATION.
|
||||
ENDCLASS.
|
||||
Reference in New Issue
Block a user