Skip to content

Commit 9209252

Browse files
Update sub-assign-read-table.md
1 parent 66bfa47 commit 9209252

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docs/checks/sub-assign-read-table.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
1-
# code pal for ABAP
2-
31
[code pal for ABAP](../../README.md) > [Documentation](../check_documentation.md) > [READ TABLE with Subsequent Memory Assignment Check](sub-assign-read-table.md)
42

53
## READ TABLE with Subsequent Memory Assignment Check
64

75
### What is the Intent of the Check?
86

9-
The "READ TABLE with Subsequent Memory Assignment" Check aims to prevent undesired changes to internal tables using field symbols in context of the `READ TABLE` statement with `INTO` instead of `ASSIGNING`.
7+
This check aims to prevent undesired changes to internal tables using field symbols in context of the `READ TABLE` statement with `INTO` instead of `ASSIGNING`.
108

119
### How does the check work?
1210

1311
This check finds `READ TABLE` statements which use statement `INTO` for assignment but using a field symbol instead of a variable.
1412

15-
### Which attributes can be maintained?
16-
17-
![Attributes](./imgs/read_table_subsequent_mem_assign.png)
18-
1913
### How to solve the issue?
2014

2115
Use `ASSIGNING` instead of `INTO` in combination with field symbols as otherwise the selected table row will be overwritten.
2216

2317
### What to do in case of exception?
2418

25-
You can suppress Code Inspector findings generated by this check using the pseudo comment `"#EC SUB_ASSIGN`.
26-
The pseudo comment must be placed after the closing dot of the `READ TABLE` statement.
19+
In exceptional cases, you can suppress this finding by using the pseudo comment `"#EC SUB_ASSIGN` which should be placed after the closing dot of the `READ TABLE` statement:
2720

2821
```abap
2922
READ TABLE itab ASSIGNING FIELD-SYMBOL(<fs>) WHERE key = '1'.

0 commit comments

Comments
 (0)