‎2013 Sep 12 2:00 PM
Hi Experts,
I need a function module that returns all the includes present in a function module..
please help
‎2013 Sep 13 4:31 AM
Hi Jay,
Use this.. 'RS_FUNCTION_POOL_CONTENTS'
Just pass the Function group name (lv_poolname) & u will get the FM name with includes in an internal table t_func_tab.
data : lv_poolname TYPE uname,
t_func_tab TYPE STANDARD TABLE OF rs38l_incl.
CALL FUNCTION 'RS_FUNCTION_POOL_CONTENTS'
EXPORTING
function_pool = lv_poolname
TABLES
functab = t_func_tab
.
‎2013 Sep 12 7:29 PM
‎2013 Sep 13 5:39 AM
May be it is little Simpler ... to find main program based on FM then Use GET_INCLUDES.
Regard's
Smruti
‎2013 Sep 13 4:31 AM
Hi Jay,
Use this.. 'RS_FUNCTION_POOL_CONTENTS'
Just pass the Function group name (lv_poolname) & u will get the FM name with includes in an internal table t_func_tab.
data : lv_poolname TYPE uname,
t_func_tab TYPE STANDARD TABLE OF rs38l_incl.
CALL FUNCTION 'RS_FUNCTION_POOL_CONTENTS'
EXPORTING
function_pool = lv_poolname
TABLES
functab = t_func_tab
.
‎2013 Nov 19 12:54 PM
‎2013 Sep 13 4:59 AM
Hi Jay dev,
Simple procedure
In SE37 us can search for your function module like this
click F4 you will get list of function modules related to include
Which one relevant for you you can use that Function Module.
For example
GET_INCLUDES
SWU_GET_INCLUDE_NAMES
Regards,
Ramesh.T
‎2013 Sep 13 5:13 AM
Hi,
Use the FM 'GET_INCLUDES'. Pass the name of the main program and you will get all the includes related to it.