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: 
Read only

code inspector for class-method

Former Member
0 Likes
3,512

hi folks

i would like to know if we can perform code inspector for a method of a class?i am able to figure out for reports and function modules.if i run the standard one i am getting message "code inspector cannot be carried out for this object type"

6 REPLIES 6
Read only

former_member210266
Active Participant
0 Likes
1,699

Hi

You can perform the code inspector check for the entire class but not for any particular method.

Regards

Swati

Read only

Former Member
0 Likes
1,699

Hi,

You cannot do code inspector checks for methods within a class.

You can run Code Inspector for customized classes using Object Type->Check->Code Inspector.

If you run code inspector for standard classes,

"This is a SAP object that cannot be checked" (Message no. SCI058) is displayed.

Thanks & Regards,

Prasanna

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,699

AFAIK, you have to check the whole class via code inspector, but in which context are you asking this, to develop a custom check program or during method maintenance via SE24 or SE80.

Regards,

Raymond

PS: When you ask for SCI in SE37/SE80 on a function module, it executes on the whole function group.

Read only

0 Likes
1,699

hi

i am developing a custom program to perform code inspection.let me know how to achieve this.

Read only

0 Likes
1,699

Don't forget that you can force SCI at transport request release too. (SE03 - Global Customizing Transport Organizer)

So last time I had to call SCI, I simulated this control, filling  dummy E071 records

call function 'TRINT_INSPECT_OBJECTS'
       exporting
         iv_mode       = 'N'
         it_e071       = lt_objects
         it_e071k      = lt_keys
       importing
         ev_current    = lv_current
         ev_error_type = lv_error_type.

NB: For a sub-object like method, program source or funciton module, I regenerated the main object id with

call function 'TR_CHECK_TYPE'
       exporting
         wi_e071  = e071
       importing
         we_tadir = tadir.

So a 'LIMU' 'METH' 'Zclass   method' get converted in a TADIR entry 'R3TR' 'CLAS' 'Zclass'.

(Or analyze source til you get use of class CL_CI_INSPECTION)

Regards,

Raymond

Read only

0 Likes
1,699

This message was moderated.