Code Inspector - DDIC objects

Hi All,
  Is there any way in code inspector through which I could check the naming conventions for Tables, Data elements, Domains, Structures etc., according to project requirement( Not for FM, Reports Classes ).
Any help is highly appreciated.
Thanks & Regards,
Venkat

Goto SCI transaction and define a check variant which will examine your code for errors. In this variant you can specify the naming convention for your Local Variables, Global Variables etc. In the same variant you can define the Performance Checks like Loop within a loop, nested selects, security checks, programming conventions etc. Make the variant global so that everybody has access to it.
2. Now you are ready to use this variant. Goto SCII --> Select Single --> Select an entry from the dropdown --> give the corresponding progam name/class name --> Give a variant name under Check Variant.
3. Execute.
4. It will show all the discrepancies in your code from where you can double click and goto the respective line of code and correct the error.
Note that you can also use a STANDARD VARIANT.

Similar Messages

  • Code Inspector/ATC checks for VKOS/VKOI object types

    Dear Experts,
    I found a strange behavior while executing CI checks on a transport request. TR contained only IMG Activity objects (Object Type VKOS/VKOI). After CI checks it gave errors "Recognized dead code". There is no coding for these kind of object type, I don't know where it was able to find the dead code. On debugging I found that, it is trying to populate Program name concatenatinv " SAPIC " and the object type. ( SAPICVKO). But there is no such program existing. It then gives "Recognized dead code" error.
    Has anyone faced such error before? I guess this is error in the standard program.
    Thank you.

    Other language NUnit test frameworks similar to ABAP Unit (AUnit) commonly have project extensions for storing test results. These are useful for the unit level regression (did a new change break any existing functions). History of test results, help narrow down the nature of a current failure by answering the question of 'When did this break?' or when did it last pass? In systems dependent upon outside components the history can provide a pattern for occasional failures due to factors outside the system under test.
    I see that ABAP unit test results can be added into the Code Inspector under the Check Variant.
    1. Is it common or recomended to use the Code Inspector (SCI) to store AUnit test results?
    2. Is it common or recomended to use Code Inspector Object variants to collect individual AUnit tests for a regresssion style 'TestSuite'?
    3. What reporting or tools exists for Code Inspector history?
    4. Is Application Logging the better spot for AUnit results history?
    (also posted on the wiki.. apologies - I'm new to the forum and wiki)
    Will Loew-Blosser

  • Multiple transports in Code Inspector object set

    I'd like to be able to put a Code Inspector object set together with multiple transports and my current version (46c)only supports a single input.  Anyone know how to input multiple transports?
    Tim Barrow
    ADP

    Tim,
    Even the current version (7.0) supports just one transport request. Looks like that is ruled out, then.
    You could use the first tab (Select object set) to include multiple packages? Or you could use the 'free selection' to specify objects..
    Hope this helps.
    Sudha

  • SAP naming conventions: customer DDIC objects, ABAP programming

    SAP Note 16466 Customer name range for SAP objects contains the SAP naming conventions for customer DDIC objects. Rule of thumb is that the names reserved for customer objects start with 'Y' or 'Z'. However, this note contains the naming convention for DDIC objects only.
    ABAP Code Inspector (transaction SCI) contains the following naming convention for ABAP programming:
    - Global types: T_
    - Global constants: C_
    - Global data: gv_
    - Global field-symbols: FS_
    - Global parameters: P_
    - Global select-options: S_
    - Global field-groups: FS_
    - Local types: LT_
    - Local constants: LC_
    - Local data: v_
    - Local field-symbols: LFS_
    This is the only place I know for ABAP programming naming convention. Does SAP has somewhere else any additional naming convention guidelines for ABAP programming?
    Thanks in advance for your help.
    Regards,
    Jarmo Tuominen

    Naming convention guidelines for ABAP programming is available in here: [Manage Successful Customer Development|https://websmp206.sap-ag.de/~sapidb/011000358700004444532001E].
    Naming Data Types and Objects
    The names of data types and objects have the form: <Classifier>_<Data type>_<Descriptor>.
    The names of data types and objects have up to 30 characters.
    Exceptions: names of input parameters and select options have up to 8 characters, and <Data type> and _ are omitted.
    First component: Classifier
    T Data type
    C  Constant
    G  Global data object
    L  Local data object
    FS Field symbol
    P  Input parameter
    S  Select option
    P  Formal parameter in form
    FM Formal parameter in function
    Second component: Data Type
    <t> Elementary data type, optionally followed by length
    C<n> Type C of length <n>
    N<l> Type N of length <n>
    X<l> Type X of length <n>
    D    Type D
    T    Type T
    I    Type I
    P<d> Type P with <d> decimals
    F    Type F
    WA  Work area
    IT  Internal table
    Third component: Descriptor
    Use meaningful English names. Later, your code may be maintained or analyzed by a programmer or support consultant who is not familiar with another language.
    Use only alphanumeric characters (A-Z and 0-9) and separate words with underscores (_). Hyphens are reserved for separating components in structured data types.
    Examples:
    G_I_COUNTER (global counter)
    T_IT_BOOKING_LIST (type for list of bookings)
    G_IT_BOOKINGS (global internal table of bookings)
    PSMOKER (input parameter for smoker flag: note omission of data type and _ for brevity)
    Edited by: Jarmo Tuominen on Feb 21, 2011 2:13 PM

  • About code inspector

    wt is code inspector?

    Hi,
    Code Inspector is SAP tool for the analysis of static ABAP code, data dictionary objects and other repository objects. The tool (transaction SCI) has a set of predefined performance checks that can help you to improve your code so as to optimize the performance of your program.
    --The Code Inspector is a tool for checking Repository objects regarding performance, security, syntax, and adherence to name conventions
    You can call the Code Inspector using transaction code SCI or through the menu path SAP Menu à Tools à ABAP Workbench à Test à Code Inspector. Also, you can call the Code Inspector from the following transactions:
    ABAP Dictionary (SE11) for DDIC tables
    Class Builder (SE24) for classes and interfaces
    Function Builder (SE37) for function groups
    ABAP Editor (SE38) for programs or reports
    ABAP Workbench (SE80)
    http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm
    Regards,
    Laxmi.

  • How to exclude the standard Include programs in Code Inspector?

    I am running code inspector (SCi) on all the development objects using a package. But in certain repository objects standard include programs have been used. I want to exclude the standard include programs while running SCI on the package. What are the ways to achieve this?

    Hi,
    while defining an object set choose:(in the menu)
    Edit - Exclude View Maintenance Function Groups.
    This should exclude most or at least some of the includes from being checked.
    Kind regards,
    Hermann

  • 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

  • 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

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

  • How to change Variant in Code inspector from Global to local.

    Hi,
    I have created my own variant,object set and inspection through T-code SCI and this has been created only for my id.
    Now when i go to SE38 and run Code Inspector i want the CI to use my variant instead of the Global DEFAULT variant.
    Kindly tell me how can i change from DEFAULt to my Local Variant.
    Many Thanks.

    Hi,
    abap_learner_das wrote:
    > Now when i go to SE38 and run Code Inspector i want the CI to use my variant instead of the Global DEFAULT variant.
    in that case you have to create a variant called "DEFAULT" as your local one. That variant will be used in SE38.
    In SE38 you can only use the DEFAULT variant. either the global one (if your user does not have a local one named DEFAULT) or the local one of your user.
    HTH,
    Hermann

  • Exchange XML document containing serialized DDIC objects

    Hi,
    Suppose you have an itab "z_table" with generic linetype. The table may contain any ddic structure or table.
    Furhter you want to exchange the itab "z_table" between the Systems A and B using XML.
    We are using the following code to serialize the itab "z_table" in system A:
      DATA: g_ixml TYPE REF TO if_ixml,
            g_stream_factory TYPE REF TO if_ixml_stream_factory,
            g_encoding TYPE REF TO if_ixml_encoding,
            ostream TYPE REF TO if_ixml_ostream.
      CONSTANTS: encoding TYPE string VALUE 'utf-8'.
      g_ixml = cl_ixml=>create( ).
      g_stream_factory = g_ixml->create_stream_factory( ).
      g_encoding = g_ixml->create_encoding(
        character_set = encoding
        byte_order = 0 ).
      ostream = g_stream_factory->create_ostream_xstring( string = ex_xml_string ).
      ostream->set_encoding( encoding = g_encoding ).
      CALL TRANSFORMATION id_indent
        SOURCE z_table = z_table
        RESULT XML xml_string
        OPTIONS data_refs = 'heap'
                xml_header = 'full'.
    And the following code to deserialize the itab in system B:
      CALL TRANSFORMATION id_indent
        SOURCE XML xml_string
        RESULT z_table = z_table.
    The serialization in System A creates an XML document containing <dic:z_structure> tags. If you now try to deserialize this document ("z_table")
    in System B, the deserialization fails in case z_table contains DDIC structures which are not known in system B.
    Is there any way to have the definition (e.g. type + length) of those ddic structures included in the XML document, so that
    a deserialization is possible even if the ddic structure is not known in system B? e.g. Rendered into a XML scheme, or directly as an
    attribute into the <dic:..> tag for instance?
    Any ideas are appreciated..
    Best regards,
    Georg

    Hello Raja,
    many thanks first for your answer. I tried the FM and got a table with the definition details I want.
    Unfortunately, I'm not really sure, how to continue working with the definition details. There are still some questions open:
    - How do I proficient include these table details into my xml with my original table z_table? Would it be possible to include the table details in a way, that a "call transformation" can easily deserialize my z_table with this table details?
    - How do I convert the lt_dfies table definition details back to a ddic object that I can use? Can this be done in memory only, so that I don't have to create real ddic objects on the target system?
    Many thanks and kind regards, Oliver<b></b><b></b>

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

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

    hi gurus
    I have a misterious error in the CODE INSPECTOR. My function module was already implemented but code inspector show that it is not implemented. I use netweaver 7.10
    in Syntax Check/Generation ->Test of Environment Determ.
    Function Group /PACkGEWEB/PMGF_CARACTERIS Sub-Object Type FUGR Sub-Object Name /PACkGEWEB/PMGF_CARACTE
    Function module /PACkGEWEB/PMFWL_CARACTERIS must be implemented
    When a click in information it´s showed the message below:
    In Release 7.10, the package check for development projects was changed. One major change is the introduction of
    the concept of the object environment. The object environment is,
    simply put, the list of additional object that are needed
    for the correct usability of the current object. The environment is determined by tools provided for the purpose.
    To enable the determination of the environment for function modules, enhancements are needed for the storage of
    function modules in certain cases. This enhancement takes place automatically when the function modules is saved.
    In addition, you can use the RS_REPAIR_FUNC_WITH_TYPE_POOLS report to implement the conversion for a set of function
    groups (and the function modules contained therein).
    To determine whether a conversion is necessary, use the #syntax check/generation>environment determination test#."
    What do I have to do for remove this "error" in my code inspector ?

    I think its better to avoid delete statements inside the loop
    instead of using delete statement inside the loop
    use
    delete table itab where condition
    or
    if u have to use loop at any cost
    modify internal table with flag=X
    and then delete all records from the itab at one shot using above statement
    Regards
    Vikas C

Maybe you are looking for

  • Display error protocol in an alv list

    Hi! I have in my program an alv list.Two of its fields are editable. For one of this field I want to control the value key by the user. So , i used ADD_PROTOCOL_ENTRY from class CL_ALV_CHANGED_DATA_PROTOCOL like in report BCALV_EDIT_04. The control w

  • E1EDKT1/E1EDKT2 Segment not displayed in EDIDC

    Hello, We are unable to get PO text in created IDOC , While creation of PO system generated Outbound idoc, but system was not transferred the PO text, when we cross checked E1EDKT1 E1EDKT2 These segments not displayed in EDIDC, Check below screen i,e

  • ALV: Create a new view in Settings

    I get an exception "Dynamic type conflict when assigning references " when trying to create new view in Settings of ALV. The ABAP call stack was: Method: MAP_FROM_MODEL_CELL_EDITOR of program CL_SALV_WD_PERSISTENCE========CP Method: MAP_FROM_MODEL_CO

  • Thunderbolt display not recognized

    i got this 27 inch thunderbolt. connected it to the imac (11,2 ) but somehow the display is not recognized. doesn't turn on. any ideas?

  • Insert ' character in a varchar2 column

    How can i insert ' character in a column. For example I want to insert HARINDER ' KANDA in a name column in one of tables. I get the message "Quoted String not properly terminated"