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

Environmental Analysis SE38

Former Member
0 Likes
2,157

Hi Gurus,

When we goto SE38--> enter any program name --> Utilities --> environment analysis

We get a list where all the list of Function grps, Structures,Data elements,views, tables etc etc used in that program . Can you please provide any standard Function module or Method which will give me those details.

I want to create an utility report which will accept Program name on selection screen and display all the components on the program as in Environment analysis in SE38.

Thanks,

Vivekanand

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,573

Hello,

Use the following FM to get your requirement.

RS_TOOL_ACCESS

CALL FUNCTION 'RS_TOOL_ACCESS'

EXPORTING

operation = 'ENVIRONMENT'

object_name = rs38m-programm "Program name enteres in se38>

object_type = 'PROG'

wb_manager = wb_pgeditor_initial_screen->mng

IMPORTING

new_name = rs38m-programm

EXCEPTIONS

invalid_object_type = 1

not_executed = 2

OTHERS = 3.

IF sy-subrc NE 0 AND sy-msgty NE space.

IF sy-subrc = 1 OR sy-subrc = 2.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

Thanks.

Ramya.

5 REPLIES 5
Read only

Former Member
0 Likes
1,573

Hi Vivek,

Are you checking for the SE80 Functionality, where you give the program name and it gives the fieldnames / tables / FM's /Includes associated with the program ?

Read only

0 Likes
1,573

Hi Raj,

Ya its similar. only difference is SE80 gives only few info in the tree structure but the Environmental analysis gives move info like data element views etc etc...

Do you have any FM for SE 80? If yes please share at least it will solve some part of the requirement ..

Thx

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,573

Hi,

Why not debug the process using /H, it runs through some function modules and not a single one.

Read only

Former Member
0 Likes
1,574

Hello,

Use the following FM to get your requirement.

RS_TOOL_ACCESS

CALL FUNCTION 'RS_TOOL_ACCESS'

EXPORTING

operation = 'ENVIRONMENT'

object_name = rs38m-programm "Program name enteres in se38>

object_type = 'PROG'

wb_manager = wb_pgeditor_initial_screen->mng

IMPORTING

new_name = rs38m-programm

EXCEPTIONS

invalid_object_type = 1

not_executed = 2

OTHERS = 3.

IF sy-subrc NE 0 AND sy-msgty NE space.

IF sy-subrc = 1 OR sy-subrc = 2.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

Thanks.

Ramya.

Read only

0 Likes
1,573

Thx Ramya.

It works...

Viv