Application Development 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: 

Program to downlaod contents of the given Package

Former Member
0 Kudos

Hi all,

Is there any program/FM which upon giving any package name will download all the objects and contents of the object under that package, i.e., for example if a function module or a class is there under any package, then upon providing the package name(input) it will download the whole code for that FM as well as class.

thanks in advance.

regards,

neerup.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

U may use SAP Standard Program "REPTRAN" to download a program or a package.

Use below query to fetch programs from the entered Package

SELECT * FROM tadir into table itab

WHERE pgmid = 'R3TR'

AND object = 'PROG'

AND package = p_class.

In the program we can delete records from Tadir by looping ITAb,

but other program related tables will have this entry .

Hope this Helps.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

2 REPLIES 2

Former Member
0 Kudos

Hi

U may use SAP Standard Program "REPTRAN" to download a program or a package.

Use below query to fetch programs from the entered Package

SELECT * FROM tadir into table itab

WHERE pgmid = 'R3TR'

AND object = 'PROG'

AND package = p_class.

In the program we can delete records from Tadir by looping ITAb,

but other program related tables will have this entry .

Hope this Helps.

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

0 Kudos

Hi Sekhar,

Thanks for the reply,

In this case, it is returning only the details of the program. I want the details of all the objects present in the package, is it possible/ is there any program other than REPTRAN, which takes the name of the package and returns the details of all the objects present under that package.

Thanks and Regards,

Neerup.