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.

Similar Messages

  • Code inspector check

    iam working on ECC6.0
    my report contains 4 radio buttons.
    i done code inspector check for program.
    P_ful is radio button.
    i got error  like I/O field (input field) P_FUL has no accessible label.
    how to hide this error.
    Regards,
    Suresh.

    Hi,
    I declared text symbols for radiobuttons.
    iam using below code.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS P_FUL RADIOBUTTON GROUP RC  .
    SELECTION-SCREEN COMMENT 3(15) TEXT-003 .
    SELECTION-SCREEN POSITION 20.
    PARAMETERS P_PAR RADIOBUTTON GROUP RC .
    SELECTION-SCREEN COMMENT 22(20) TEXT-004 .
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-005.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS P_VAL   RADIOBUTTON GROUP RA DEFAULT 'X' USER-COMMAND UC2.
    SELECTION-SCREEN COMMENT 3(11) TEXT-006.
    SELECTION-SCREEN POSITION 20.
    PARAMETERS P_UPDE RADIOBUTTON GROUP RA.
    SELECTION-SCREEN COMMENT 22(15) TEXT-007.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B3.
    Please help on this.
    Regards,
    Suresh.

  • Customise Code Inspector' checks

    Hi all,
    I am working on code inspector.I am customising Search Functs (Search of ABAP Tokens).
    Any idea how to implement it.
    Or Just pass me the Class for that particular stream.
    Points will be sured for helpful answers.
    Thanks
    Sanket Sethi

    hi check this..
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/code%2binspector
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/4b64488cce3945ba42b059319d62dc/frameset.htm
    regards,
    venkat .

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

  • Code Inspector Development

    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

    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

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

  • 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

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

  • 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

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

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

Maybe you are looking for

  • Sharing iTunes libraries on 3 Windows 7 PCs and 3 iPads

    We have iTunes on 3 Windows 7 PCs.  Mine (Tom), my wife's (Mary) and my daughter's (Sue).  Each of us has our own iTunes account and we each "share" our libraries (using both "Home Sharing" and the old original "Edit, Preferences, Sharing"). The 3 PC

  • How to register jdbc Driver in Applet

    Dear Sir, i am running a applet through jsp i am using following softwares jakarta-tomcat-4.1.10 mysql 3.23.52-max jsp j2sdk1.3.1 Linux 7.3 Netscape 4.* the problem is when i am trying to load the applet in jsp <jsp:plugin type="applet" code="XX" wid

  • Cancellation of confimations

    Hi PP Gurus, I have a problem while cancellation of conformations. I have created a Production order and confirmed the same by co11n, the same is cleared in quality also. I want to cancel the above confimation By using co13 i have cancelled the same.

  • Sap Script multi lines

    Dear All       I want to print two tables data in two columns using sap script . how to print the data in multiline in a column. Thanks and Regards Suresh

  • Photoshop Elements 8 Commercial Use

    I need to know if it is ok to use an image (jpeg) I created using Photoshop Elements 8 commercially as I wish to post this image on a Social Network that can potentially sell your photos. I need an answer from an Official Adobe Employee who knows the