09-29-2005 1:16 PM
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
09-29-2005 1:28 PM
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
09-29-2005 1:20 PM
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
09-29-2005 1:28 PM
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
09-29-2005 1:36 PM
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