10-07-2009 9:28 AM
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.
10-07-2009 9:34 AM
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
10-07-2009 9:32 AM
10-07-2009 9:34 AM
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
10-07-2009 9:41 AM
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
10-07-2009 9:44 AM
Thanks a lot for All...
please let me know how to wirte the select Queiy for the same
10-07-2009 9:49 AM
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.
10-07-2009 9:52 AM
10-07-2009 9:57 AM
Plz close the thread if your issue is resolved.
P.S : You can close the thread by checking the radiobutton mark as answered.
10-08-2009 5:30 AM