From acd61a54a27477a3bd01f653559868cbf3f2467f Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Thu, 30 May 2024 17:22:29 +0200 Subject: [PATCH] fix get_ddic_fixed_values --- package.json | 2 +- src/rtti/cl_abap_elemdescr.clas.abap | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e1ff291..571125d8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "license": "MIT", "dependencies": { - "@abaplint/cli": "^2.108.10", + "@abaplint/cli": "^2.108.11", "@abaplint/database-sqlite": "^2.8.25", "@abaplint/runtime": "^2.8.25", "@abaplint/transpiler-cli": "^2.8.25", diff --git a/src/rtti/cl_abap_elemdescr.clas.abap b/src/rtti/cl_abap_elemdescr.clas.abap index 740a4596..0c6a2f1f 100644 --- a/src/rtti/cl_abap_elemdescr.clas.abap +++ b/src/rtti/cl_abap_elemdescr.clas.abap @@ -15,6 +15,8 @@ CLASS cl_abap_elemdescr DEFINITION PUBLIC INHERITING FROM cl_abap_datadescr. DATA help_id TYPE abap_helpid READ-ONLY. METHODS get_ddic_fixed_values + IMPORTING + p_langu TYPE sy-langu DEFAULT sy-langu RETURNING VALUE(p_fixed_values) TYPE fixvalues. @@ -145,6 +147,8 @@ CLASS cl_abap_elemdescr IMPLEMENTATION. DATA lv_name TYPE string. DATA ls_row LIKE LINE OF p_fixed_values. +* todo: take P_LANGU into account + SPLIT absolute_name AT '=' INTO lv_dummy lv_name. WRITE '@KERNEL for (const f of abap.DDIC[lv_name.get()]?.fixedValues || []) {'.