Skip to content

Commit

Permalink
fix get_ddic_fixed_values
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp committed May 30, 2024
1 parent 80efdef commit acd61a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/rtti/cl_abap_elemdescr.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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 || []) {'.
Expand Down

0 comments on commit acd61a5

Please sign in to comment.