Application Development 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: 

List of Z objects

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

kiran_k8
Active Contributor
0 Kudos

Mick,

There is already a zprogram available in the Code Gallery of SDN for this.

K.Kiran.

Former Member
0 Kudos

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

0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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