‎2008 Jun 12 11:18 AM
Hi All,
I know that table TFDIR stores primary information about any function module.
Could anyone tell me where the code of that function module gets stored in?
Also.. If I want to write an ABAP code to read the function module code then what is the best possible solution?
I want to read a function module code if that contains specific string.
Can anyone help me with that?
Thanks in advace and any answer will be appreciated.
Regards
Jignesh
Edited by: Jignesh Patel on Jun 12, 2008 12:22 PM
‎2008 Jun 12 11:24 AM
Hi Jignseh,
The codes are not stored in any table, they are stored as cluster.
To read the code, you can use READ REPORT.
But there you must provide the Include Name
For Example , If you want to read the code of READ_TEXT,
READ REPORT 'LSTXDU01'.
You can get this include name inside include LSTXDUXX
Use "GET_INCLUDES" to get all include names
Edited by: Swastik Bharati on Jun 12, 2008 12:28 PM
‎2008 Jun 12 11:43 AM
Thanks for your help.
I figured it out later when analysing things.
Table TFDIR also stores the program name and include number.
You need to truncate first 3 char 'SAP' and append UXX at the end and that will be your program name.
Then we can use READ REPORT!!!
Hurray!!!
Thanks all!!
‎2008 Jun 12 11:28 AM
‎2008 Jun 12 11:29 AM
Hi
Check out these tables :
TFDIR Function Module
TFTIT Function Module Short Text
ENLFDIR Additional Attributes for Function Modules
Hope it will helpful for you.
With Regards
Nikunj Shah