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

Package Hierarchy

Former Member
0 Likes
2,567

Hi All,

How to get Package Hierarchy programmatically in ABAP that output should include parent and child packages relation and corresponding objects.

Is there any standard FM or class methods available?

Regards,

BD

Hi All,

How to get Package Hierarchy programmatically in ABAP that output should include parent and child packages relation and corresponding objects.

Is there any standard FM or class methods available?

Regards,

BD

3 REPLIES 3
Read only

ipravir
Active Contributor
0 Likes
1,860

Hi Rao,

You can do query on TADIR table.

Logic could be.

Pass current package into OBJ_NAME = 'PACKAGE_NAME"

                                            OBJECT  ='DEVC" (Package)

                                            PGMID  = "R3TR".

Take DEVCLASS field information.

Again do query in TADIR, condition would be

OBJECT  ='DEVC" (Package)

PGMID  = "R3TR"

DEVCLASS  = dev_class value from above query.

You can try with above logic to get sub-package information.

Regards,

Praveer

Read only

Former Member
0 Likes
1,860

Hi Praveer,

For instance if a package having 10 subpackages in this for each package may have sub packages. I cannot write logic as you said. It should happen dynamically irrespective of no.of packages.

Rao.

Read only

ipravir
Active Contributor
0 Likes
1,860

Hi Rao,

Bit change in existing logic.

As you requires Package Hierarchy (last tab of Package).

Fetch DEVCLASS information from TADIR table, pass the same in TDEVC table.

Fetch PARENTCL field information, and pass only PARENTCL as condition in TDEVC table to get all DEVCLASS information.


Again pass in TADIR table with

OBJECT  ='DEVC" (Package)

PGMID  = "R3TR" to get all package information.


For example: VA package.

From TADIR Table

From TDEVC table.

again in TDEVC table.

Pass all DEVCLASS information to TADIR table with

OBJECT  ='DEVC" (Package)

                                            PGMID  = "R3TR".

Hope you are clear with logic.

Regards,

Praveer.,