‎2013 Apr 25 8:58 AM
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"
‎2013 Apr 25 9:05 AM
Hi
You can perform the code inspector check for the entire class but not for any particular method.
Regards
Swati
‎2013 Apr 25 9:14 AM
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
‎2013 Apr 25 9:22 AM
‎2013 Apr 25 10:24 AM
hi
i am developing a custom program to perform code inspection.let me know how to achieve this.
‎2013 Apr 25 3:12 PM
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
‎2016 Mar 04 1:05 PM