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

Get package hierarchies and objects programitcally

Former Member
0 Likes
2,181

Hi All,

Is there any Standard FM or class method to get package hierarchies and concerned objects belongs that packages.

For instance If I give Super package then I should get all sub packages and objects under that packages.

I tried to find out but I could not. If there are no FM or methods available then how to get it programmatically?

Regards,

Rao.

6 REPLIES 6
Read only

ipravir
Active Contributor
0 Likes
1,692

Hi RAO,

You can query on TADIR table based on PACKAGE name.

Pass package name in DEVCLASS Field.

You will get all Object Information which belongs to package.

Note: Pass the Object type in OBJECT field. like PROG (Program). --F4 help is available.

Regards,

Praveer.

Read only

Former Member
0 Likes
1,692

Hi Praveen,

I will get only objects that belongs to respected package in TADIR but I need to display in hierarchy.

For instance If Super package A have 3 sub packages called B,C,D. I want to download all these as a hierarchy.

Read only

ipravir
Active Contributor
0 Likes
1,692

Hi RAO,

Pass A into DEVCLASS field, and OBJECT field condition value would be DEVC, you will get all respective package, which belongs to A package.

Read only

Former Member
0 Likes
1,692

Hi Rao,

Try these tables.

TADIR                               Directory of Repository Objects

TADIR_MOD                      Newly Created Repository Objects

TADIR_TMP                       Newly Created Repository Objects

Try these links

http://scn.sap.com/community/abap/blog/2011/12/10/abap-package-concept-part-2-package-interfaces-of-...

Thanks

Shony

Read only

Former Member
0 Likes
1,692

Nothing useful.. Closing this..

Read only

0 Likes
1,692

Hi Rao,

Did you find any solution to your question yet? I am also trying to achieve the same thing.

Thanks,

Prakash