Skip to Content
author's profile photo Former Member
Former Member

How to read include names of modules in a function group

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.