Application Development and Automation 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: 
Read only

Need Progms without Tcode from Dev Sys

Former Member
0 Likes
961

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
Read only

Former Member
0 Likes
920

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
Read only

GauthamV
Active Contributor
0 Likes
920

Welcome to SCN

Use combination of TADIR and TSTC tables.

Read only

Former Member
0 Likes
921

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

Read only

former_member209217
Active Contributor
0 Likes
920

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

Read only

Former Member
0 Likes
920

Thanks a lot for All...

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

Read only

0 Likes
920

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.

Read only

Former Member
0 Likes
920

Thanks

Gautham Vangaveti

Read only

0 Likes
920

Plz close the thread if your issue is resolved.

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

Read only

Former Member
0 Likes
920

Thank a lot for all again..