@abaplint/runtime 2.10.36 → 2.10.37
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.
|
@@ -138,10 +138,15 @@ function assign(input) {
|
|
|
138
138
|
abap.builtin.sy.get().subrc.set(4);
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
if (input.
|
|
142
|
-
input.target.
|
|
141
|
+
if (input.source instanceof types_1.Table && input.source.getOptions()?.withHeader === true) {
|
|
142
|
+
input.target.assign(input.source.getHeader());
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
if (input.casting) {
|
|
146
|
+
input.target.setCasting();
|
|
147
|
+
}
|
|
148
|
+
input.target.assign(input.source);
|
|
143
149
|
}
|
|
144
|
-
input.target.assign(input.source);
|
|
145
150
|
// @ts-ignore
|
|
146
151
|
abap.builtin.sy.get().subrc.set(0);
|
|
147
152
|
}
|
|
@@ -14,5 +14,5 @@ export interface IWriteOptions {
|
|
|
14
14
|
export declare class WriteStatement {
|
|
15
15
|
private readonly context;
|
|
16
16
|
constructor(context: Context);
|
|
17
|
-
write(source: INumeric | ICharacter | FieldSymbol | string | number, options?: IWriteOptions): void;
|
|
17
|
+
write(source: INumeric | ICharacter | FieldSymbol | string | number | undefined, options?: IWriteOptions): void;
|
|
18
18
|
}
|
|
@@ -104,6 +104,7 @@ export declare class Table implements ITable {
|
|
|
104
104
|
clear(): void;
|
|
105
105
|
set(tab: Table | TableRowType): this;
|
|
106
106
|
getHeader(): TableRowType;
|
|
107
|
+
get(): TableRowType;
|
|
107
108
|
insertIndex(item: TableRowType, index: number, noClone?: boolean): any;
|
|
108
109
|
/** index = javascript indexed */
|
|
109
110
|
deleteIndex(index: number): void;
|
package/build/src/types/table.js
CHANGED
|
@@ -379,6 +379,12 @@ class Table {
|
|
|
379
379
|
}
|
|
380
380
|
return this.header;
|
|
381
381
|
}
|
|
382
|
+
get() {
|
|
383
|
+
if (this.header === undefined) {
|
|
384
|
+
throw "table, no header line";
|
|
385
|
+
}
|
|
386
|
+
return this.header.get();
|
|
387
|
+
}
|
|
382
388
|
insertIndex(item, index, noClone = false) {
|
|
383
389
|
this.secondaryIndexes = {};
|
|
384
390
|
if (item instanceof field_symbol_1.FieldSymbol) {
|