Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to solve

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member196079
Active Contributor
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

former_member196079
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

kesavadas_thekkillath
Active Contributor
0 Kudos

The error is because you are trying to change the system field.

Instead of sy-lilli use a variable declared.