SAP Code Inspector

Hi Everyone,
In our project we have a requirement to automate the code review checklist preparation to the maximum extent possible.
Code Inspector has some standard checks included into it from which we can select the relevant checks for inspection purpose. My question is, whether we can customize it to add few more checks to meet our requirement or whatever standard check is there is the most we can have??????
SAP Ver 4.6c.
Any links to download relevant materials?
Any one having any custom object build for this purpose they can share it.
It would be of great help.

Hi
http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/content.htm
see tis link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/50456d27-0a01-0010-ed95-ba71d8f0d74b
http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci918390,00.html?NextURL=http%3A//searchsap.techtarget.com/tip/0%2C289483%2Csid21_gci918390%2C00.html
The Code Inspector (transaction code SCI) is a tool for checking Repository objects regarding performance, security, syntax, and adherence to name conventions. You can also determine statistical information or search for certain ABAP words (tokens). In the Code Inspector, you can define inspections that, with the help of check variants, examine certain sets of objects. As the result of an inspection, you receive information messages, warning messages, or error messages on different properties of the examined objects.
You can check the following link for details.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/abap%20troubleshooting
http://help.sap.com/saphelp_erp2004/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm
<b>Reward if usefull</b>

Similar Messages

  • Abap code inspector (tx : SCI) to detect certain patterns

    Hello Experts,
    I want to use SAP Code Inspector to detect common problematic ABAP codes for all developed programs.
    But, I don't know how to make the check variant for detecting follwoing three patterns.
    SELECT * FROM
    SELECT * INTO
    SELECT SINGLE * INTO
    I guess I can use "Search for ABAP tokens" or "Search for ABAP statements paterns". But, It did'nt work because ' * ' represents any sequence of characters in the code inspector.
    Anyone can help me?

    I managed to set up the variant, however found a problem.
    I used "Search ABAP Statement Patterns" under "Search Functs" and set the pattern like followings.
    SELECT + INTO *
    SELECT SINGLE + INTO *
    However following statements were detected.
    SELECT * INTO TABLE IT_DRAW FROM DRAW.
    SELECT MANDT INTO TABLE IT_DRAW FROM DRAW.
    SELECT SINGLE * INTO TABLE IT_DRAW FROM DRAW.
    SELECT SINGLE MANDT INTO TABLE IT_DRAW FROM DRAW.
    It's because + means one ABAP token in the code inspector.
    Is there anyway to find only "SELECT SINGLE *" and "SELECT *" ?

  • Execute ABAP Code Inspector from Outside of SAP

    Hi all...
    For reporting purpose, I would like to use ABAP Code Inspector (transaction SCI) for generating output as a file, it should call from outside of SAP through RFC function module and generate the list (output) as flat file (or XML), does anyone have been done with similar work like this? I wonder if you could share your experience with me...
    thanks in advance,
    yayan irianto.

    I managed to set up the variant, however found a problem.
    I used "Search ABAP Statement Patterns" under "Search Functs" and set the pattern like followings.
    SELECT + INTO *
    SELECT SINGLE + INTO *
    However following statements were detected.
    SELECT * INTO TABLE IT_DRAW FROM DRAW.
    SELECT MANDT INTO TABLE IT_DRAW FROM DRAW.
    SELECT SINGLE * INTO TABLE IT_DRAW FROM DRAW.
    SELECT SINGLE MANDT INTO TABLE IT_DRAW FROM DRAW.
    It's because + means one ABAP token in the code inspector.
    Is there anyway to find only "SELECT SINGLE *" and "SELECT *" ?

  • Code Inspector: Examine programs in extern SAP systems?

    Would it be possible to call from the Solution manager the code inspector and examine a program of a connected 4.6c-er system?

    Hi there!
    Today, I stumbled over the same problem: Defining an Include for user exits leads to a check of the surrounding function group from SAP which I don't want to correct at all.
    Is there a nice an elegant way of filtering out the SAP modules from checking? If not, the only way to get around this seems to be building an own implementation of the Code Inspector integration into CTS.
    Thanks, Markus

  • Exporting Code Inspector Results in SAP 4.6C

    We are trying to use Code Inspector on SAP R/3 4.6C system. After the inspection is created for a program, we would like to export it to a document (PDF or another format) that can be used for reporting/audit etc. However, we are unable to do this.
    Is there any way / workaround to export the inspection results to a document?
    thanks
    -hemant
    Edited by: Hemant Babtiwale on Aug 12, 2011 1:04 AM

    Hello,
    Not sure abt 4.6, but in ECC6, there is clear button of "AS LIST" (CTRLSHIFTF11) and then List>Export>File.
    If you are using SLIN (extended prog check), use 'Display all changes' and then System>List>Save-->Local File.
    Diwakar

  • Using Code Inspector to search over SAP Packages

    Hallo Guru,
    I'm looking for a way to retrieve a message class number 127 "Initialization error" of message class C1 of a Package called CT.
    So, usually with Code Inspector we can search over our client Packages.
    But how I'm gone use code inspector to retrieve the different instances of code where my message number 127 is called.
    The Problem that I'm getting this error when I call the BAPI_CHARACT_CHANGE located in the Function Group CTBP
    And I don't know why I'm getting this?
    Please reply me, if you have difficulty to understand what I wrote.
    Also, please reply, if you really know how to solve the Problem.
    Thanks In Advance.
    Regards,
    Kais

    Hello,
    you can use program RS_ABAP_SOURCE_SCAN to scan sources for the message number. If you search for '127' in objects of package CT, you get a match: Include LCTMVF32, line 39.
    Hope this answers your question.
    Regards,
    David

  • Code Inspector Selection

    Hello,
    I am trying to use the Code Inspector and I would like to check only specific Includes from a Function Group.
    In my Object Set I specified the Function Group I wanted to scan (Tab Classes, Function Groups, etc.) and I specified the Include I wanted to specially verify in the Program Tab.
    It takes a lot of time to run and I get a runtime error. I have about 10 Includes to check so it should not take that long.
    Is there a way to combine 2 different selections in the standard selection fields without considering modifying the source code?
    I've checked the Code Inspector documentation but did not really find something that could help me solve my problem.
    Does anyone have a solution?
    Thanks in advance.
    Sylvain

    Hi guys,
    Thanks for the answers but it's not solving my problem.
    Here is an example of the situation I am going through:
    The SAP standard program SAPLYDEVCM contains a lot of standard Includes and some new Customer specific Includes that were added during the project.
    I want to scan only the Customer Includes Y* and Z*. When I enter the specific Include names the Code Inspector scan all Includes of the main program SAPLYDEVCM and that is not what I want.
    Is it possible to scan only the Customer Specific Includes?
    I hope my example was clear enough.
    Thanks for the help.
    Regards,
    Sylvain

  • Code Inspector Showing Error!!!

    Hi All,
    How to correct the following error raised by Code Inspector Check!!!!
    ProgramZFTSRPRECC Include ZFTSRPRECC Row 1 Column 0
    The namespace of the programZFTSRPRECC has the setting "C" and cannot be
    tested
    A possible cause for this is that an SAP program is being checked in a customer
    system
    Note, the following rule applies after a change in the sourcecode:
    For testing the namespace settingis ignored for one week.
    regards,
    naveen.....

    Check the attributes of the program, whether u may be selected "C" in Application option, if yes change to something else and test.
    Pls get back with the result.

  • Checking naming convention of internal tables in code inspector

    Can anyone please explain how in the code inspector can I check names of internal tables (like it_) that I use in a report program ? I know that I can specify it_ in Programming Convention -> Naming Convention->Program Global -> Data but this entry is not specific to internal tables as it also applies to variables and work areas. Apart from this is there any entry I can maintain in the Extended Naming Conventions for Programs(introduced in ECC 6.0)? Kindly reply at the earliest.

    Hi,
    Check these links for implementing the custom conventions in the code inspector
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/nw/how%20to%20build%20a%20new%20check%20for%20the%20code%20inspector
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/evaluating%20the%20quality%20of%20your%20abap%20programs%20and%20other%20repository%20objects%20with%20the%20code%20inspector
    hope it helps you.
    Thanks!

  • Code Inspector and Extended program check in one program

    Hello SAP gurus,
    We have a requirement where we need to create one tool which will have both code inspector and extended program check functionality and report should display all error, warning messages which are found from these checks.
    Can anyone provide some suggestions on this?
    Thanks,
    Khushboo Dand

    Hi,
    Go  to Se38 and check how code inpsector and extended syntax check. I dont remember the exact function module name but just debug a little u will be able to find it.
    Nabheet

  • What exactly is the function of code inspector

    Hi,
    Pelase let me know the function of code inspector and related transaction with it.
    Thanks in advance
    Regards
    Irfan Hussain

    Hi Irfan,
    The Code Inspector (transaction code SCI) is a tool for checking Repository objects regarding performance, security, syntax, and adherence to name conventions. You can also determine statistical information or search for certain ABAP words (tokens). In the Code Inspector, you can define inspections that, with the help of check variants, examine certain sets of objects. As the result of an inspection, you receive information messages, warning messages, or error messages on different properties of the examined objects.
    You can check the following link for details.
    http://help.sap.com/saphelp_erp2004/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm
    Thanks and Regards,
    Ashish.

  • Transport Organizer Syntax Check using the Code Inspector

    dear fellows,
    i'm facing a problem when i check the syntax of transport. When i'm using the option to check the syntax within the transaction se01 the system starts no longer the extended check but the code inspector.
    is there any possibility to turn this code inspector check off and to get the extended syntax check again?
    or on the othe hand, which variant is used for the check and is there any possibility to change the variant that is used?
    thanks for your answers,
    Robert

    Nope... this is SAP standard code so I will reply to the OSS and wait for them to come back to you.
    Regards
    Juan

  • Code Review of User Exits with Code Inspector

    Hi,
        We are using Code Inspector(Tcode - SCI) for checking the quality of ABAP Codes. It is working fine for all custom programs. But when we are checking the code of User Exits i: e MV50AFZ1 or ZXM06U22 then it checks the std SAP program (SAPMV50A) or (SAPLXM06) for these exits in place of checking that particular Exit only . How the customer/User Exits can be checked using Code Inspector. Pls advice.

    Hi there!
    Today, I stumbled over the same problem: Defining an Include for user exits leads to a check of the surrounding function group from SAP which I don't want to correct at all.
    Is there a nice an elegant way of filtering out the SAP modules from checking? If not, the only way to get around this seems to be building an own implementation of the Code Inspector integration into CTS.
    Thanks, Markus

  • Code inspector webdynpro java

    Hi, does anyone know of a code inspector like SAP has for webdynpro abap but than for the java version?

    Hi
    After retriving the FM from model
    u can follow these steps
    1)If ur Zfi name Zhr_Address
    then u can write the following code.
      Zhr_Address_Input input=new Zhr_Address_Input();
      wdcontext.nodeZhr_Address_input().bind(input);
      //setting params
    //for example parameters r p1,p2
      input.setP1("value");
      input.setP2("value");
      //executing the Function Module
      wdcontext.nodeZhr_Address_InputElement().modelObject().execute();
    wdcontext.nodeOutput().invalidate();
    Regards
    Hazrath.G

  • Code Inspector - Naming conventions &mExtended Naming conventions for Progs

    Hi experts,
    I had a look into the naming conventions enforced by 'DEFAULT' variant of code inspector (SCI).
    the relevant categories are: "Naming Conventions", and "Extended Naming conventions for Programs" under "Programing conventions".
    in the "Extended Naming conventions for Programs" category, for functions, (applicable while calling the functions) it says,
    importing parameter : I[:type:]_
    exporting parameter : E[:type:]_
    changing parameter  : C[:type:]_
    tables parameter    : T[:type:]_
    but in the "naming conventions" category, for functions (applicable while defining the functions), it says,
    importing parameter : P_*
    exporting parameter : P_*
    changing parameter  : P_*
    tables parameter    : P_*
    I felt, while defining the function too, its better to have beginning with  I_, E_, C_ or T_ instead of P_
    is the 'DEFAULT' variant of code inspector is provided and recommended by SAP?
    for easier maintenance and clearer understanding, which naming convention is more suitable, or is there any official guidelines released by SAP for ABAP developers.
    appreciate the opinions from experienced abap developers.
    thanks,
    Madhu_1980

    Frank,
    Thanks for your answer.
    But what about Entity Objects, View Objects, View Links, and Application Modules.
    I would like my developers to have an easy way to name them and also find them via intellisense.
    So I was thinking in naming them the following way :
    Entity Objects :
    EO_Employee
    EO_Department
    View Objects :
    VO_Employees
    VO_Departments
    View Links :
    VL_EmployeesToDepartments
    Application Module :
    AM_HRService
    However the use of "_" is not so "Java naming oriented".
    So other alternatives would be:
    1. take the "_" :
    1.1 EOEmployee (I don't like the fact of having 3 capital letters together).
    1.2 EoEmployee (I don't like the fact of having Entity Object with a lowercase "o").
    2. Use the prefix at the end, but this way I loose the intellisense feature I want:
    ex: EmployeeEO
    Which naming approach are you using for big projects ?
    Thanks,
    Claudio.

Maybe you are looking for

  • Please contact the system administrator...?

    Now, or at least until 5 m ago, this popped up when trying to access the Logic Pro forum: An error in the system has occurred. Please contact the system administrator if the problem persists. Useful links : * Forum Home -- browse the forums here. * S

  • Best Battery Backup for iMac 27"?

    Just received my new iMac 27" i7.  I contacted Apple and they told me I don't really need a battery backup to protect the iMac but it's always a good idea.  So I am looking for an inexpensive backup to just protect the iMac and give me a few minutes

  • Xfi fatality. sound problems with other devi

    hello all. just recently bought a xfi fatality card,and im trying to connect it to my xbox 360 to get sound, and thats when the problems start.i have a optical cable from my xbox 360 connector to the optical in on my fatality front panel and some hea

  • Customer Review on CS 5.5  Update, Will Adobe listen to 'em ?

    Adobe Creative Suite 5.5 - EXPENSIVE & without substance When I upgraded to 5.0, I paid $400. Okay, all the programs EXCEPT Acrobat Pro were updated. Adobe sent an old version. I called them. Sorry, they said, you only get the old version. I mentione

  • Is there a way to predict the size of a gzipped tarball

    I am trying to write a backup script that will create gzipped tarballs that will fit on a CD. Maybe I am approaching this from the wrong direction, any advice is much appreciated.