Skip to Content
author's profile photo Former Member
Former Member

Programing standards Checklist Automation

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 31, 2008 at 02:57 PM

    you can use the abap commando READ REPORT to read a source code in an internal table.

    you can also use program rpr_abap_source_scan to scan programs for certain bad source code , like endselect.

    It is better to simply put more effort in trying to maintain standards set up by the company and also to "punish" (like fireing) any developer who is too lazy to do it.

    In most companies development is done by external parties a way of trying to maintain quality it to give an internal employee the task of accepting custom ABAP in production. He/she can then use the checklists to see if the qualitystandards are met and if they are not met he/she must have the power to reject the custom abap.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.