@abaplint/core 2.90.7 → 2.90.9
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.
- package/build/src/objects/table.js +22 -0
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
|
@@ -155,6 +155,27 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
155
155
|
type: new basic_1.GenericObjectReferenceType()
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
else if (field.REFTYPE === "S") {
|
|
159
|
+
const lookup = ddic.lookupTableOrView(field.ROLLNAME);
|
|
160
|
+
components.push({ name: field.FIELDNAME, type: new basic_1.DataReference(lookup.type) });
|
|
161
|
+
if (lookup.object) {
|
|
162
|
+
references.push({ object: lookup.object });
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
else if (field.REFTYPE === "L") {
|
|
166
|
+
const lookup = ddic.lookupTableType(field.ROLLNAME);
|
|
167
|
+
components.push({ name: field.FIELDNAME, type: new basic_1.DataReference(lookup.type) });
|
|
168
|
+
if (lookup.object) {
|
|
169
|
+
references.push({ object: lookup.object });
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
else if (field.REFTYPE === "E") {
|
|
173
|
+
const lookup = ddic.lookupDataElement(field.ROLLNAME);
|
|
174
|
+
components.push({ name: field.FIELDNAME, type: new basic_1.DataReference(lookup.type) });
|
|
175
|
+
if (lookup.object) {
|
|
176
|
+
references.push({ object: lookup.object });
|
|
177
|
+
}
|
|
178
|
+
}
|
|
158
179
|
else {
|
|
159
180
|
const lookup = ddic.lookupObject(field.ROLLNAME);
|
|
160
181
|
components.push({ name: field.FIELDNAME, type: lookup.type });
|
|
@@ -245,6 +266,7 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
245
266
|
DECIMALS: field.DECIMALS,
|
|
246
267
|
KEYFLAG: field.KEYFLAG,
|
|
247
268
|
GROUPNAME: field.GROUPNAME,
|
|
269
|
+
REFTYPE: field.REFTYPE,
|
|
248
270
|
});
|
|
249
271
|
}
|
|
250
272
|
}
|
package/build/src/registry.js
CHANGED