@abaplint/runtime 2.11.60 → 2.11.62
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createData = createData;
|
|
4
4
|
const throw_error_1 = require("../throw_error");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
+
const tableOptions = { withHeader: false, keyType: types_1.TableKeyType.default };
|
|
6
7
|
function createData(target, options) {
|
|
7
8
|
// console.dir(options);
|
|
8
9
|
if (target instanceof types_1.FieldSymbol) {
|
|
@@ -16,8 +17,7 @@ function createData(target, options) {
|
|
|
16
17
|
if (abap.DDIC[options.name.trimEnd()] === undefined) {
|
|
17
18
|
(0, throw_error_1.throwError)("CX_SY_CREATE_DATA_ERROR");
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
target.assign(new abap.types.Table(abap.DDIC[options.name.trimEnd()].type));
|
|
20
|
+
target.assign(new abap.types.Table(abap.DDIC[options.name.trimEnd()].type, tableOptions));
|
|
21
21
|
}
|
|
22
22
|
else if (options?.name !== undefined) {
|
|
23
23
|
if (abap.DDIC[options.name.trimEnd()]) {
|
|
@@ -181,7 +181,12 @@ function createData(target, options) {
|
|
|
181
181
|
if (options.like instanceof types_1.FieldSymbol) {
|
|
182
182
|
options.like = options.like.getPointer();
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
if (options.table === true) {
|
|
185
|
+
target.assign(new abap.types.Table(options.like.clone(), tableOptions));
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
target.assign(options.like.clone());
|
|
189
|
+
}
|
|
185
190
|
}
|
|
186
191
|
else {
|
|
187
192
|
target.assign(target.getType()?.clone());
|