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

Table to find out the function modules used in a particular program

Former Member
0 Likes
1,975

Hi,

Is there any standard table to find out the function modules used in a particular program?

Such as there is a table D010TAB to find out the tables used in a program .

Hi,

Is there any standard table to find out the function modules used in a particular program?

Such as there is a table D010TAB to find out the tables used in a program .

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,549

I think there is no such table.

you can just do it hitting the find button and search with CALL FUNCTION , select the main program option button.

You can also check the program SAPRSEUB

Edited by: Keshav.T on Jan 5, 2010 2:33 PM

Read only

Former Member
0 Likes
1,549

Hello

There is no exist such table.

But try this snippet:


REPORT ZSEARCH.
PARAMETERS: P_NAME LIKE D010SINF-PROG.
DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
DATA: TMP(72) TYPE C OCCURS 0 WITH HEADER LINE.
DATA: FUNCT TYPE RS38L_FNAM OCCURS 0 WITH HEADER LINE.

DATA: INCL TYPE RSEUINC OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'RS_GET_ALL_INCLUDES'
     EXPORTING PROGRAM    = P_NAME
     TABLES    INCLUDETAB = INCL.

LOOP AT INCL.
  READ REPORT INCL-MASTER INTO TMP.
  APPEND LINES OF TMP TO PROGTXT.
  REFRESH TMP.
ENDLOOP.
READ REPORT P_NAME INTO TMP.

APPEND LINES OF TMP TO PROGTXT.

LOOP AT PROGTXT.
  IF PROGTXT CS 'CALL FUNCTION'.
    SEARCH PROGTXT FOR ''''.
    IF SY-SUBRC = 0.
      DO.
        SHIFT PROGTXT LEFT BY 1 PLACES.
        IF PROGTXT(1) = ''''.
          SHIFT PROGTXT LEFT BY 1 PLACES.
          DO.
            SHIFT PROGTXT RIGHT BY 1 PLACES.
            IF PROGTXT+71(1) = ''''.
              SHIFT PROGTXT RIGHT BY 1 PLACES.
              CONDENSE PROGTXT.
              FUNCT = PROGTXT. COLLECT FUNCT. EXIT.
            ENDIF.
          ENDDO.
          EXIT.
        ENDIF.
      ENDDO.
    ENDIF.
  ENDIF.
ENDLOOP.
SORT FUNCT.
LOOP AT FUNCT.
  WRITE: FUNCT. NEW-LINE.
ENDLOOP.

Read only

Former Member
0 Likes
1,549

Hi,

Look at the table CROSS. I think you can get the includes names of your program and read this table with CROSS-INCLUDE = 'your includes' and CROSS-TYPE = 'F'.

Edited by: Diego Alvarez on Jan 5, 2010 10:03 AM

Read only

Former Member
0 Likes
1,549

Hi Radhika,

Just use the Where used list button to find the programs in which a FM is used.

Whereas if you want to find out the Function Group to which a FM belongs you can use table ENLFDIR.

Regards,

Abhijit G. Borkar

Read only

Former Member
0 Likes
1,549

in se38. utilities ->find in source code...

give the FM name...

and in the 'in program ' you can pass the program(s) you want. its a select option..