Skip to content

Replace READ TABLE, APPEND and COLLECT, forbid them - #118

Merged
oblomov-dev merged 1 commit into
mainfrom
DEV
Nov 25, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
DEV

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

The shared app rule set (abap2UI5 app-rules.json) forbids 21 old statements from abap2UI5 1.151.0 on. This replaces them here: APPEND 38, READ TABLE 7, COLLECT 1 (sample 031, explicit sum into the keyed row). Four dynamic CREATE OBJECT stay. Two INSERTs in z2ui5_cl_smps_evt_tck were changed by hand — abaplint cannot parse that file. @abaplint/cli 2.120.120 (the pinned version did not know the rule).

Checks on DEV: every step of npm run check and all 14 one-package branches rebuilt locally — green except check:app-rules, green once abap2UI5/abap2UI5#3049 is merged.

Merge order: 5 of 8, after abap2UI5 1.151.0 — see abap2UI5/abap2UI5#3049.


Generated by Claude Code

forbidden_statement now carries the list abap2UI5/samples carries:
DESCRIBE, REFRESH, RANGES, SELECT ... ENDSELECT, COLLECT, OVERLAY, LEAVE,
TYPE-POOLS, PERFORM, FORM, WRITE, READ TABLE, APPEND, GET REFERENCE,
CONCATENATE, CONDENSE, TRANSLATE, REPLACE, FIND, SHIFT and CHECK.
abaplint 2.120.120, because the pinned 2.120.91 did not know the rule.

APPEND (38, two of them in the business event handler abaplint does not
parse) becomes INSERT ... INTO TABLE - every target is a standard table
or a RAP response table, so each row still lands at the end - and
INSERT INITIAL LINE INTO TABLE ... ASSIGNING for the generic parameter
table of the launchpad sample. READ TABLE (7) becomes ASSIGN itab[ ... ]
with IS [NOT] ASSIGNED, UNASSIGNed first inside the loops of the Excel
import; a guard on IS INITIAL before t_result[ 1 ] in the draft sample;
VALUE abap_methdescr( ... OPTIONAL ) for the method lookup; line_exists( )
in the JSON reader. The one COLLECT, the per-currency totals of the
travel list, adds into the row of its currency or inserts it.

CREATE OBJECT stays: all four create a class named at runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZFmEAFUJQM8c8aDK1d6U
@oblomov-dev
oblomov-dev merged commit 7538290 into main Nov 25, 2026
31 of 32 checks passed
@oblomov-dev
oblomov-dev deleted the DEV branch November 25, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants