‎2009 Mar 18 7:04 AM
Hi ,
I have a requirement like i need to extract all dependent Z* objects used in a report.Any ideas are welcome.
Thnaks
--Pradeep
‎2009 Mar 20 5:54 PM
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
‎2009 Mar 20 8:00 PM
‎2009 Mar 20 10:08 PM
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.