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: 

FM REPOSITORY_ENVIRONMENT_ALL

former_member355261
Participant
0 Kudos

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.

3 REPLIES 3

Rodrigo-Giner
Active Contributor
0 Kudos

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

0 Kudos

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 ?

0 Kudos

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