04-21-2008 8:53 AM
what is extended program check?
in one of my program im getting an warning message
field string x_sort is not statically referenced in the program
what does it mean by statically referenced?
04-21-2008 8:57 AM
You use this function to perform static checks, which are too time consuming for the normal syntax check. The extended program check returns both errors and warnings and it is possible to run either individual specialized tests or one whole standard check.
Just comment out the part and run the extended check as that field string might not be used in the program.
regards
Saravanan
Edited by: Saravanan on Apr 21, 2008 10:02 AM
04-21-2008 8:57 AM
You use this function to perform static checks, which are too time consuming for the normal syntax check. The extended program check returns both errors and warnings and it is possible to run either individual specialized tests or one whole standard check.
Just comment out the part and run the extended check as that field string might not be used in the program.
regards
Saravanan
Edited by: Saravanan on Apr 21, 2008 10:02 AM
04-21-2008 8:57 AM
x_sort is not being used in your program , unnecessary declaration present
04-21-2008 8:58 AM
Hi,
please check this link
http://help.sap.com/saphelp_nw04/helpdata/en/cf/f2bbcb142c11d3b93a0000e8353423/content.htm
field string x_sort is not statically referenced in the program
this means u declared the field but u are not using the field .
if u want to remove this error then u just comment or delete the fields that r not used in ur program.
reward if helpful
raam
04-21-2008 9:02 AM
hi mozam
well extended check is like
we say small bother of epc
ok and the errir u got is becoz u have created an field symbol that meas its pointing to somr thing which isnull at ceation time and scince u ahve not used it so it is still he same
welll this is only an warning but for a better programer its good to use aal the things that is declared
plz reward if usefull
thanks and regards
snehi chouhan
04-21-2008 9:09 AM
thank all of u ,
what is the importance of epc do we regularly use it
and how it is different is it when compare to code inspector
04-21-2008 9:24 AM
Extended Syntax Check -
Many checks are excluded from the standard syntax check for performance reasons. The extended program check performs a complete check that includes the interfaces of external procedures called from your program.
Errors in the extended program check cause exceptions, which in turn cause runtime errors when you run the program. You must correct them. The exception to this is coding that cannot be reached. However, you should delete this to minimize the size of your program and make the source code easier to understand.
Warnings in the extended program check should also be corrected. If your program contains statements that are definitely correct but still produce warnings in the extended program check, you can exclude them from the check using pseudocomments ( "#EC ).
You should always run the extended program check on a new program. You have not finished developing a new program until you can run the extended program check on it without any errors or warnings. Messages are permissible, since they are generally not critical.
The extended program check is also only a static check. It cannot eliminate all of the circumstances that could lead to exception situations or runtime errors. For example, any statements in which you specify arguments dynamically as the contents of fields, or in which you call procedures dynamically, cannot be checked statically.
Code Inspector -
The Code Inspector is a tool for checking Repository objects regarding performance, security, syntax, and adherence to name conventions.
Please have a look at below link for details of code inspector.
[Code Inspector|http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm]
I hope it helps.
Thanks,
Vibha
Please mark useful answers