Skip to Content
avatar image
Former Member

How to find if a program really exists in the system?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 16, 2008 at 12: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 12:48 PM

    Yes, TRDIR will contain the entry if the program exists else no.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2008 at 12: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 08: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?

    Add comment
    10|10000 characters needed characters exceeded