@abaplint/core 2.79.12 → 2.79.13
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.
|
@@ -42,8 +42,10 @@ class RenamerHelper {
|
|
|
42
42
|
renameDDICTABLReferences(obj, oldName, newName) {
|
|
43
43
|
const changes = [];
|
|
44
44
|
const used = this.reg.getDDICReferences().listWhereUsed(obj);
|
|
45
|
+
const handled = {};
|
|
45
46
|
for (const u of used) {
|
|
46
|
-
if (u.type !== "TABL") {
|
|
47
|
+
if (u.type !== "TABL" || handled[u.name.toUpperCase()] === true) {
|
|
48
|
+
// a TABL might reference the object multiple times, but they are all fixes in one call to buildXMLFileEdits
|
|
47
49
|
continue;
|
|
48
50
|
}
|
|
49
51
|
const tabl = this.reg.getObject(u.type, u.name);
|
|
@@ -51,6 +53,7 @@ class RenamerHelper {
|
|
|
51
53
|
continue;
|
|
52
54
|
}
|
|
53
55
|
changes.push(...this.buildXMLFileEdits(tabl, "ROLLNAME", oldName, newName));
|
|
56
|
+
handled[u.name.toUpperCase()] = true;
|
|
54
57
|
}
|
|
55
58
|
return changes;
|
|
56
59
|
}
|
|
@@ -150,7 +150,7 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
150
150
|
else if (comptype === "") { // built in
|
|
151
151
|
const datatype = field.DATATYPE;
|
|
152
152
|
if (datatype === undefined) {
|
|
153
|
-
throw new Error("Expected DATATYPE");
|
|
153
|
+
throw new Error("Expected DATATYPE, while parsing TABL " + this.getName());
|
|
154
154
|
}
|
|
155
155
|
const length = field.LENG ? field.LENG : field.INTLEN;
|
|
156
156
|
components.push({
|
package/build/src/registry.js
CHANGED