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: 

Need Progms without Tcode from Dev Sys

Former Member
0 Kudos

Hi,

I need to create program that will check if any Z program (executable) does not have a T-code. and need to display info like Program name. Package and description of the same.

Thanks a lot

In Advance

Santosh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You need to write a program that checks table TSTC, as this contains the definition of the transaction codes. A table like REPOSRC will give you alist of all the Z programs.

Regards,

Nick

8 REPLIES 8

GauthamV
Active Contributor
0 Kudos

Welcome to SCN

Use combination of TADIR and TSTC tables.

Former Member
0 Kudos

Hi,

You need to write a program that checks table TSTC, as this contains the definition of the transaction codes. A table like REPOSRC will give you alist of all the Z programs.

Regards,

Nick

former_member209217
Active Contributor
0 Kudos

Hi,

For programs TADIR table

For Tcodes TSTC table

For Short Description TRDIRT Table

For Packages TDEVC table

You can get package name from TADIR table -DEVCLASS field

Regards,

Lakshman

Edited by: Lakshman N on Oct 7, 2009 10:42 AM

Former Member
0 Kudos

Thanks a lot for All...

please let me know how to wirte the select Queiy for the same

0 Kudos

You can join those 2 tables based on program name.



SELECT-OPTIONS: s_devc FOR tadir-devclass.
SELECT-OPTIONS: program FOR tadir-obj_name.

  SELECT   obj_name
           devclass
           FROM tadir
           INTO CORRESPONDING FIELDS OF
           TABLE itab
           WHERE pgmid = 'R3TR'
           AND object = 'PROG'
           AND devclass IN s_devc
           AND obj_name IN program.
  IF itab[] IS NOT INITIAL.

  SELECT   tcode
             pgmna
             FROM tstc
             INTO CORRESPONDING FIELDS OF
             TABLE itab2
             FOR ALL ENTRIES
             IN itab
             WHERE pgmna = itab-obj_name.
 Endif.

Former Member
0 Kudos

Thanks

Gautham Vangaveti

0 Kudos

Plz close the thread if your issue is resolved.

P.S : You can close the thread by checking the radiobutton mark as answered.

Former Member
0 Kudos

Thank a lot for all again..