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,36 @@
FUNCTION {{p}}loan_check
IMPORTING
iv_fragile TYPE abap_bool
iv_insured TYPE abap_bool
iv_days TYPE i
EXPORTING
ev_approved TYPE abap_bool
ev_reason TYPE string
EXCEPTIONS
invalid_days.
IF iv_days < 1.
RAISE invalid_days.
ENDIF.
IF iv_days > 90.
ev_approved = abap_false.
ev_reason = 'TOO_LONG'.
RETURN.
ENDIF.
" Open point: rules 3 and 4 give opposite priority to the insurance rule and
" the fragility rule for an insured fragile exhibit. This reference applies
" rule 3 (the insurance rule first).
IF iv_insured = abap_true.
ev_approved = abap_true.
ev_reason = 'INSURED'.
ELSEIF iv_fragile = abap_true.
ev_approved = abap_false.
ev_reason = 'FRAGILE'.
ELSE.
ev_approved = abap_true.
ev_reason = 'OK'.
ENDIF.
ENDFUNCTION.