Application Development 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: 

How to find out a DB table in a Function module

Former Member
0 Kudos

I got file interface object which contains a Function Module which is used to extract the data from the DB and populate the data in a Internal Table. For testing the object i need sample data, but i dono from which table the data was extracted. Can anybody help me to know how to locate a DB table in a Function Module.

2 REPLIES 2

Former Member
0 Kudos

Search for the SELECT statement in the Function Module code for option in the main program. If the data is fetched dynamically use TRACE option using transaction ST05. The trace list will show you what database table have been used.

Thanks.

Former Member
0 Kudos

Hi,

Use ST05 to trace out the selects which were used in the function module, goto ST05 and do the trace on and execte the function module in SE37 and come back to ST05 and do the trace off, then then analasis that trace, you will all select statments there, then you can find the tables easily

Regards

Sudheer