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

No read access

Former Member
0 Likes
626

I declared

Data: V_USRID TYPE SYSID.B

But in extended program check it is showing that

No read access to field V_USRID.

Every time i am hiddening this type of message, is there any solution for this. please guide me

I declared

Data: V_USRID TYPE SYSID.B

But in extended program check it is showing that

No read access to field V_USRID.

Every time i am hiddening this type of message, is there any solution for this. please guide me

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
595

The message simply means that although you've defined the variable, and perhaps given it a value from somewhere, you never read from it anymore. Typically this means that you don't actually need the variable. Sometimes you do need it, but only perhaps as a field to select into when doing an existence check. In these cases it is valid to hide the check using the "EC comment.

matt

Read only

Former Member
0 Likes
595

Just hide it by comments.

It has no significance

Read only

Former Member
0 Likes
595

Hi,

This is because the variable to get the name of SAP R/3 is declared and assigned the value sy-sysid, but no where the variable is assigned to other variable..

Since it is used for only assignment, in the extended program check it shows as no read access.

To avoid this you can avoid declaring the variable if it is not used anywhere in your code, else comment the code as given in extended check.