10-16-2008 1:42 PM
Hi,
I want to find the existing programs in the system by an abap program. Which table should I use? TADIR or TRDIR? I have seen that there can be cases like a program doesn't exist in the system (se38 says so) but there is an entry in TADIR table.
What about trdir? Should I use TRDIR?
Thanks in advance..
MERAL
10-16-2008 1:48 PM
mostly all the programs will be saved in a package is it... so along with the program name (Obj name) check for devclass as well...in TADIR
or
most programs are assigned with a transaction code... check TSTC table
10-16-2008 1:48 PM
10-16-2008 1:49 PM
TADIR is a table with all Repository Object
TRDIR is a table with all Programs
Using TADIR you can see all the programs as well. In SE16N you have to fill Program ID as R3TR and for Object Type use PROG
10-17-2008 9:25 AM
Thanks for your replies but my main problem is :
" I have seen that there can be cases like a program doesn't exist in the system (se38 says so) but there is an entry in TADIR table." .
In order to find an abap program really exists in the system, I plan to look at both tables, tadir and trdir, and if I find the program in both tables, I will decide that it really exists.
Is it a right approach? What do you think?
11-18-2020 5:49 PM
Maybe you can check the DELFLAG field also in table TADIR.
SELECT * FROM TADIR INTO TABLE DATA(lt_tadir) WHERE DELFLAG EQ ABAP_TRUE.
11-18-2020 6:01 PM