abaplint/transpiler

Nested structures

Closed this issue · 3 comments

for (const v of Object.keys(val)) {
let s = a[v];
if (s === undefined) {
continue;
}
s = new ConstantTranspiler().escape(s);
ret += name + ".get()." + v + ".set(" + s + ");\n";

nested structures are not supported :(

CONSTANTS: BEGIN OF scenarios,
                 BEGIN OF negative,
                   name1      TYPE int1 VALUE '1',
                   name2 TYPE int1 VALUE '2',
                 END OF negative,
                 BEGIN OF positive,
                   name1 TYPE int1 VALUE '255',
                   name2    TYPE int1 VALUE '254',
                 END OF positive,
               END OF scenarios.
larshp commented

@Zeatynis try again, 2.6.42 published

larshp commented

closing

I was offline for two weeks. Thanks for the fix 😃