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

Similar Messages

  • Select query gives error in Code inspector and extended program check

    Hi,
    I have a query .
    SELECT pernr
      FROM pa9100
      INTO TABLE t_nca_tab
      WHERE endda EQ c_date AND
      z_nca_required EQ c_yes.
    This query gives me an error in Code inspector like :
    Large table pa0001: No first field of table index in WHERE  condition
    I have one more query that gives error in extended program check
    SELECT SINGLE stell ename
          INTO (g_stell, g_name)
          FROM pa0001
          WHERE pernr EQ wa_nca_tab-pernr AND
                endda EQ c_date.
    The warning says:
    *In "SELECT SINGLE ...", the WHERE condition for the key field "SEQNR" does not
    test for equality. Therefore, the single record in question may not be unique.*
    Its too urgent.
    Please reply.
    Regards,
    Binay.

    The first field is PERNR .. so if UR not giving pernr it will fetch
    all the data from the said table and between the given dates ..
    Check if this is your requirement ...
    write the select as ...
    where r_pernr is a range ...
    SELECT pernr
    FROM pa9100
    INTO TABLE t_nca_tab
    WHERE pernr in r_pernr  <----
                 endda EQ c_date AND
                 z_nca_required EQ c_yes.
    As UR using select single it's expecting to use all the key
    fields in the where condition ...
    U can ignore this warning message

  • Code Inspector with 'SELECT * FROM'

    Hello all,
    I want to tell my code inspector, that it shall find
    Select * from.
    I put it in the ABAP STATEMENT PATTERNS but now the code inspector finds all selects for it interpretates * as wildcard.
    What can I do ?
    Please help
    Simone

    as you ask this question in the performance forum, I would also like to know why you want to see all 'select *'.
    If you want to solve any performance problems then I should say, that it will not help.
    Select ' are no real performance issue. Field lists are nice to have, but difference is only considerable, if you reduce the width of the table dramatically, i.e.
    it is enough if you check the very width tables.
    And please to not introduce new select statements which deviate from others just in the definition of the field list.
    The real performance issues are the indexes, or better the selects which have no proper index support.
    Siegfried

  • How to remove the warning messages in CODE INSPECTOR of my report......?

    Hi All,
    I am trying to do the check to my program i.e CODE INSPECTOR. i am seeing the following warning messages below.
    1 warning message
    Program zraj0xxx include  zraj0xxx row 000083 Column0000
    %LINR-VBUP contains a hyphen
    (The Hyphen is used as a dereferencing operator! )
    Note: when i double click on the above message its taking me to the below code of my program.
    DATA %COUNT-VBUP(4) TYPE X.
    DATA %LINR-VBUP(2).
    TABLES VBPA.
    DATA %COUNT-VBPA(4) TYPE X.
    DATA %LINR-VBPA(2).
    2 warning message
    Program zraj0xxx include  zraj0xxx row 000079 Column0000
    Field string VLPMA is not referenced statically in the program
    Note: when i double click on the above message its taking me to the below code of my program.
    SELECTION-SCREEN: BEGIN OF BLOCK PROG
                               WITH FRAME TITLE TEXT-F58.
    TABLES: VLPMA,                                             
                  VLKPA.  
    TABLES VBUP.
    3 warning message
    Program zraj0xxx include  zraj0xxx row 000001 Column0000
    TEXT- GOH from the text pool is not used.
    Note: when i double click on the above message its taking me to the below code of my program.
    REPORT ZHYD0147 LINE-SIZE 255 NO STANDARD PAGE HEADING
       MESSAGE-ID ZB                                        
       LINE-COUNT 065(001).
    Thanks in advance.
    Rajesh.

    Hi Rajesh,
    First  warning message.
    DATA %COUNT-VBUP(4) TYPE X.
    DATA %LINR-VBUP(2).
    TABLES VBPA.
    DATA %COUNT-VBPA(4) TYPE X.
    DATA %LINR-VBPA(2).
    Here you are not supposed to use hyphen but instead use '_'.
    Second warning message
    Program zraj0xxx include zraj0xxx row 000079 Column0000
    Field string VLPMA is not referenced statically in the program
    That means you are not using this VLPMA any where in your program so bettr delete fromt he Top Include.
    Note: when i double click on the above message its taking me to the below code of my program.
    Third warning message
    Program zraj0xxx include zraj0xxx row 000001 Column0000
    TEXT- GOH from the text pool is not used.
    this also means that you are not using this Text elemnt anywhere of your program.So delete this one also.
    Thanks
    Rohini.

  • 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 *" ?

  • Differences between SLIN and Code Inspector

    Hi,
    Can anyone tell me the differences between SLIN and Code Inspector(SCI)..?
    and in which cases we use SLIN and  SCI..?
    and as an ABAPer, which one should we prefer..?
    Thanks,
    Pradeep.

    Hi
    Extended syntax check or SLIN is used to check the program in all aspects for the different syntaxes like
    When you use select single whether you have passed all the key fields or not>
    whether you have maintained the text elements texts or not,
    Have you used UNIT...CURRENCY along with the QTY and AMOUNT fields when displayed using the WRITE statement
    and check for all the varities of statements used in the code, and if there is some problem with that statement/command, it will display as error or warning.
    Check following links -
    slin
    can any one tell me abt SLIN T-CODE
    Reward points if useful
    Regards
    Anji

  • 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.

  • Check code inspector results after release

    Hello experts,
    I introduced the Code Inspector upon release of a workbench transport request.
    All transport requests are released by developers, but the team lead sometimes wants to very the result afterwards.
    Is there a way to get the code inspector results after a few days after the release?
    Thanks a lot.
    Dimitri

    Dear Dimitri,
    You can test released transport via SCII just as you can test unreleased transports.
    Go to SCII, check 'Request/Task' and give the name of the released transport in the Object Selection tab and press F8 or the execute button.
    I know that this is long after you asked the question but perhaps somebody here can use the information.
    Regards,
    Hans

  • 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 *" ?

  • 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>

  • Handling sy-Subrc in Code Inspector

    Hello all,
    I think, I am mad - but I dont't find the handling of sy-subrc in the code inspector.
    I found many hints, that it should be in Security- Checks, but here I have only this entries.
    Critical Statements
    Dynamic and Client-Specific Accesses in SELECT
    Dynamic and Client-Specific Accesses with INSERT, UPDATE, MODIFY, DELETE
    Client-Specific Shared Objects Methods
    Whats wrong ?
    Best wishes
    Stefanie

    Hi Stefanie,
    What exactly you are planning to with the sy-subrc checks......?
    Please eleborate what you are thinking. I can then be able to help you..
    Regards,
    Kunjal

  • Code Inspector Error

    I am validating the delivery status field in vbuk table as it exists in my selection screen.
    I am not having vbeln field in my selection screen .
    CODE INSPECTOR ERROR:
    Large table VBUK: No field of a table index in WHERE CONDITION.
    I am getting above error how to resolve this.
    Is there any other solution to resolve this error rather than creating secondary index on this field.
    METHOD  validate_delivery_status.
    IF s_lfstk-low IS NOT INITIAL.
    SELECT lfstk
    INTO g_lfstk
    FROM vbuk UP TO 1 ROWS
    WHERE lfstk EQ s_lfstk-low.
    ENDSELECT.
    IF sy-subrc NE 0.
    IF g_lfstk IS INITIAL.
    MESSAGE e043(z12). “ There is no data match your selection.
    ENDIF.
    ENDIF.
    IF s_lfstk-high IS NOT INITIAL.
    CLEAR g_lfstk.
    SELECT lfstk
    INTO g_lfstk
    FROM vbuk UP TO 1 ROWS
    WHERE lfstk EQ s_lfstk-high.
    ENDSELECT.
    IF sy-subrc NE 0.
    IF g_lfstk IS INITIAL.
    MESSAGE e043(z12). “ There is no data match your selection.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.    
    Thanks in Advance
    Regards,
    Avinash.                  

    There's no need to keep repeating information already given.
    As it stands your validation won't work. What if the user enters a selection of ranges? Or an exclusion? Or just an "*" to get everything?
    Use the correct function module to get the valid values for the domain LFSTK (see here: GET DOMAIN FIXED VALUE - Code Gallery - SCN Wiki) into an internal table. Then
    DATA match TYPE abap_bool. match = abap_false. LOOP domain_values INTO domain_value. CHECK domain_value IN s_lfstk. match = abap_true. ENDLOOP.
    IF match EQ abap_false.
    ..." Sorry, pal, not valid.
    ENDIF.
    Validating select options is not straightforward. If you need to validate against a db table, then you can only use
    SELECT SINGLE blah FROM dbtable INTO otherblah WHERE field IN s_field.
    IF sy-subrc IS NOT INITIAL:
        " Sorry, pal, not valid
    ENDIF.
    Which, as you've seen, is not very efficient.

  • Code Inspector: Enhancement / Adding own rules?

    Hi All,
    I wonder whether there is a way to add own rules to the Code Inspector.
    With own rules I mean checking the coding against our development guidelines, just two examples:
    1) Before SELECT ... FOR ALL ENTRIES it needs to be checked, whether the internal table is not initial.
    2) No direct table update to SAP tables.
    I locked to SCII. I believe it is not a solution to define a new check variant, since I haven't found the possibility there to add own rules (just naming conventions, searching for characters).
    Thus, I wonder whether there is any user-exit, BAdI etc. I could use - or do I really have to write my own parser - which would be a nightmare (multiple meanings of statements (INSERT can change an internal table or database table - depending on the table / variable given); considering global variables, method parameters etc.).
    Any advise is welcome!
    Best regards
    Lars

    Hi Lars,
    Check the below link to customize SCI as per your requirement.
    http://sapignite.com/enhancement-of-code-inspector/
    <removed by moderator>
    Thanks
    SA
    Edited by: Thomas Zloch on Feb 18, 2011 5:44 PM - please do not beg for points, age old thread by the way

  • Code inspector, SQL trace

    Hi all,
    Can anyone help me to analyse the output of sql trace and  code inspector that we do for a program.
    Thanks & regards,
    Saroja.

    SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05 to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05
    and click on list trace to view the details.
    If you notice performance issue, you can perform an SQL trace :
    1 - ST05
    2 - Activate trace
    3 - Run your prog.
    4 - Deactivate trace & display it !
    You'll see accessed tables, with runtime, etc...
    You can also perform traces on other items such as authorisation objects.
    Authorisation trace analysis 1. Open two sessions
    2. Execute transaction ST01 in one of the sessions
    3. Select the authorisation checkbox, note the other traces
    you can perform (SQL, RFC, Table Buffer etc)
    4. Click the 'Trace On' button
    5. Within your other session execte the transaction/report
    you want to trace or get the user in question to do it
    6. Return to the session where you turned the trace on and
    click on 'Trace Off' otherwise it will continue to record
    all athorisation checks
    7. Click on the 'Analysis' button
    8. Enter appropriate data into selection screen such as
    Username, type of trace records (i.e. Authorization check)
    9. Click on the Execute button.
    10. Report displaying trace results will now be displayed
    http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
    Code inspector is a static check on your code. This check highlights statements that MAY cause long run times or inconsistant results.
    This is new as of 6.10, it can be installed on 4.6C or 4.6D systems.
    Code inspector includes the checks from the earlier 'Extended program check', (also transaction SLIN). The transation code for 'Code inspector' is SCII.
    Regards,
    Amey
    Message was edited by:
            Amey Potale

  • How to create code inspector variant?

    Hi all,
    how to create code inspector variant?
    Regards,
    Jeetu

    Go to SE38 - Type in your program name
    Then in menu Go to Program - > check -> Extended program check ->
    You can select the rules to check
    Press the edit button and save with some name
    regards
    Vivek
    reward points if this helps

Maybe you are looking for

  • How to send e-mail attatchement from command line

    Hi, Is it possible to send an e-mail with some attatchment like a .zip file through command line in iPlanet messaging Server 5.2. Please let me know the procedure., Thanks Rajeev

  • Error While posting to FI.

    Hi gurus, while posting to FI geting the below error ............. Rejected trip: 0000000030 PerNo.: 00001157 Table entry not found in table 706K. Argument: 40040MJ95     9999123119490401+61      X Prog.terminated! pls tell what mistake i did and gui

  • No sound with ALSA and Creative Recon3D

    I have been working on this issue for several days now and still cannot get my sound card to work. Basically, I have a Creative Sound Blaster Recon3D sound card installed in a PCI slot and I am unable to play any sound through it. Note that I have th

  • Safari font specifically in Google search is way too BIG

    The font in Google search is way too big. Only in Google. Other websites show normal fonts. Did someone encounter such problem? Please help me! Thank you!

  • Office 2013 .pub keep getting a conversion failure.

    I have 43 pages of .pub from Office 2013 that keep failing conversion in the single conversion and the combine files option. I purchased this subscription specifically for this task on time sensitive material and I cannot obtain the PDF.