Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Programing standards Checklist Automation

Former Member
0 Likes
433

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!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
397

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

1 REPLY 1
Read only

Former Member
0 Likes
398

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