MCPcopy Create free account
hub / github.com/abaplint/transpiler / getCurrentLoopIndex

Method getCurrentLoopIndex

packages/runtime/src/types/table.ts:442–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440
441 const secondary = this.getKeyByName(name);
442 if (secondary === undefined) {
443 throw `Table, secondary key "${name}" not found`;
444 }
445 const copy = secondaryDuplicatesFirst([...this.value], secondary);
446 sort(copy as any, {by: secondary.keyFields.map(k => {return {component: k.toLowerCase()};}), skipSortedCheck: true});
447
448 this.secondaryIndexes[name.trimEnd().toUpperCase()] = copy;
449 return copy;
450 }
451

Callers 1

deleteInternalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected