‎2008 Feb 05 10:13 AM
hi,
in our project, we have a checklist to follow regarding programing standards, like a read should always be followed by binary search (after sorting of course), nested loops should be avoided, etc. (mostly it contains the tips from SE30 screens)
so, a programmer is supposed to follow that checklist, and the senior person is supposed to review if he has actually followed the rules. (not syntaxes, the things in checklist)...
but many a times due to deadlines programmers ignore the guidelines (and fill incorrect checklist), as seniors are busy with their own work, they trust programmer / ignore mistakes / themselves miss the defects in program. (not the syntax errors, guidelines)
as a result, program goes to production with the defects. the program runs fine in developments as there is very less data in development and testing, but there are performance issues in production.
so, i m thinking of writing a code to check if the standards are followed.. so, this code needs to check the program beyond syntaxes.. can you guide me on how i should write the code?
the things i have thought so far:-
1. Try to find any inbuilt SAP functions i can use for the same purpose..
(but i havent find any yet, if you could suggest some.....)
2. consider current program as a file (or save it as a local file ) and apply the conditions in checklist considering it as a text file..
(it is going to be a tedious job as i will have to deal with all string handling)
please guide me and provide any source code if already available!
‎2008 Jun 02 9:14 AM
nearly all generally possible checks are implemented in the Code Inspector (Transaction SCI)
some of your check don't make sense,
+ avoid nested loops .... how?
The code inspector is much more up-to-date than the tips and tricks of the SE30.
Siegfried
‎2008 Jun 01 5:10 PM
i guess, i will have to work on it on myself.
thanks for looking anyways!
contact me if you also want to implement same kind of functionality at ur end!
‎2008 Jun 02 9:14 AM
nearly all generally possible checks are implemented in the Code Inspector (Transaction SCI)
some of your check don't make sense,
+ avoid nested loops .... how?
The code inspector is much more up-to-date than the tips and tricks of the SE30.
Siegfried
‎2008 Jun 06 6:43 AM
hi,
yes, you are right, but i also could not find much of information on souce code inspector on help.sap.com..
all i could find was
http://help.sap.com/saphelp_erp2005/helpdata/en/8d/4b64488cce3945ba42b059319d62dc/frameset.htm
can you please provide more details about the tool? or any links to full guide on how to use this tool?
in my project, i have seen many reports taking too much time because of nested loops.. an alternative to that is parallel cursor method.
thanks for ur help.
‎2008 Jun 02 11:33 AM
hai,
we also have same problem ,so i do this manually on regular basis ,if you have other solution do reply .
it will be geat.
thanks
jase
‎2008 Jun 06 6:44 AM
seems like people are interested in this topic, hence marking it as unanswered.
‎2008 Jun 06 8:17 AM
the code inspector is available only in new basis releases, and the best information is the online documentation in the SAP system.
And there two blogs by somebody who knows the SCI very well:
Code Inspectoru2019s Performance Checks (I)
/people/randolf.eilenberger/blog/2007/03/12/code-inspector146s-performance-checks-i
Code Inspectoru2019s Performance Checks (II)
/people/randolf.eilenberger/blog/2007/07/02/code-inspector146s-performance-checks-ii
and your 'avoid nested loops' does not really make sense, you need nested loops, and the are fine if you use sorted tables.
Siegfried
‎2008 Jun 13 10:23 PM
hi,
i read both the blogs, but still it doesnt mention detailed steps i need to follow in order to utilize this tool to fullest extent.
also, can i know about memory inspector as well?
in addition to that, when i ran SCI, it was giving me the suggestions with some message number associated with it.. is it possible to view all the messages at once before executing it.. just for learning?