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: 

code inspector

Former Member
0 Kudos
232

hi all,

i took the copy of standard code inspector program sapls_code_inspector with the trasnsaction code zsci. when i am trying to create the object set for the copied (saplz_code_inspector) program it shows the following error.

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLS_CODE_INSPECTOR" had to be terminat

has

come across a statement that unfortunately cannot be executed.

Error analysis

You attempted to use a 'NULL' object reference (points to 'nothing

access a component (variable: " ").

An object reference must point to an object (an instance of a clas

before it can be used to access components.

Either the reference was never set or it was set to 'NULL' using t

CLEAR statement.

Can anyone please tell the solution for this and also the procedure to take the copy of the standard code inspector.

thanks and regards,

thogai.

4 REPLIES 4

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
173

Hello,

Why do you want to copy SCI into ZSCI? What exactly do you want to customize in SCI?

BR,

Suhas

Former Member
0 Kudos
173

hi suhas,

i need to add some additional features like identifying the 'select * ' and 'select single *' tokens in report, avoiding the unreferenced functions in a program

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
173

Hello,

You can configure the code inspector via SCII

You can search for specific token e.g., SELECT * or SELECT SINGLE * using the "Search Functs." option in SCII.

BR,

Suhas

PS: What do you mean by " unreferenced functions"?

Former Member
0 Kudos
173

unreferenced functions.

Functions that are implemented in the scope of a measurement, but not called should be displayed as unreferenced functions.

A message should be output for each function module.