SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
No Transfer of sy-subrc
In ABAP Objects, the following statement causes an error message:
CALL FUNCTION func IMPORTING p = sy-subrc.
Correct syntax:
DATA subrc TYPE sy-subrc.
CALL FUNCTION func IMPORTING p = subrc.
Reason:
After parameter transfer, sy-subrc is set by the call statement.
This overwrites the transferred value. With a few exceptions, system fields should never be overwritten explicitly in a program.