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

System table that stores info about any function module

Former Member
0 Likes
1,576

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,149

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

Read only

0 Likes
1,149

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!!

Read only

Former Member
0 Likes
1,149

use se37 transaction to see code of function module.

Read only

Former Member
0 Likes
1,149

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