‎2010 Jun 08 11:02 AM
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
‎2010 Jun 08 1:49 PM
Hi
This could happen if you are not reading those internal tables any where in the program and has just declared it.
Regards
Deepa
‎2010 Jun 08 1:49 PM
Hi
This could happen if you are not reading those internal tables any where in the program and has just declared it.
Regards
Deepa
‎2010 Jun 09 12:48 PM
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.
‎2010 Jun 09 1:33 PM
‎2010 Jun 09 1:43 PM
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.
‎2010 Jun 08 2:04 PM