09-01-2006 12:22 PM
Hi.
i am getting warning in code inspectror 'Field string PA0015 is not referenced statically in the program.'
also for some fields giving same warning...
What is meaning of this? how to correct this?
09-01-2006 12:24 PM
hi Puru,
That means that particular field is no where used within the program.. it is just declared
Regards,
Satnosh
09-01-2006 12:27 PM
hi.
but i am declering this table in table defination and fetchinf data from same.
09-01-2006 12:26 PM
Hi,
This warning message is thrown for all declarations which are not used in the program.
For eg.
TABLES : PERNR.
But you`d not used the global work area PERNR in your program. Since it is not used in the program it affects ur performance.
Reward if helfpul.
Regards
09-01-2006 12:26 PM
Do you use the said string field anywhere in the program ? If not, remove it and run the CI again.
09-01-2006 12:36 PM
Hi,
For fetching data, you don`t need a TABLES declaration, you would only need that in the following circumstances :
1. When u use a select-options.
2. Whenever you use a INSERT <TABLENAME> thus inserting records for ur DB without a workarea.
But in some case you`ll have to ignore those warnings, thats the reason they are displayed as warning and not as error msgs.
Reward points if convinced with the answer.
Regards
09-01-2006 12:50 PM
Hey,
Thanks for the recognition.
If my thread had solved ur problem, then u could`ve awarded me the 10 points....i would`ve been happier.
Just a thought to ponder...
Rgds