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

regarding TADIR

Former Member
0 Likes
887

hi guys,

Could somebody tell me which table i can fetch the Z/Y Programs with respect to development class.

Suggestion please. Can i Use TADIR alone to fetch those things.

Thanks.

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
845

Yes U can use TADIR for the same ..

hi guys,

Could somebody tell me which table i can fetch the Z/Y Programs with respect to development class.

Suggestion please. Can i Use TADIR alone to fetch those things.

Thanks.

Kumar

6 REPLIES 6
Read only

Former Member
0 Likes
846

Yes U can use TADIR for the same ..

Read only

rajasekhar_matukumalli3
Active Participant
0 Likes
845

Hi,

You can use the table TADIR to get list of all the Z/Y programs based on a package. When u query this table, also pass the following info

PGMID = 'R3TR'

OBJECT = 'PROG'

Hope this answers your question.

Enjoy SAP

Rajasekhar

Read only

0 Likes
845

HI GUYS,

THANKS FOR SUGGESTION. I HAVE ONE MORE DOUBT.

TADIR AND TRDIR RECORD COUNTS SEEMS DIFFERENT WITH SAME CONDITION.

HOW TO FIND ALL CUSTOM PROGRAMS USING TRDIR TABLE AND TADIR TABLE WITH COUNT AS SAME.

PLS TELL ME AT WHAT CONDITION WILL THE COUNT WILL BE SAME FOR <b>GIVEN INPUT.

Z* Y* SAPLZ* SAPLY* SAPMZ* SAPMY* FOR PROGRAMS AND

FOR PRGID(LIMU,R3TR) AND OBJECT(PROGS,REPS ). WITH

DEV CLASS : Z* Y*</b>

Read only

0 Likes
845

Check for

PGMID = R3TR

OBJECT = PROG in table TADIR .. then it should give equal no. of entries in both

tables ...

Read only

0 Likes
845

hi Srinivas,

Here is the code.

when i give S_PROG as 'Z* Y* SAPLZ* SAPLY* SAPMZ* SAPMY*' its giving 1324 count using TRDIR table.

When i give D_CLASS as 'Z* and Y*' in TADIR table its giving count as 1317.

What is left here..

could you please advice.

Thanks.

<b>

IF D_CLASS IS INITIAL.

SELECT NAME

FROM TRDIR

INTO TABLE I_PROG

WHERE NAME IN S_PROG.

IF SY-SUBRC = 0.

ENDIF.

ELSE.

SELECT OBJ_NAME FROM TADIR

INTO TABLE I_PROG

WHERE DEVCLASS IN D_CLASS AND

PGMID = 'R3TR' AND

OBJECT = 'PROG'.

IF SY-SUBRC = 0.

ENDIF.</b>

Thanks.

Kumar

Read only

0 Likes
845

Some programs if deleted would be deleted from TADIR but not from TRDIR ..

Iam not sure ...