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 to field string

Former Member
0 Likes
1,332
TYPES:  BEGIN OF addr,
        adrnr TYPE adrc-addrnumber,
        END OF addr.

        i_addr               TYPE TABLE OF addr,

        wa_i_addr               TYPE addr,

After executing extended program check I get the following. What does it mean and how do I fix this.

<b>No read access to field string WA_I_ADDR

(The message can be hidden with "#EC NEEDED)</b>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
727

Basically what that means (which by the way is just a warning) is that you declared this work area and moving values into it but you are not using that work area.

Once you use a statement like below,

LOOP AT i_addr INTO wa_i_addr.

something = wa_i_addr-somefield.

ENDLOOP.

You will not see this message in extended program check. If you don't need this work area for any purpose, then you can just ignore this warning message.

TYPES:  BEGIN OF addr,
        adrnr TYPE adrc-addrnumber,
        END OF addr.

        i_addr               TYPE TABLE OF addr,

        wa_i_addr               TYPE addr,

After executing extended program check I get the following. What does it mean and how do I fix this.

<b>No read access to field string WA_I_ADDR

(The message can be hidden with "#EC NEEDED)</b>

2 REPLIES 2
Read only

Former Member
0 Likes
727

Hi,

Please try this.


TYPES: BEGIN OF addr,
         adrnr TYPE adrc-addrnumber,
       END OF addr.
 
DATA:  i_addr    TYPE addr,
       wa_i_addr TYPE addr.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
728

Basically what that means (which by the way is just a warning) is that you declared this work area and moving values into it but you are not using that work area.

Once you use a statement like below,

LOOP AT i_addr INTO wa_i_addr.

something = wa_i_addr-somefield.

ENDLOOP.

You will not see this message in extended program check. If you don't need this work area for any purpose, then you can just ignore this warning message.