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
Similar Messages
-
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 AMHello,
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 -
Re: Availability check fpr production order after released.
Prodsuction order is released. Materials pertainig got reserved for the order, goods issue not posted getting error saying availability check when checked the log. Kindly help me to solve my issue. Thanks in advance.
Hi,
you might not have defined the proper settings for availability check.
following is the logic in defining the settings.
Availability check for a material is carried out only if the material is
1. A stock item
2. Not a phantom item
3. Not a bulk material.
This can be carried out
1. during order creation
2. during order release
3. when a created order is saved.
Availability check can be triggered either manually or automatically.
For this we need to define in checking control(opjk)
First define a checking group(ovz2) and checking rule and this
must be assigned to checking scope.(opjj)
In the checking scope(opjj) we should define
1. which Mrp elements are to be considered during check
2. which inventory categories are to be taken into account
3. whether Replinishment lead time is to be taken into account or not
4. whether check is also to be carried at storage location level.
This checking rule must be linked to checking control(opjk)in which you can say
1.No availability check for the material
2.Availability check when saving the order
3.What type of check is to be carried
whether ATP CHECK or Check against PIR quantities
4. Whether order should be released or not if there is
any missing parts.
The checking group is assigned to material master MRP3 view
Regards,
nandha -
Code Inspector for 4.6b version
Hi all,
I need to use something like Code Inspector in a R/3 version 4.6b. Does anyone know what can be used instead of Code Inspector (it seems that it is impossible to install SCI on 4.6b)?
Please, help.
Thanks!
PatriciaHi Patricia!
This release is far to old for the modern tools. You might install (locally) a NetWeaver preview version, copy your soucecode and run the test on this preview release. But you need also all the dictionary objects...
But an extended program check, running with all options active, gives already about 50% of the code inspector results. In addition some select statement checks are done - but with a careful check, this is manually possible, too.
Regards,
Christian -
Code Inspector Error in program
Hi All,
When I released the transport for a program through solution manager, it showed a warning as "program contains code inspector error. Release anyway?" and I released it since the subtask was already released and changing the program will not be possible in that transport request. Now the program is in Quality system. But my concern is that what problem a program can cause when it is moved to production if it contains Code Inspector error? Since I have no much experience in ABAP. Please advise on this.
Regards,It depends on what kind of errors you got in Dev system .
You can again check the program for code inspector errors and if there are Priority 1 errors fix them in a ne wTr. -
Hi Abapers,
I have done recording for Tcode:pa30 in my report and used call transaction method. because of this i'm getting one error in when i check code inspector.
error message:
CA CL_CI_TEST_CRITICAL_STATEMENTS0002
Critical Statements
Call of Transaction &1
&1 = Name of Transaction
For CALL TRANSACTION there must already be a suitable transaction authorization with the calling transaction.
Kindly help me out to fix this error.
Thanks in advance.Hi
Goto SE24
enter this class CL_CI_TEST_CRITICAL_STATEMENTS
and see its documentation.
It shows the all critical errors that are there in code.
Regards
Anji -
Change message types in Code Inspector
Hi,
Can anyone let me know how to change the message type in the code inspector results ?
I want to change the message type from warning to error or vice-versa. I looked for the classes but could not figure out the exact class and the process to do so.
Any help is much appriciated.
Thanks,
VinodThere are certain options to supress error messages. You can find more information by clicking the 'i' button type being displayed in the code inspector results page. Here are some of the options,
1. ("#EC *) exculdes error messages regarding the current ABAP command
2. ("#EC NOTEXT) indicates that a string does not have to be stored as a text element
3. ("#EC CALLED) indicates that a FORM has a PERFORM call
4. ("#EC NEEDED) - no messages are output about a field that is only read
5. ("#EC PORTABLE) turns off the ASCII/EBCDIC test
6. ("#EC NOBREAK) - no messages are sent at BREAK-POINTs
7. ("#EC TRANSLANG) specifies that the use of TOUPPER or TOLOWER is also safe in multilingual systems.
8. ("#EC SYNTCHAR) specifies that the data TOUPPER or TOLOWER is used on contains only characters from the syntactical character set.
One example given there..
DATA: I TYPE I. "#EC NEEDED
I = 4.
BREAK-POINT. "#EC NOBREAK
WRITE 'Hugo'. "#EC NOTEXT
IF 'a' < 'c'. "#EC PORTABLE
ENDIF.
FORM AB. "#EC CALLED
ENDFORM.
Hope this helps.
Regards,
Susanta -
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 -
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 PathakHI,
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. -
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 -
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.
SharIn the source code you will have this in comment right, use the "#EC ENHOK.
-
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,
KhushbooIn 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 -
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 DandHi,
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
Maybe you are looking for
-
HELP to Open and Print automatic a REPORT
Hello, I'm a Portuguese Developer, and i've a challenge, that is, i want to open REPORT by FORMS in RDF format and i want to open and print automatic way, i do not want to open, and then have to go print button to pint them. I want to open by FORM wa
-
Unable to Import from My Picture Folders
I today downloaded Photoshop Album 2 Starter. The following ODBC error message was received (Internal Error : Data Not Found)when I tried to import folders with images from 'My Pictures'. All my images previously held by my previous Photoshop Album 1
-
Caching Issue with Java Portal....Need Help ASAP!
We are deploying a JAVA & .NET enviornment. We have a Java Portal Server that connects to the .NET enviornment. We seem to have a problem with the caching on the JAVA portal...any help you could provide would be much needed!!
-
Form personalization requirement
Hi All, I have a requirement where we need to throw error (or disable delete option) message if a user tries to delete a particular element (loan) which has been processed once either in regular payroll run or quick pay. (in element entries screen: A
-
I stupidly tried to open a file into iweb (it was a zip file). Now I can't get my iweb to open at all. It just comes up saying it cannot open such and such file, but then closes. Suggestions????