Skip to content

INSERT TABLE itab. and INSERT itab INDEX n. insert the header line - #2123

Merged
larshp merged 2 commits into
abaplint:mainfrom
flujo-app:fix/insert-header-line
Nov 12, 2026
Merged

larshp merged 2 commits into
abaplint:mainfrom
flujo-app:fix/insert-header-line

Conversation

@flujo-app

Copy link
Copy Markdown
Contributor

INSERT TABLE itab. and INSERT itab INDEX n. on a table with header line name only the table; abaplint reads it as the source and there is no target, so the transpiler stopped with "Traverse, node undefined" and the whole object could not be transpiled.

The header line now goes into the table, as INSERT itab INTO TABLE itab / INSERT itab INDEX n INTO itab would with the header line as work area.

DATA tab TYPE SORTED TABLE OF i WITH UNIQUE KEY table_line WITH HEADER LINE.
tab = 3.
INSERT TABLE tab.
tab = 1.
INSERT TABLE tab.     " tab: 1, 3

Tests in test/statements/insert.ts.

The short forms with a table with header line name only the table, which abaplint reads as the source; the transpiler stopped with "Traverse, node undefined". The header line now goes into the table.

Tests in test/statements/insert.ts.
@flujo-app
flujo-app requested a review from larshp as a code owner November 12, 2026 00:34
flujo-app added a commit to flujo-app/transpiler that referenced this pull request Nov 12, 2026
The short forms with a table with header line name only the table, which abaplint reads as the source; the transpiler stopped with "Traverse, node undefined". The header line now goes into the table.

Tests in test/statements/insert.ts.

Upstream: abaplint#2123
@larshp
larshp enabled auto-merge (squash) November 12, 2026 10:05
@larshp
larshp merged commit 3ac6490 into abaplint:main Nov 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants