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: 

Extended Program Check Warning For Field Attributes

Former Member
0 Kudos

I 've DEVELOPED  alv report when i am using extended program check i m getting Warning For Field Attributes

1) WARNING: NO READ ACCESS TO TABLE T_T001L[].

( message can be hidden using : "EC  NEEDED)

DATA: T001L type T001L,

      T300  type T300,

      T301  type T301,

      TVST  type TVST.

TYPES: BEGIN OF TY_T001L,

         lgort type T001L-lgort,

       END OF TY_T001L.

DATA: T_T001L type TABLE OF TY_T001L.----


> IT SHOWING THIS LINE

2)1) WARNING: NO READ ACCESS TO TABLE T_T001L[].

( message can be hidden using : "EC  NEEDED)

DATA: T300  type T300.----


> IT SHOWING THIS LINE

3)2)1) WARNING: NO READ ACCESS TO TABLE T_T001L[].

( message can be hidden using : "EC  NEEDED)

DATA: T300  type T301.----


> IT SHOWING THIS LINE

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

This could happen if you are not reading those internal tables any where in the program and has just declared it.

Regards

Deepa

5 REPLIES 5

Former Member
0 Kudos

Hi

This could happen if you are not reading those internal tables any where in the program and has just declared it.

Regards

Deepa

0 Kudos

Hi Deepa,

Thanks for reply.

i m using internal table

if not s_lgort[] is initial.

if not p_werks is initial.

select lgort from t001l

into table t_t001l----


>still i m getting the same waring

where werks eq p_werks

and lgort in s_lgort.

if sy-subrc ne 0.

message e003(z01) with s_lgort-low p_werks.

endif.

endif.

endif.

Regards,

Raghu.

0 Kudos

- You are not actually using the internal table (there is no LOOP or READ TABLE statement).

- You only require the sy-subrc return code, that is the reason of the extended check warning - you fill an internal table that is not read anywhere.

Regards,

Raymond

0 Kudos

You are just populating the values to the itab for checking the existence of data and then not using it anywhere.

Change your code like this, if you are not using the itab anywhere then you can change the code like below


if not s_lgort[] is initial.  "This is not required , try to remove it.
if not p_werks is initial.
select single * from t001l 
where werks eq p_werks
and lgort in s_lgort.
if sy-subrc ne 0.
message e003(z01) with s_lgort-low p_werks.
endif.
endif.
endif.

raymond_giuseppi
Active Contributor
0 Kudos

Are you using this internal table in your report, if no, the warning is correct...

Regards,

Raymond