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,12 @@
@EndUserText.label : 'Dive'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}dive {
key client : abap.clnt not null;
key dive_id : abap.char(10) not null;
diver_id : abap.char(10);
site_id : abap.char(10);
dive_date : abap.dats;
}

View File

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

View File

@@ -0,0 +1,19 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Dive stats'
define view entity {{P}}I_DIVE_STATS
as select from {{p}}diver as diver
inner join {{p}}dive as dive on dive.diver_id = diver.diver_id
left outer join {{p}}site as site on site.site_id = dive.site_id
{
key diver.diver_id as diver_id,
diver.diver_name as diver_name,
dive.dive_id as dive_id,
site.site_id as site_id,
count( * ) as dive_count,
max( site.depth_m ) as deepest_m
}
group by
diver.diver_id,
diver.diver_name,
dive.dive_id,
site.site_id

View File

@@ -0,0 +1,34 @@
CLASS {{p}}seed_dive DEFINITION PUBLIC FINAL CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS {{p}}seed_dive IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
DELETE FROM {{p}}diver.
DELETE FROM {{p}}site.
DELETE FROM {{p}}dive.
INSERT {{p}}diver FROM TABLE @( VALUE #(
( diver_id = 'D1' diver_name = 'Alice' )
( diver_id = 'D2' diver_name = 'Bob' )
( diver_id = 'D3' diver_name = 'Carol' ) ) ).
INSERT {{p}}site FROM TABLE @( VALUE #(
( site_id = 'S1' site_name = 'Reef' depth_m = 10 )
( site_id = 'S2' site_name = 'Wreck' depth_m = 30 )
( site_id = 'S3' site_name = 'Cave' depth_m = 20 ) ) ).
INSERT {{p}}dive FROM TABLE @( VALUE #(
( dive_id = 'V1' diver_id = 'D1' site_id = 'S1' dive_date = '20250101' )
( dive_id = 'V2' diver_id = 'D1' site_id = 'S2' dive_date = '20250102' )
( dive_id = 'V3' diver_id = 'D1' site_id = 'S3' dive_date = '20250103' )
( dive_id = 'V4' diver_id = 'D2' site_id = 'S1' dive_date = '20250104' )
( dive_id = 'V5' diver_id = 'D2' site_id = 'S9' dive_date = '20250105' ) ) ).
SELECT * FROM {{p}}i_dive_stats INTO TABLE @DATA(lt_result).
out->write( lt_result ).
ENDMETHOD.
ENDCLASS.

View File

@@ -0,0 +1,11 @@
@EndUserText.label : 'Dive site'
@AbapCatalog.enhancement.category : #NOT_EXTENSIBLE
@AbapCatalog.tableCategory : #TRANSPARENT
@AbapCatalog.deliveryClass : #A
@AbapCatalog.dataMaintenance : #RESTRICTED
define table {{p}}site {
key client : abap.clnt not null;
key site_id : abap.char(10) not null;
site_name : abap.char(40);
depth_m : abap.int4;
}