2010 Apr 09 9:16 AM
i am doing remediation in ecc6 and i got Problematic Statements(Error) in SLIN as below,
Do not change system fields
The message can be hidden with "#EC WRITE_OK
and the code is like below,
GET CURSOR LINE sy-lilli.
2010 Apr 09 9:28 AM
HI veeru..
You can't change the value of the sy structure....you must have an internal field.
data line TYPE sy-lilli.
GET CURSOR LINE line.
Regadrs
Marco
HI veeru..
You can't change the value of the sy structure....you must have an internal field.
data line TYPE sy-lilli.
GET CURSOR LINE line.
Regadrs
Marco
2010 Apr 09 9:25 AM
maybe the user is trying to get the clicked line from a list.
he could use the value of sy-lilli into a variable directly.
the error is because sy-lilli is tried to be changed from the clicked line in the list. GET CURSOR LINe puts the clicked line value into the field name on the right hand side.
possible workaround..
DATA:
g_line TYPE sylilli.
GET CURSOR line g_line.
regards,
Anoop
2010 Apr 09 9:28 AM
HI veeru..
You can't change the value of the sy structure....you must have an internal field.
data line TYPE sy-lilli.
GET CURSOR LINE line.
Regadrs
Marco
2010 Apr 09 9:30 AM
Hello,
Dont think it will have any effect in the program nor will it go for a dump. You can hide it as mentioned using "#EC WRITE_OK, else as suggested pass the sy-lilli to a variable and use it
Vikranth
2010 Apr 09 10:15 AM
The error is because you are trying to change the system field.
Instead of sy-lilli use a variable declared.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |