Regarding code inspector performance check

Hi all,
we encountered the following issue in code inspector
the parameter e_t_range is an internal table . and is tranferred as a value in general, this combination  does not perform well.it appears to be no tranfer . use reference transfer.
we are writing the code in function module and the e_t_range is one of the importing parameter of function module.
we are appending the output to e_t_range (table). we r getting the output.
but we r getting the following performance issue in code inspector.
please respond to this issue immediately  awaiting for reply.its very urgent********

hi,
       U r passing Table1 by pass by value which will pass table1 with its contents into another same table type tabel2. the calculation of FM will be done on tale2 not in table1.after getting some calculation into FM tbale 2 will be passed to table1.
Now if u r passing table by pass by reference then it will pass a address of table1 to FM and within FM's calculation original table1 will get changed directly by using passed address without using another table.
   now in pass by value it uses two internal table thats why it gives performance issue. but yes as said above in RFC u will have to use Pass by value options.
regards,
SKumar

Similar Messages

  • Customizing the code inspector with check for two executable statements in same line

    Hi Everyone,
    I have a reuirement to customize the code inspector.I need to create a check 'Two executable statements should not be in the same line'.
    While doing so i am facing one problem as in internal table it is capturing the report as word by word with same row number nd different line number.
    If anyone have worked on this before then help me out.
    I am using CL_CI_TEST_SCAN as superclass and making the changes in the run method.
    Regards,
    Khushboo

    In the source code you will have this in comment right, use the "#EC ENHOK.

  • Regarding Code inspector

    Hi,
    I am new to code inspector. I just worked on enhancement using BADIs.
    1) What is the purpose of Code inspector ?
    2) How can I use code inspector for my particular code inside one of the BADI method ?
    Please throw some light on this.

    Hi Tushar,
    These links gives you a good idea about what the code inspector does.
    1. <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/nw/a-c/code%20inspector%20user%20manual">Code Inspector User Manual</a>.
    2. <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://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">How to Build a New Check for the Code Inspector</a>
    3. <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://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">Evaluating the Quality of Your ABAP Programs and Other Repository Objects with the Code Inspector</a>
    Regards,
    Anand Mandalika.

  • Code Inspector / Extended Check - Error  in Inbound Custom Function Module

    I have created a new cutom FM for Inbound IDOC Application Posting.
    In the  TABLE   Parameter of FM  the following Tables difined.
    IDOC_CONTRL                     LIKE     EDIDC
    IDOC_DATA                     LIKE     EDIDD
    IDOC_STATUS                     LIKE     BDIDOCSTAT
    RETURN_VARIABLES     LIKE     BDWFRETVAR
    SERIALIZATION_INFO     LIKE     BDI_SER
    while checking with Code Inspector Tool I got an Error for  BDI_SER.(  Last Table Parameter of the FM)
    Syntax check warning
    "BDI_SER" can be enhanced. After a structure enhancement, the semantics of the
    parameter transfer may change.
    Internal Message Code: MESSAGE G_B
    (The message can be hidden with "#EC ENHOK)
    Type "BDI_SER" or the type of one of its subcomponents can be enhanced. The semantics of the parameter transfer may change after a structure enhancement.
    For the execution of a Remote Function Call (RFC), the actual parameter and formal parameter do not have to be of the same type. In the case of structure types, the actual parameter and formal parameter can contain additional components at the end. These additional components are set to their initial values.
    Check whether the enhancement category of the relevant type correct is set or whether the category "cannot be enhanced" should be used.
    How to fix this error?  other wise how to supress the Message by adding "#EC ENHOK
    where I have to add the Comment "#EC ENHOK.
    please help to give details .
    Thanks in advance.
    Shar

    In the source code you will have this in comment right, use the "#EC ENHOK.

  • Error in Code Inspector-while checking syntax in TR

    Hi,
    I am getting a error in code inspector:
    Table 'Table_name' sub-object type TABL sub-object name 'table_name'
    Buffering type is initial but delivery class is "C".
    How to avoid this?
    Thanks.

    Please check the" technical setting" of the table mentioned using SE11 and make it "fully buffered"

  • 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

  • Let me know about the code inspector ?

    Hi
    Let me know about the code inspector ?
    thanks in advance

    hi
    The transaction for the code inspector is SCI / SCID. Code inspector generally used to check for Syntax Checks, Security checks and Performance checks.
    <b>Check these links on Code Inspector:</b>
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/abap-code-inspector-1441023
    /people/randolf.eilenberger/blog/2007/03/12/code-inspector146s-performance-checks-i
    /people/peter.inotai/blog/2006/11/02/code-inspector--how-to-create-a-new-check
    http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/56/fd3b87d203064aa925256ff88d931b/frameset.htm
    <b>reward points for useful ans</b>
    Regards
    Aarti

  • ABAP Code Inspector & Security

    All:
    I am currently looking into the Code Inspector that is built into SAP that allows developers to run test/checks on their code related to performance, syntax, and as noted "security". I am trying to track down what exactly the "security" is being checked. I am running tests on my internal SAP systems to see how it acts, but I wanted to get any feedback from the security community on a few things
    1) What "security" checks does the Code Inspector actual check for?
    2) Is there an location with updated documentation from SAP (not dated 2002) which speaks to the security componet, not just mentioned it?
    3) Any useful use-cases within the security community that your organization/clients are using?
    Thanks,
    Matt Urban

    Hi,
    if you display a check variant in SCI there is info linked to each node (icon with I). For example calling C-routine is a security risk. Also dynamic statements are good example of security risk. You need to validate input properly before executing dynamic statement. Not sure about documentation but documentation available in SCI seems OK to me.
    On one project we used SCI to check any custom development (not only security). It helped us to increase quality of custom development. Especially, with less skilled developers.
    Cheers

  • Naming convention thru Code Inspector

    Hi Friends,
       Can we use code inspector to check the naming conventions?.
    Thanks in advance.
    Regards,
    saravanan.D

    Hi,
    The code inspector can of course be used to check for adherence of the ABAP code to your naming conventions.
    You can find information about Code inspector <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://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">at this link</a>.
    Regards,
    Anand Mandalika.

  • Code Inspector Checks

    Hi All,
    I am doing Code Inspector Check for my Program.
    Doing this, I am getting an Error Message Indicating to use TYPE TABLE OF instead of OCCURS 0 statement while declaring Internal Tables.
    Question is, Is there any difference between TYPE TABLE OF and  OCCURS 0 (Performance wise) ?
    Helpful answers will be rewarder by points.
    Thanks & Regards
    Swatantra Pathak

    HI,
    Yes.
    OCCURS 0 is obsolete now.
    When we define internal table with OCCURS 0 it will allocate a default memory of 8KB. In TYPE TABLE/STANDARD TABLE OF it is dynamic i.e as and when we get a record memory will be allocated.
    eg: If ur itab is with OCCURS 0 and u have data of size 2kb then 6KB memory is wasted i.e allocated and not used.
    eg2: If ur itab is with OCCURS 0 , Each record accupies 1 KB. Then after filling 8 records and at the time of getting 9 th records another 8KB is allocated. If u have 9 records in ur table then 7KB is wasted.
    If u r getting allocated with some memory(Resource) and not using means performancewise it is bad.
    Hope above examples are clear.
    Thanks,
    Vinod.

  • 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

  • How to remove Unicode errors from extended check and code inspector

    Hi
    We are working on making all our ABAP program to make unicode compliant. We are activating unicode flag in attribute and correcting syntax errors. After this when we do the extended checks or SLIN or code inspector, usually giving error for many statements such as whenever there is message.
    <b>Code is :</b>message a208 with text-004.
    <b>Error description is</b> :
    The message 208 for id zz has no long text.
    You can hide this message using "#EC *
    208 is -   & does not exist in & &. And  text 004 is - Cannot open the output file
    By using #EC * we can remove errors. But Is this the correct way and what does this indicate? Please explain.

    Hi Yogesh,
    Can you check whether the message number 208 in message id ZZ has the Self Explanatory checkbox as checked or not? I think it is not checked and u have also not maintained any long text. Hence the error.
    By using #EC - you do not remove the error, however u hide it from SLIN.
    It is used if there is some known error you cannot avoid which is returned by SLIN and you dont want it to be reported. Also, a way to "cheat" the reviewer who might be checking for errors.
    Not good !! 
    Regards,
    Aditya

  • 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

  • How to create and transport my own globel check variant for Code Inspector

    Hi,
    I want to create my own global check variant with Code Inspector, so that I can transport the Variant in other systems, but I can not save my variant whitout registering a SSCR-Key.
    Can anybody help me?
    Best regards
    Marcus

    I have solved it myself and will post the solution here soon.

  • 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

Maybe you are looking for

  • Need a exit while deleting the line item in PO

    Hi to all experts , My requirement is to find an exit or badi when the user deletes a line item and click on save the line item should be captured,. Is there any badi or exit which can do it .

  • In FTP server same file name with multiple vesions

    Hi All, My source system is UNIX. in that FTP server they have multiple files with same name  example " abc.dat"; with different versions example"abc.dat;43" "abc.dat;44", "abc.dat;45". . so how to read latest version file like "abc.dat;45"   from se

  • Exporting as .flv

    I have a 5 minute FCP5 project I am wanting to export as a Macromedia flash video. The settings are: MP3 audio at 160kbps, and the video is 1200kbps, frame rate is same as source, key frame placement is automatic, and has been encoded as On2 VP6. It

  • Just a Little Humor, Please?

    I installed Yosemite on my iMac, recently.  As far-as _I_ can tell Mac OS X v10.10 works as-promised.  :-) About its name, I _like_ to think:  Yose-Mite, as 2 separate words.  What can I say?  I break things down, well!  :-) I may as-well brag a litt

  • Statistics setup for 2LIS_11 and no storage space available internal table

    Hi, I am running statistical setup for 2LIS_11_VAITM. It ran for 10 hours and failed with an ABAP run time error. The error is "no storage space available for extending an internal table". For 11 application, the selection options is sales org, compa