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

reg TRDIR

Former Member
0 Likes
380

Hi,

i had a requirement to get all the Z objects(custom), for this i am getting from TRDIR table, but i am getting all the Z objects, but i dont want the temporary objects to get, is there any methods all the Z OBJECTS other than the temporary objects.

Regards.

venkat.

2 REPLIES 2
Read only

Former Member
0 Likes
344

You can try extracting the details from table TADIR to get the list of Non-Local Objects. Exclude objects that have DEVCLASS = '$TMP'. Below code can give you some idea:

TYPES: BEGIN OF t_prog,
         obj_name TYPE sobj_name,
       END OF t_prog.
DATA: i_prog TYPE STANDARD TABLE OF t_prog.

SELECT obj_name  INTO TABLE i_prog
  FROM tadir
  WHERE pgmid = 'R3TR'
  AND   object = 'PROG'
  AND   obj_name LIKE 'Z%'
  AND   devclass NE '$TMP'.

BREAK-POINT.

Edited by: Eswar Rao Boddeti on May 27, 2008 2:06 PM

Read only

0 Likes
344

HI ,

use table REPOSRC and then filter the records based on TADIR dev class NE '$TMP'.

Rajesh.D