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

all dependent objects

pradeep_nellore
Participant
0 Likes
774

Hi ,

I have a requirement like i need to extract all dependent Z* objects used in a report.Any ideas are welcome.

Thnaks

--Pradeep

3 REPLIES 3
Read only

Former Member
0 Likes
638

Hi Praddep,

use FM REPOSITORY_ENVIRONMENT_ALL with OBJ_TYPE= PROG and OBJECT_NAME = <your_report>.

Be carefull with Parameter Deep (normaly 1-3).

In Table ENVIRONMENT_TAB you will get all dependent objects.

Regards

Markus

Read only

Former Member
0 Likes
638

use this fm and then filter by zobjects

GET_GLOBAL_SYMBOLS

Read only

Former Member
0 Likes
638

write a little program like this:

data: begin of itab occurs 0,

line(100) type c,

end of itab.

types: begin of ty_itab2,

object(50) type c,

end of ty_itab2.

data: gt_itab2 like table of ty_itab2.

data: gs_itab2 like line of gt_itab2.

on the selection screen

program name ( use tadir table)

after that.

read prog into itab<<herer itab has the program init.

loop at itab.

read table itab with key line+0(1) = 'Z'.

if sy-subrc = 0.

gs_itab2-object = itab-line.

append gs_itab2.

endif.

endloop.