Generator: pilot analysis and fixes; G0002-G0021 tasks; handover notes merged
- Static bundle checks (name length, seed type, reserved words, contract test classes, testclasses_file), local abaplint parser check before SAP, max_tokens, robust JSON parse - Runner: G2 for CDS views with parameters, contract_check detail in report - G0020 and G0013 fixed by review and revalidated (oracle 100, null 0) - Pilot results in docs/faz1-tasarim.md 11e; handover notes merged into CLAUDE.md and docs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
24
tasks_gen/eval/G0011/reference/repl_calc.func.abap
Normal file
24
tasks_gen/eval/G0011/reference/repl_calc.func.abap
Normal file
@@ -0,0 +1,24 @@
|
||||
FUNCTION {{p}}repl_calc
|
||||
IMPORTING
|
||||
iv_stock TYPE decfloat34
|
||||
iv_reorder_point TYPE decfloat34
|
||||
iv_target_stock TYPE decfloat34
|
||||
iv_pack_size TYPE decfloat34
|
||||
iv_min_qty TYPE decfloat34
|
||||
EXPORTING
|
||||
ev_qty TYPE decfloat34
|
||||
EXCEPTIONS
|
||||
invalid_pack_size.
|
||||
|
||||
IF iv_pack_size <= 0.
|
||||
RAISE invalid_pack_size.
|
||||
ENDIF.
|
||||
|
||||
ev_qty = NEW {{p}}cl_repl( )->calculate(
|
||||
iv_stock = iv_stock
|
||||
iv_reorder_point = iv_reorder_point
|
||||
iv_target_stock = iv_target_stock
|
||||
iv_pack_size = iv_pack_size
|
||||
iv_min_qty = iv_min_qty ).
|
||||
|
||||
ENDFUNCTION.
|
||||
Reference in New Issue
Block a user