09-02-2011 9:59 AM
Hello,
I am planning to use code inspector for code review from security point of view.But I found the check of sy-subrc handling deactivated.
Please suggest how to activate the the check for sy-subrc.
Thanks in advance.
Regards,
Anil
09-02-2011 12:24 PM
The code must react to the sy-subrc, otherwise the check is meaningless.
Cheers,
Julius
09-04-2011 2:41 AM
I am not sure if I understand your question but in code inspector you can define your own templates and use them for checking your code. So if standard template delivered by SAP does not cover all your tests then you can copy it and add missing checks.
Cheers
09-04-2011 9:22 AM
It also occured to me that possibly the expectation is that deactivated checks in SU24 are known to the Code Inspector.
This is not possible because SCI does not know about a sy-tcode context and SU24 must have a sy-tcode context to be able to deactivate a check.
Anyway, I agree that we need a clearer question here.
Cheers,
Julius
09-05-2011 9:44 AM
Thanks Martin,Julius for the replies.
When I go to Goto->Management of->Tests, I find the below check as decitvated. Hence while checking the code, desired results are not obtained.
CL_CI_TEST_SYSUBRC Check of SY-SUBRC Handling
I tried to create a new variant for my security check by copying from the existing one. But this check is not prompted for copy while doing it.
Regards,
Anil
09-06-2011 12:49 AM
Hi,
I just logged to one system and it's active there. Can you activate it?
Cheers
09-06-2011 7:36 AM
The issue was due to missing object S_COV_ADM. I checked after adding that to my account.
I'm able to activate the checks.
Thanking all.
Regards,
Anil