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 that stores information about function module

Former Member
0 Likes
690

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

4 REPLIES 4
Read only

Former Member
0 Likes
664

Solved on my own. If you want clarification do let me know.

Read only

0 Likes
664

Better if you write solution in this thread rahter than someone let you know.

Amit.

Read only

0 Likes
664

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.

Read only

0 Likes
664

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