‎2010 Jul 29 2:29 PM
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
‎2010 Jul 29 5:33 PM
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.
‎2010 Jul 29 3:41 PM
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 ?
‎2010 Jul 29 3:44 PM
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
‎2010 Jul 29 5:24 PM
Hi,
Why not debug the process using /H, it runs through some function modules and not a single one.
‎2010 Jul 29 5:33 PM
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.
‎2010 Jul 30 6:55 AM