11-20-2008 6:38 AM
Hi all,
can you people help me with this issue.I want to the names of all the Function Module used in the program along with their parameters into an internal table.It will be helpful for your suggestions.
Kind Regards,
Edited by: Prasenjit Sengupta on Nov 20, 2008 7:39 AM
11-20-2008 6:42 AM
11-20-2008 6:43 AM
hi,
Search for call function statement in the programs,you can get all function modules used.
11-20-2008 6:50 AM
Hi...can you help me with a sample code......what will be the internal table strcture like that....
Kind Regards
11-20-2008 7:08 AM
Take structure of internal table as
TYPES : BEGIN OF TY_FM,
FUNCNAME TYPE RS38L_FNAM, "Name of Function Module
PARAMETER TYPE RS38L_PAR_, "Parameter name
PARAMTYPE TYPE RS38L_KIND, " Parameter type
R3STATE TYPE R3STATE, "ABAP: Program Status (Active, Saved, Transported...)
STRUCTURE TYPE RS38L_TYP, "Associated Type of an Interface Parameter
DEFAULTVAL TYPE RS38L_DEFO,"Default value for import parameter
REFERENCE TYPE RS38L_REFE, "Call by reference
OPTIONAL TYPE RS38L_OPTI, "Optional parameters
TYPE TYPE RS38L_TYPE, "Reference Structure is an ABAP/4 Type
END OF TY_FM.
DATA : IT_FM TYPE TABLE OF TY_FM WITH HEADER LINE.
11-20-2008 7:15 AM
Hi...
thanx for the structure.....but how to fill it up by searching the whole program for all the Function Modules......
Kind Regards
11-20-2008 6:58 AM
Hi,
Check the Function Module RFC_FUNCTION_SEARCH and the structure RFCFUNC, then u can understand the itab declaration.
regards
Mahes
11-20-2008 7:14 AM
Hi,
You can find it in SE80 transaction.
In SE80 select program in application hierarchy and in below box give your program name.
and below you will all get the datatypes, types, fields, subroutines, events etc.
Thanks & Regards,
Sudheer.