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

Extended Program Check Warning For Field Attributes

Former Member
0 Likes
1,878

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

Former Member
0 Likes
1,179

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

Former Member
0 Likes
1,180

Hi

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

Regards

Deepa

Read only

0 Likes
1,179

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.

Read only

0 Likes
1,179

- 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

Read only

0 Likes
1,179

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,179

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

Regards,

Raymond