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

Components of a Program.

Former Member
0 Likes
855

Hi, At run time how can I get the list of all the components of a program Like:

Includes, Subroutines, Text Elements, Dictioinary Structures, Fields, function modules etc.

I need to download the text of all these components used in any program.

Regards,

Deepesh Jain

6 REPLIES 6
Read only

Former Member
0 Likes
751

Hi ,

You can try one thing . You can declare some variables like your runtime components. Store the values of runtime components in your variables and take those variable in your output.

Regards

Sourabh

Read only

0 Likes
751

Hi,

I have a list of programs during execution in a dev class. For each program entry out of that list, I want the components:

Ex) Dev. class contains these two programs:

Ytest1

Ytest2

Now what all elements this ytest1 have i.e. fields, function modules, includes, subroutines I need a list of them.

Regards,

Deepesh

Read only

Former Member
0 Likes
751

Hi,

At RUN TIME. the only way to see all theses components you will have to debug the program

It's the only way to see what you are looking for

Regards

Read only

Former Member
0 Likes
751

Hi,

Refer to the table SYST. It contains all the field names like sy-cprog for calling program etc.

Either debug the program and see these values or you can create program variables to store these values.

Regards,

Renjith Michael.

Read only

0 Likes
751

Hi,

I have a list of programs during execution in a dev class. For each program entry out of that list, I want the components:

Ex) Dev. class contains these two programs:

Ytest1

Ytest2

Now what all elements this ytest1 have i.e. fields, function modules, includes, subroutines I need a list of them.

Read only

ThomasZloch
Active Contributor
0 Likes
751

Essentially you want to download the object list that SE80 shows you in the left window? Maybe you can find out how SE80 splits a program into its components. I would assume it is using statement SCAN ABAP-SOURCE ... somewhere down below.

Please tell us once you found out!

Cheers

Thomas