Application Development and Automation 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: 
Read only

how to solve

Former Member
0 Likes
860

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
Read only

Former Member
0 Likes
805

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

4 REPLIES 4
Read only

Former Member
0 Likes
805

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

Read only

Former Member
0 Likes
806

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

Read only

Former Member
0 Likes
805

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
805

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

Instead of sy-lilli use a variable declared.