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 with 'SELECT * FROM'

Former Member
0 Likes
927

Hello all,

I want to tell my code inspector, that it shall find

Select * from.

I put it in the ABAP STATEMENT PATTERNS but now the code inspector finds all selects for it interpretates * as wildcard.

What can I do ?

Please help

Simone

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
767

If your intention is to only find those statements in the code you can also use report RPR_ABAP_SOURCE_SCAN and give "Select * from" as a search string and the package or program name.

5 REPLIES 5
Read only

Former Member
0 Likes
768

If your intention is to only find those statements in the code you can also use report RPR_ABAP_SOURCE_SCAN and give "Select * from" as a search string and the package or program name.

Read only

Former Member
0 Likes
767

Try using single colon before and after to suppress the astrict.

Reward if helpful

Rama C

Read only

ThomasZloch
Active Contributor
0 Likes
767

déjà vu...

Read only

Former Member
0 Likes
767

as you ask this question in the performance forum, I would also like to know why you want to see all 'select *'.

If you want to solve any performance problems then I should say, that it will not help.

Select ' are no real performance issue. Field lists are nice to have, but difference is only considerable, if you reduce the width of the table dramatically, i.e.

it is enough if you check the very width tables.

And please to not introduce new select statements which deviate from others just in the definition of the field list.

The real performance issues are the indexes, or better the selects which have no proper index support.

Siegfried

Read only

Former Member
0 Likes
767

Hello,

thanks for all your help.

´For Code Review I develop tools to automate the formal code review. Thanks to your ideas I use a combination of the report and the code inspector. For some cases I created a little report which deals with regular expressions. So now I can do the formal code review in short time and concentrate on better structures and all that other stuff.

Ciaoi

Simone