2013 Jan 22 7:50 PM
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
2013 Jan 22 8:35 PM
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.
2013 Jan 22 8:13 PM
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.
2013 Jan 22 8:19 PM
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!
2013 Jan 22 8:26 PM
You are right it uses program RPR_ABAP_SOURCE_SCAN
It can be used to search for a string in F.M , Reports , Packages.
2013 Jan 22 8:35 PM
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.
2013 Jan 22 10:00 PM
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
2013 Jan 22 10:30 PM
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
2013 Jan 23 11:20 AM
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.