2010 Jan 05 8:30 AM
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 .
2010 Jan 05 8:57 AM
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
2010 Jan 05 9:01 AM
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.
2010 Jan 05 9:02 AM
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
2010 Jan 05 9:08 AM
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
2010 Jan 05 9:12 AM
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..
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |