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

Code Inspector - DDIC objects

Former Member
0 Likes
1,446

Hi All,

Is there any way in code inspector through which I could check the naming conventions for Tables, Data elements, Domains, Structures etc., according to project requirement( Not for FM, Reports Classes ).

Any help is highly appreciated.

Thanks & Regards,

Venkat

8 REPLIES 8
Read only

Former Member
0 Likes
1,247

In Code Inspector For your username you can create your own variant. Just check that option and select what all checks needs to be done for that variant.

Cheers,

Thomas.

Please mark points if helpful.

Read only

Former Member
0 Likes
1,247

Hi Thomas,

Thanks for reply.

Actually I know how to create a check variant, but I would appreciate if you could tell me how to create user specific variant for DDIC objects.

Regs,

Venkat

Read only

0 Likes
1,247

Venkat,

I checked the service.sap.com media library and found few documents, which may be helpful to you. Unfortunately I do not have a Code Inspector verion to check the variant creation as you mention. Check the documnets with your OSS id and let me know if you have questions.

https://websmp208.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000630780&;

Cheers,

Thomas.

Read only

Former Member
0 Likes
1,247

Hi,

You can use

SE30 - Performance analysis

ST05 - SQL Trace

SLIN - Extended Check for program(Subroutines,query,forms,datatypes,domain wise)

SCI - Code inspection

Regards,

Nandha

Read only

Former Member
0 Likes
1,247

Hi Nandha,

I don't want to analyse the performance and all. All I need is to implement & check the naming conventions for DDIC objects.

Regs,

Venkat

Read only

Former Member
0 Likes
1,247

Goto SCI transaction and define a check variant which will examine your code for errors. In this variant you can specify the naming convention for your Local Variables, Global Variables etc. In the same variant you can define the Performance Checks like Loop within a loop, nested selects, security checks, programming conventions etc. Make the variant global so that everybody has access to it.

2. Now you are ready to use this variant. Goto SCII --> Select Single --> Select an entry from the dropdown --> give the corresponding progam name/class name --> Give a variant name under Check Variant.

3. Execute.

4. It will show all the discrepancies in your code from where you can double click and goto the respective line of code and correct the error.

Note that you can also use a STANDARD VARIANT.

Read only

0 Likes
1,247

Hi Anandha

I have done exactly same what u post but whenever i m executing TCode SCII then i am getting error message "Invalid Category Class <Parent Category Class> in Check Variant"..

What type of error is this i m not getting.Pls tell me how to escalate this problem.

Waiting for your reply.

Regards

Vinod

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,065

I have published a custom Code Inspector Check which checks DDIC Object Naming Convention, at Github with MIT license. The information is in this answer: Solved: Please any custom ABAP code to check DDIC object n... - SAP Community.