04-25-2015 10:30 PM
Hello,
I'm trying to create a simple report to find all objects used in a program (or any other kind of object).
So, I'm using the FM REPOSITORY_ENVIRONMENT_ALL like this:
PARAMETERS:p_obj TYPE tadir-obj_name.
DATA: environment_selection TYPE envi_types,
output_list TYPE TABLE OF senvi.
CALL FUNCTION 'REPOSITORY_ENVIRONMENT_ALL'
EXPORTING
obj_type = 'PROG'
environment_types = environment_selection
object_name = p_obj
TABLES
environment_tab = output_list.
But the problem is that I get a dump when executing the code (limit time exceeded ...)
Please help me solve this problem.
04-26-2015 1:14 AM
Hi Occoro,
Run it in background instead of runtime, that dump is because the time limit has exceeded, it takes to long and the limit is reached.
If you run it in background you'll not receive this dump.
Regards
04-26-2015 10:52 AM
Hi,
Now I'm getting a dump with the error: MEMORY_NO_MORE_PAGING
I think I have to use the FM differently in order to get the results quickly.
So, any ideas ?
04-26-2015 2:10 PM
rlly a big program
Check this wiki
http://wiki.scn.sap.com/wiki/display/ABAP/List+the+environment+variables+used+in+a+program
It list all variables in a program with that functions.
I think you should filter the objects via parameters environment_types to only your relevant types of objects or use also the deep parameter, by default is 0 try passing 1 o 2.
Regards