Step F first pass: 81/92 accepted; budget floor 60 calls; rejected slots moved for regeneration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
This commit is contained in:
Kral
2026-10-03 12:10:52 +02:00
parent d3250acfb8
commit 39769afce8
741 changed files with 40573 additions and 317 deletions

View File

@@ -0,0 +1,15 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Sales order with customer'
define view entity {{P}}I_SO_CUST
as select from {{p}}so as so
association [0..1] to {{p}}cust as _Customer
on so.customer_id = _Customer.customer_id
{
key so.order_id as order_id,
_Customer.name as customer_name,
_Customer.country as country,
so.net_amount as net_amount,
case when so.net_amount >= 1000 then 'H'
when so.net_amount >= 100 then 'M'
else 'L' end as amount_class
}

View File

@@ -0,0 +1,56 @@
CLASS {{p}}t41_test DEFINITION PUBLIC FINAL CREATE PUBLIC
FOR TESTING DURATION SHORT RISK LEVEL HARMLESS.
PRIVATE SECTION.
CLASS-DATA go_env TYPE REF TO if_cds_test_environment.
CLASS-METHODS class_setup.
CLASS-METHODS class_teardown.
METHODS setup.
METHODS customer_is_joined FOR TESTING.
METHODS order_without_cust FOR TESTING.
METHODS class_boundary FOR TESTING.
ENDCLASS.
CLASS {{p}}t41_test IMPLEMENTATION.
METHOD class_setup.
go_env = cl_cds_test_environment=>create( i_for_entity = '{{P}}I_SO_CUST' ).
ENDMETHOD.
METHOD class_teardown.
go_env->destroy( ).
ENDMETHOD.
METHOD setup.
DATA lt_so TYPE STANDARD TABLE OF {{p}}so WITH EMPTY KEY.
DATA lt_cust TYPE STANDARD TABLE OF {{p}}cust WITH EMPTY KEY.
go_env->clear_doubles( ).
lt_cust = VALUE #(
( customer_id = 'C1' name = 'Alpha Corp' country = 'DE' ) ).
lt_so = VALUE #(
( order_id = 'O1' customer_id = 'C1'
order_date = '20240101' net_amount = '100.00' )
( order_id = 'O9' customer_id = 'C9'
order_date = '20240109' net_amount = '900.00' ) ).
go_env->insert_test_data( lt_cust ).
go_env->insert_test_data( lt_so ).
ENDMETHOD.
METHOD customer_is_joined.
SELECT SINGLE customer_name, country FROM {{p}}i_so_cust
WHERE order_id = 'O1' INTO @DATA(ls_row).
cl_abap_unit_assert=>assert_equals( exp = 'Alpha Corp' act = ls_row-customer_name ).
cl_abap_unit_assert=>assert_equals( exp = 'DE' act = ls_row-country ).
ENDMETHOD.
METHOD order_without_cust.
SELECT COUNT(*) FROM {{p}}i_so_cust
WHERE order_id = 'O9' INTO @DATA(lv_count).
cl_abap_unit_assert=>assert_equals( exp = 1 act = lv_count ).
ENDMETHOD.
METHOD class_boundary.
SELECT SINGLE amount_class FROM {{p}}i_so_cust
WHERE order_id = 'O1' INTO @DATA(lv_class).
cl_abap_unit_assert=>assert_equals( exp = 'M' act = lv_class ).
ENDMETHOD.
ENDCLASS.