‎2010 Mar 03 1:12 PM
Hi all,
I was asked to configure SCI so that it detects when a Z program is not following Project specific Naming conventions.
Like internal table should start with i_ , work area as w_ ,etc..
Is it possible to do this in SCI ?
Rgds
Antony
‎2010 Mar 03 1:15 PM
‎2010 Mar 03 1:15 PM
‎2010 Mar 03 1:30 PM
Thanks Nick,
I have gone through your blog. It's very informative.
But I didnt find any place to specify the naming standards followed in the project.
Let say I have program : Z_XX_XXXXXXXX, in it I have declared an internal table as ITAB.
I should get a error/warning if I run SCI for this program, since as per Project Naming standards, internal table name should have started with I_<some name> .
My query is where will I configure this in the transaction SCI?
Rgds,
Antony
‎2010 Mar 03 1:36 PM
Hi Antony,
What you will need to do is first create your own Variant, and then activate the check List of checks -> Programming Conventions -> Naming Conventions. You configure the check to include your required values by clicking the green square/yellow arrow icon, this opens a large pop-up window where you can specify the prefix for each data type.
In order to run this check against your program you'll need to run an inspection either in SCI or SCII, if you call SCI from within the editor it will use the variant DEFAULT, rather than letting you specify your own.
Of course, if you want the check direct from the editor you could just modify the DEFAULT variant, but it is SAP delivered, so I couldn't possibly recommend that......
Regards,
Nick
‎2010 Mar 03 1:38 PM
‎2010 Mar 18 7:12 AM
Hi Nick,
Even i want to configure SCI according to naming conventions of project.
I have tried the thing you suggested.
The problem is : there is option of 'DATA' but no different options for 'Internal Table' and 'WorkArea'.
Now how to configure this that Internal Table should start with ' IT_* '
and work area with ' WA_* '
Regards,
Megha
‎2012 Jan 18 12:43 AM
Hi Megha.
"Now how to configure this that Internal Table should start with ' IT_* '
and work area with ' WA_* "
For both of these you will have to create your own check variant -
Ggo to tcode SCI. In the "Check Variant" section enter a name and hit 'Create'. In the given tree click on 'Programming Conventions' -> Extend naming conventions for programs.
You can enter your 'custom conventions' for both Structures and Internal tables under the 'Prefix' tab.
‎2010 May 31 9:52 AM
Hello everybody! How I can configure the message Type (Error/Warning/Information) for specified message code?
Edited by: Artem Shtennikov on May 31, 2010 11:25 AM