‎2008 Jun 12 11:16 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?
Thanks in advace and any answer will be appreciated.
Regards
Jignesh
‎2008 Jun 12 11:45 AM
‎2008 Jun 12 11:51 AM
Better if you write solution in this thread rahter than someone let you know.
Amit.
‎2008 Jun 12 11:54 AM
I was about to remark the same.
Not a secret anyway, all sources are stored in REPOSRC, you can read FM sources using the READ REPORT statement after concatenating the correct include name from the information in TFDIR.
‎2008 Jun 13 9:21 AM
Hi All,
Apologies for the same!
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
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!!!
Regards
Jignesh