2015 Apr 27 1:23 PM
Hello,
I am creating a report to find all the custom objects used in a report.
So I make use of the FM REPOSITORY_ENVIRONMENT_ALL like this:
DATA: output_list TYPE TABLE OF senvi.
CALL FUNCTION 'REPOSITORY_ENVIRONMENT_ALL'
EXPORTING
obj_type = 'PROG'
object_name = 'PROG_NAME'
deep = 6
TABLES
environment_tab = output_list.
DELETE output_list WHERE NOT object CP 'Z*' AND NOT object CP 'Y*'.
But, I'm getting just so many few objects whereas I have many in my program.
So I want to know if there is something wrong with my use of the function, or should I use another FM?
Please help me solve this problem.
Thanks in advance
2015 Apr 27 1:48 PM
Hi Occoro,
I just checked this FM and it works fine for me.
But it only shows created objects, not data declarations in program.
Regards,
Frisoni
2015 Apr 27 2:06 PM
Hi Guilherme,
In this case, is there a FM to find all objects used in aprogram (not only created objects) ?
Thanks in advance
2015 Apr 27 2:47 PM
Not sure it is the best option, but you can use LOAD REPORT statement.
Take a look at program RSLOAD00.
Regards,
Frisoni