Application Development 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: 

Code inspector for Customer objects

former_member384574
Active Participant
0 Kudos
249

Hi experts,

In my project has been told that we should use a tool in where we can look for all customer objects a program has. I've a little knowledge about Code Inspector but I think this could help us if we customize a variant that checks this, please, can anyone confirm me this? And if we could use this, can anybody help me on how to customize this new variant?

Has SAP another tool for checking customer objects in a report?

Thanks in advance!!!

Rebeca

1 ACCEPTED SOLUTION

Former Member
0 Kudos
122

I just checked on one of the default variants we use here via SCI

There is a option "Search Functions" there you can give your search string.

Check the screen print.

Hope it helps.

7 REPLIES 7

Former Member
0 Kudos
122

Code inspector checks can be modified by SCI.

But i am not sure what you mean by customer objects? Are you saying you want to check if the report uses as Z* function modules or custom tables? You can use CODE_SCANNER t-code for this purpose

Hope it helps.

0 Kudos
122

Hello Bhnau,

Thanks in advance for your help, yes I mean what you say, is necessary to look for the Z* objects, functions, tables... that are in each report. I'm not sure if it could be possible to do with CODE Inspector transaction (SCI). The transaction you told me uses the report, RPR_ABAP_SOURCE_SCAN? I've to check this program, but I thought it was better to use code inspector....so this tool will help us?

Thanks in advance for all your help!

0 Kudos
122

You are right it uses program RPR_ABAP_SOURCE_SCAN

It can be used to search for a string in F.M , Reports , Packages.

Former Member
0 Kudos
123

I just checked on one of the default variants we use here via SCI

There is a option "Search Functions" there you can give your search string.

Check the screen print.

Hope it helps.

0 Kudos
122

Thanks a lot for all your help!! Tomorrow in the office I will check the code inspector and I told you what we are going to use.

Thanks a lot Bhaun!!!!

Have a nice night!

Rebeca

0 Kudos
122

This might not be the right approach for finding any customer objects used in the code, since you are not searching for specific technical names in this case.

Rather look at the "environment analysis" (or similar) in the SE38 menus, which shows all objects directly used in a program (at least if the navigation index tables are up to date), so you can zoom in on the bespoke objects quickly.

If you want to search several levels deep (e.g. program calls function module, which calls another function module, which reads a DB table, which uses data elements, which use domains, which have check tables...), you can try coding this yourself using the REPOSITORY_ENVIRONMENT_ALL function module and filtering on only objects in software component "HOME" (otherwise the resulting list would explode after a few levels).


Thomas

0 Kudos
122

Hi Thomas,

That's a good function, I've sent it to my project responsible and we are taking this into account, we think we will probably use it.


Thanks a lot, I have no idea that this function exists.

Bhanu, thanks also for all your help.

Rebeca.