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

Classes within a package

shreevathsa_s
Product and Topic Expert
Product and Topic Expert
0 Likes
671

Is it possible to list the classes within a package programmatically?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
650

Use table TADIR. The field OBJ_NAME will have the object name (class name) and the field DEVCLASS will hold the package name.

3 REPLIES 3
Read only

Former Member
0 Likes
651

Use table TADIR. The field OBJ_NAME will have the object name (class name) and the field DEVCLASS will hold the package name.

Read only

shreevathsa_s
Product and Topic Expert
Product and Topic Expert
0 Likes
650

Thanks Manoj

Read only

Former Member
0 Likes
650

Try something like this:


  data:
    classes type table of tadir.

  select *
    into corresponding fields of table classes
    from tadir
   where devclass eq 'SOMEDEVCLASS' " <<< Specify devclass/package here
     and pgmid    eq 'R3TR'
     and object   eq 'CLAS'.

(classes-obj_name will contain the class name.)

'Hope this helps.