Application Development and Automation 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: 
Read only

FM not working properly

former_member355261
Participant
0 Likes
813

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

3 REPLIES 3
Read only

guilherme_frisoni
Contributor
0 Likes
693

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

Read only

0 Likes
693

Hi Guilherme,

In this case, is there a FM to find all objects used in aprogram (not only created objects) ?

Thanks in advance

Read only

0 Likes
693

Not sure it is the best option, but you can use LOAD REPORT statement.

Take a look at program RSLOAD00.

Regards,

Frisoni