08-05-2008 5:21 AM
Hi,
If we want a list of Z objects which table should we query, TADIR or TRDIR?
For example if I want a list of all
Reports
Include Programs
User Exits Implemented
BADI's Implemented
Function Modules
Function Groups
which table should I query and what parameters should I pass to the table?
Thanks in advance.
Mick
08-05-2008 5:45 AM
Hi Mick,
You can get these in table TADIR, depending on the Object Type
Reports ---> PROG
Function Groups ---> FUNC
Include Programs
Table TRDIR
Field SUBC ( Program type )
1 Executable program
I INCLUDE program
M Module Pool
F Function group
S Subroutine Pool
J Interface pool
K Class pool
T Type Pool
X XSLT Program
Function Modules ---> Table TFDIR
Customer Exits Implemented ---> Table MODSAP, MODACT
BADI's Implemented
Best regards,
raam
08-05-2008 5:25 AM
Hi,
TADIR is the table.
And yu need to use the fields PGMID and OBJECT in ur where condition of sql.
Revert back if any issues,
Regards,
Naveen
08-05-2008 5:26 AM
Mick,
There is already a zprogram available in the Code Gallery of SDN for this.
K.Kiran.
08-05-2008 5:40 AM
Thanks all for the prompt reply, points awarded.
I am a little confused. Which is the correct table, TADIR or TRDIR?
Sorry for asking this question, since I have never used it, what is the link to the code gallery.
Regards,
Mick
08-05-2008 5:43 AM
Mick,
TRDIR is a System Table view TRDIR.which contains all ABAP program related information.
but TADIR is Directory of Repository Objects means in this you can find all object which we can build from se80.like package, program, function group, includes all these things are maintain in TADIR.but only you need to fetch desired data by using all keys.
Amit.
08-05-2008 5:28 AM
Mick,
your query look like this:
TABLES:TRDIR.
data:i_trdir type TABLE OF TRDIR.
SELECT * from TRDIR into table i_TRDIR where SUBC = 'M'."only for module pool for executable you must use here type 1.
You can also use TADIR field PGMID(Program ID in Requests and Tasks) OBJECT(Object Type) etc.
Amit.
08-05-2008 5:45 AM
Hi Mick,
You can get these in table TADIR, depending on the Object Type
Reports ---> PROG
Function Groups ---> FUNC
Include Programs
Table TRDIR
Field SUBC ( Program type )
1 Executable program
I INCLUDE program
M Module Pool
F Function group
S Subroutine Pool
J Interface pool
K Class pool
T Type Pool
X XSLT Program
Function Modules ---> Table TFDIR
Customer Exits Implemented ---> Table MODSAP, MODACT
BADI's Implemented
Best regards,
raam
08-05-2008 5:59 AM
Thanks to all for your prompt response. Got it.
By the way, as mentioned in one of the earlier replies, there does exist a program to retrieve all Z objects based on development class in the code gallery.
The link to the code gallery is:
https://www.sdn.sap.com/irj/sdn/wiki
Here you can search for Z Objects and you will get the program.
Regards,
Mick