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

Function module

Former Member
0 Likes
982

Hi Experts,

I need a function module that returns all the includes present in a function module..

please help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
922

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

                .

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
922

Try to call FM GET_INCLUDES passing the main program name of the function group (not the name of one function module)

Regards,

Raymond

Read only

0 Likes
922

May be it is little Simpler ... to find main program based on FM  then Use GET_INCLUDES.

Regard's

Smruti

Read only

Former Member
0 Likes
923

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

                .

Read only

0 Likes
922

Will you only get includes associated to function modules ?

Regards,

Raymond

Read only

former_member209120
Active Contributor
0 Likes
922

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

Read only

Former Member
0 Likes
922

Hi,

Use the FM 'GET_INCLUDES'. Pass the name of the main program and you will get all the includes related to it.