@abaplint/runtime 2.13.51 → 2.13.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ function assign(input) {
|
|
|
27
27
|
else if (upperS === "TABLE_LINE" && input.dynamicSource instanceof types_1.DataReference) {
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
input.dynamicSource = input.dynamicSource.getPointer();
|
|
30
|
-
if (input.dynamicSource instanceof types_1.Table) {
|
|
30
|
+
if (input.dynamicSource instanceof types_1.Table || input.dynamicSource instanceof types_1.HashedTable) {
|
|
31
31
|
const options = input.dynamicSource.getOptions();
|
|
32
32
|
if (options?.withHeader === true) {
|
|
33
33
|
// @ts-ignore
|
|
@@ -39,14 +39,29 @@ function assign(input) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
let sourceContainer = input.dynamicSource;
|
|
43
|
+
if (sourceContainer instanceof types_1.DataReference) {
|
|
44
|
+
sourceContainer = sourceContainer.getPointer();
|
|
45
|
+
}
|
|
46
|
+
if (sourceContainer instanceof types_1.Table || sourceContainer instanceof types_1.HashedTable) {
|
|
47
|
+
if (sourceContainer.getOptions()?.withHeader === true) {
|
|
48
|
+
sourceContainer = sourceContainer.getHeader();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
abap.builtin.sy.get().subrc.set(4);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const source = sourceContainer?.get();
|
|
44
56
|
if (source === undefined) {
|
|
45
57
|
abap.builtin.sy.get().subrc.set(4);
|
|
46
58
|
return;
|
|
47
59
|
}
|
|
60
|
+
const componentName = sourceContainer instanceof types_1.Structure
|
|
61
|
+
? s.toLowerCase()
|
|
62
|
+
: s.toLowerCase().replace(/[~\\/]/g, "$");
|
|
48
63
|
// @ts-ignore
|
|
49
|
-
input.dynamicSource = source[
|
|
64
|
+
input.dynamicSource = source[componentName];
|
|
50
65
|
}
|
|
51
66
|
}
|
|
52
67
|
}
|