abaplint
abaplint copied to clipboard
Check writes to importing parameters
REPORT zfoobar.
CLASS lcl_test DEFINITION CREATE PRIVATE.
PUBLIC SECTION.
METHODS parse_something
IMPORTING text TYPE string.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS lcl_test IMPLEMENTATION.
METHOD parse_something.
text = 5.
ENDMETHOD.
ENDCLASS.

- No error if the parameter is IMPORTING VALUE
- All write references should be checked, not just assignment (e.g.
SORT importing_itabis also an error)
also
CONSTANTS bar TYPE i VALUE 2.
bar = 1.
note that importing parameters(which are not pass by value), has recently gotten the "read only" metadata, which CONSTANTS also have
