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

Configure SCI

antony_paul2
Active Participant
0 Likes
1,057

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
888

Hi Antony,

Yes, it is.

You need to create a Variant and make your own setting in the check Programming Conventions -> Naming Conventions.

I've just written a blog about how to use code inspector if you need to know the basics.

Regards,

Nick

7 REPLIES 7
Read only

Former Member
0 Likes
889

Hi Antony,

Yes, it is.

You need to create a Variant and make your own setting in the check Programming Conventions -> Naming Conventions.

I've just written a blog about how to use code inspector if you need to know the basics.

Regards,

Nick

Read only

0 Likes
888

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

Read only

0 Likes
888

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

Read only

0 Likes
888

Thanks Nick

Read only

0 Likes
888

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

Read only

0 Likes
888

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.

Read only

0 Likes
888

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