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: 

warning in code inspector

Former Member
0 Kudos

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?

6 REPLIES 6

Former Member
0 Kudos

hi Puru,

That means that particular field is no where used within the program.. it is just declared

Regards,

Satnosh

0 Kudos

hi.

but i am declering this table in table defination and fetchinf data from same.

Former Member
0 Kudos

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

Former Member
0 Kudos

Do you use the said string field anywhere in the program ? If not, remove it and run the CI again.

Former Member
0 Kudos

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

Former Member
0 Kudos

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