Repository navigation
Table expressions: KEY name COMPONENTS and KEY name INDEX - #2114
Merged
Merged
Conversation
itab[ KEY name ... ] stopped the transpilation ("todo, SimpleName",
"todo, other INDEX"). The key name is now passed to the runtime: the search
and INDEX go by the rows in the order of that key, primary_key is the primary
key. A dynamic key transpiles to a runtime error.
A hashed key has no row numbers, so line_index( itab[ KEY h ... ] ) is -1 when the row is found, as on a 7.40 system, and 0 when it is not.
Contributor
Author
|
Added: |
flujo-app
added a commit
to flujo-app/transpiler
that referenced
this pull request
Nov 12, 2026
- line_index through a hashed secondary key gives -1 for a found row Upstream: abaplint#2114
larshp
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A table expression with a key name stopped the transpilation (
todo, SimpleName,todo, other INDEX):The key name now goes to the runtime: the search and
INDEXgo by the rows in the order of that key,primary_keyis the primary key, asREAD TABLE ... WITH KEY name COMPONENTSalready does. A dynamic key transpiles to a runtime error.Test in
test/expressions/table_expression.ts.