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

find Function modules by in program

Former Member
0 Likes
6,612

Hi All ,

Is it possible to write a program which will take the program name as parameter and go-through the code passed program and list all the fuction modules used in that program in output.

Thanks

Vinay Kolla

9 REPLIES 9
Read only

former_member194669
Active Contributor
2,582

Already standard report available for this .

Try program RPR_ABAP_SOURCE_SCAN

Read only

0 Likes
2,582

Hi a®s,

Nice one!

you should be awarded.

Regards,

Sukhbold

Read only

Former Member
0 Likes
2,582

hi,

Plz refer to this link.

regards

Sumit Agarwal

Read only

0 Likes
2,582

thanks for the response , Does the program work for Function modules , I mean if i pass function module or function group it does not seem to work

Thanks

Vinay Kolla

Read only

Lakshmant1
Active Contributor
0 Likes
2,582

Hi Vinay,

Check FM RS_CROSSREFERENCE by passing the program name.

Thanks

Lakshman

Read only

0 Likes
2,582

Hi Lakshman,

How does FM RS_CROSSREFERENCE work?

Could you please give some explanation?

Regards,

Sukhbold

Read only

0 Likes
2,582

Hi Sukhbold,

By using RS_CROSSREFERENCE FM, we can get the internal program environment of the program e.g. objects/keywords used within the program.

Hope this helps.

Thanks

Lakshman

Read only

Former Member
0 Likes
2,582

Hi,

Check this Programs:

RKCTSEAR :

Search source code of various programs for up to two strings. Also see RPR_ABAP_SOURCE_SCAN or use search in source functionality via SE80

RPR_ABAP_SOURCE_SCAN

Search ABAP code for a string. Much more flexible than RSRSCAN1 or RKCTSEAR

Regards

Adil

Read only

Former Member
0 Likes
2,582

You can do this by Imitating the standard behaviour

In SE38 enter the Program name and Press F9.

it will open the popup, from there you can check Function modules under the external Object

Then press ok. it will display the report.

there you can see how many calls and what are they.