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: 

Code Inspector Development

Former Member
0 Kudos

Hi all,

We have been assigned to make our own code inspector in 4.6 right from scratch , at this point of time we are not able to understand how to proceed.Kindly help with the flow.

Regards

Gaurav Mehrotra

1 ACCEPTED SOLUTION

former_member480923
Active Contributor
0 Kudos

Hi try this

To build a new Code Inspector check, you have to do the following:

· Create a new global class that extends one of the existing Code Inspector classes

· Implement the instance constructor

· Implement the actual check routine in the RUN method

· Implement method GET_ERROR_TEXT to output message texts

· Include the new check into the check variant tree

Additionally, if your check has user parameters:

· Add user parameters as private class attributes to your check class

· Set flag HAS_ATTRIBUTES in the instance constructor

· Implement methods GET_ATTRIBUTES and PUT_ATTRIBUTES to get and write away attributes

· Implement method QUERY_ATTRIBUTES of interface IF_CI_TEST to create the Pop-Up for the parameter input

Hope thsi Helps

Anirban

12 REPLIES 12

Former Member
0 Kudos

Hi gaurav,

1. Probably this may help u a little.

2. To read the source code of a program,

just copy paste to get a taste of it.

3.

report abc.

DATA prog(30) TYPE c.

DATA itab TYPE TABLE OF string.

prog = sy-repid.

READ REPORT prog INTO itab.

break-point.

regards,

amit m.

Former Member
0 Kudos

HI

GOOD

I DONT THINK THERE IS ANY NEED TO DEVELOP YOUR OWN CODE INSPECTOR,ANY WAY YOU CAN GO THROUGH THE CODE INSPECTOR GIVEN BY SAP.

TCODE -SCI

YOU GO THROUGH THIS AND IT WILL SOLVE YOUR ALL PERFORMANCE ISSUES.

THANKS

MRUTYUN

former_member480923
Active Contributor
0 Kudos

Hi try this

To build a new Code Inspector check, you have to do the following:

· Create a new global class that extends one of the existing Code Inspector classes

· Implement the instance constructor

· Implement the actual check routine in the RUN method

· Implement method GET_ERROR_TEXT to output message texts

· Include the new check into the check variant tree

Additionally, if your check has user parameters:

· Add user parameters as private class attributes to your check class

· Set flag HAS_ATTRIBUTES in the instance constructor

· Implement methods GET_ATTRIBUTES and PUT_ATTRIBUTES to get and write away attributes

· Implement method QUERY_ATTRIBUTES of interface IF_CI_TEST to create the Pop-Up for the parameter input

Hope thsi Helps

Anirban

0 Kudos

Hi Anirban,

I'm investigating code inspector for my company and may have a need to develop some custom checking too. Would it be possible for me to contsct you by phone?

You can email me directly at soyab.husein@tycoelectronics.com.

Thanks.

Soyab

Former Member
0 Kudos

Hi Gaurav,

Code Inspector is a tool by which you can check your objects (classes, FMs, programs) through transaction SCI..Moreover, you can add ur own checks within it.

If you can send your mail id , I can send u a very nice document on how to implement SCI.

Regards,

SP.

0 Kudos

Hi SP,

I want to add my own checks within the code inspector, in 4.7 version. It would be very helpful if you send me the document on how to implement SCI. My mail id is - ashiqhafeez@gmail.com

Thanks and Regards,

Ashiq

0 Kudos

Hi Sylendra

Could u pls send me the doc to my personal id "vinod_sap@rediffmail.com".

I am also facing problem while creating a new checks for naming convention.When ever i am trying to create a new check variant then getting errors

"Invalid Parent Class <Parent Category Class> in Check Variant",I am not getting the solution of this.

Could u pls help me out if u can.

Waiting for your reply

Regards

Vinod Tiwari

0 Kudos

hi Sylendra !

I'm also working on customized CI checks. Could you send me your document concerning ci implementation ?

Thank's in advance, my email is: paul.flipo@gmail.com

Message was edited by:

paul flipo

Former Member
0 Kudos

Hi,

Check this report if it is helpful to you.

RPR_ABAP_SOURCE_SCAN

Regards,

Suresh

Former Member
0 Kudos

Thanks for your replies but i don't need a new check instead i have to design the same code inspector as in 4.7 .The fuctionality is clear .

Peter_Inotai
Active Contributor
0 Kudos

You can have SAP's Code Inspector in 46C. Check OSS note 543359 /Code Inspector for SAP R/3 Release 4.6C/, you can download the transport files via the Marketplace and ask your basis team to import it.

It's easier:-)

Peter

Former Member
0 Kudos

Hi Sylendra!

I'm working in my company improving the quality of ABAP code. Could you send

me your document about transaction SCI?

My email is herica.nobrega@arcelor.com.br

Thanks a lot.

herica