Application Development 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: 

How to read include names of modules in a function group

Former Member
0 Kudos

Dear All,

I'd like to read programatically the include names of all function modules within one function group, with given function group's name.

Does anybody know a module or class providing this functionality?

Best regards

Wolfgang

Message was edited by: Ralf Wolfgang Geithner

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ralf,

The function module RS_GET_ALL_INCLUDES provides the names of all includes for any program (Report, Function Group,..).

It takes the program name as the input, so pls pass SAPLGRAP if the function group you want to query for is GRAP.

Hope this helps.

Sudha

3 REPLIES 3

Former Member
0 Kudos

You can do a select from TFDIR table.

DATA PANME LIKE TFDIR-PNAME.

DATA INCLUDE_NAME LIKE TFDIR-PNAME.

PNAME(4) = 'SAPL',

PNAME+4 = <FUGR_NAME>.

SELECT * FROM TFDIR WHERE PNAME EQ PNAME.

CONCATENATE 'L' <FUGR_NAME> 'U' TFDIR-INCLUDE

INTO INCLUDE_NAME.

ENDSELECT.

INCLUDE_NAME will conatin the include name of Function Module.

Cheers

Former Member
0 Kudos

Hi Ralf,

The function module RS_GET_ALL_INCLUDES provides the names of all includes for any program (Report, Function Group,..).

It takes the program name as the input, so pls pass SAPLGRAP if the function group you want to query for is GRAP.

Hope this helps.

Sudha

Former Member
0 Kudos

RS_GET_ALL_INCLUDES will get all the includes , the non function ones also. You will have to write further logic to differentiate between function module includes and other includes.

Cheers