-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Labels
new checkNew checkNew check
Description
ABAP array starts at position [ 1 ], as opposed to java which starts at [ 0 ].
ABAP compiles the code if you try to access the array at position [ 0 ].
However, it raises the CX_SY_ITAB_LINE_NOT_FOUND
when executing the code.
For instance:
DATA array TYPE TABLE OF string.
APPEND 'this' TO array.
APPEND 'is' TO array.
APPEND 'a' TO array.
APPEND 'test' TO array.
cl_demo_output=>display( array ).
cl_demo_output=>display( array[ 0 ] ).
It would be good to have a check that identifies these access to position [ 0 ] during the development phase.
Metadata
Metadata
Assignees
Labels
new checkNew checkNew check