‎2015 Apr 29 12:01 PM
Hello,
Is there a way to find all objects (FM, tables, data elements, domains, structures, ...) used in an abap program or by an abap object generally ?
For example a table used in a program and itself needs a data element and the data element needs a domain ...
I want to be able to find all those objects needed by the report.
I found many ways, for example to find DDIC objects used in a report, or scan the source code ...
But I want a something to achieve the whole requirement (finding all objects needed by another object)
Thanks in advance
‎2015 Apr 29 12:06 PM
Hi Dear,
Open your program on OBJECT navigator in SE80 Transaction.
I hope it will help you.
regards,
‎2015 Apr 29 12:12 PM
‎2015 Apr 29 3:30 PM
Try tables:
CROSS Index of Modules Used Externally
ENHCROSS Cross Reference for ENH Object
WBCROSSGT Index for Global Types - Where-Used List
WBCROSSI Index for Includes - Where-Used List
Thanks, Juwin
‎2015 Apr 29 4:03 PM
Hi,
What is your functional requirement?
The option you already mentioned are the only way to be fully sure that you don't miss anything, especially things like dynamically calling a fm which is used a lot in bapis can only be found with a source code scan, or by finding it out at runtime.
If the requirement is to find out if there are any reports which uses a specific object you can use report RPR_ABAP_SOURCE_SCAN to scan your z* packages.
Kind regards, Rob Dielemans
‎2015 Apr 29 4:42 PM
Hi,
My requirement is to find all objects used in some object. For example find all objects used in a table (domains, data elements, ...)
‎2015 Apr 29 5:42 PM
You need a recursive environment analysis.
Try searching for previous SCN discussions involving function module REPOSITORY_ENVIRONMENT_ALL, and remember to set parameter DEEP to a low value between 1 and 3, for a start...
The navigation indexes (tables mentioned by Juwin, and more) must be up-to-date for this to work correctly.
Thomas
‎2015 Apr 29 4:03 PM
If you will search there are various cross-referencing tools available.
‎2015 Apr 29 4:40 PM
‎2015 Apr 29 5:45 PM
Hi Occoro,
Check the program in this document - I think it's exactly what you're looking for. I've used it
for that purpose and found it works very well.
http://scn.sap.com/docs/DOC-56483
Jim
‎2015 Apr 29 6:08 PM
Hi Jim,
Yes, I already tried it, but it's not always working well.
For example, if you have a report with a screen and in the PAI for example you use a calass or a FM, then this tool is not able to detect it !