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

How to trace Function Modules ?

Former Member
0 Likes
6,742

Hi ,

Can anybody tell me how I can trace or find all the function modules called by a trancaction ?

I tried it using transaction ST05 but didn't got the expected result. Is there any other way to find it other than debugging the transaction ?

I want the same for transaction "VK12".

Thanks

Ashwa

16 REPLIES 16
Read only

Former Member
0 Likes
4,376

search in the Program itself.

search terms are Call or BAPI or Commit.

Regards

Prabhu

Read only

Former Member
0 Likes
4,376

go to debugger mode.

and make break point on statement call transaction u can get break point on all fm.

just click f8 to go another fm.

Read only

Former Member
0 Likes
4,376

Place a BREAK_POINT at statement CALL FUNCTION and then when you execute the transaction, it will stop at every function.

Regards,

Ravi

Note :Please mark all the helpful answers

Read only

Former Member
0 Likes
4,376

one way is going inside the program for the transaction ( SE93)..then putting a search in the program for CALL FUNCTION..

Read only

Former Member
0 Likes
4,376

Hi Ashwa,

Approach it in this way.

1) Goto the transaction VK12, first screen (Change Condition records).

2) Then in the command prompt enter <b>/h</b>, ie.. switch debugging on.

3)Hit Enter, will enter the debugging mode

4)Then in the MENU BAR goto Breakpoints>Breakpoints At>Statement

5)Enter <b>CALL</b> here

6)Save and execute (F8)

Now your debugger will stop at all CALL statements, and thus you can trace the FM's called.

Regards,

Arun Sambargi.

Read only

Former Member
0 Likes
4,376

Hi Ashwa,

Active debugger at any point in the transaction.Execute the transaction.There is one tab 'CALL' Press it.You will get all the FM's used in the transaction.

Read only

Former Member
0 Likes
4,376

Guys.. thanks for your inputs... but I want to know is there any transaction provided by SAP which traces all the calls to FM's.

I know debugging is one of the option , but I think there should be some transaction like ST05 to do the same.

Ashwa

Read only

0 Likes
4,376

you can use the runtime analysis, SE30.

make sure to use a special variant to track function module calls. run the transaction, and then look at the output. The list will show every function module call made.

remember though, that this traes only the path you take through thje code. there may be many more function modules used that you never see.

SE30 is used here a lot for test coverage analysis, and runtime improvement analysis.

Read only

0 Likes
4,376

Hi Ashwani,

Try to use transaction STAD, fill in the name of the transaction used (and users, etc) and you can get all the info this transactions is doing (and the called FM's).

Hope this will help you.

Kind regards,

Andre

Read only

Former Member
0 Likes
4,376

Use report RPR_ABAP_SOURCE_SCAN with serach string CALL FUNCTION.

-Kiran

Read only

Former Member
0 Likes
4,376

hi,

If you want to trace all the Function modules used in Transaction then you should Globally search in the program. or else in Debugging keep the break point for <b>CALL FUNCTION</b> .this will give Function module ->fucntion calls also.

Regards

vijay

Read only

0 Likes
4,376

remember, though, that many function modules are simply wrappers for other function modules. Breakpoints will hit these, as will SE30. Searching through the source will not. it will find the first level FM calls, but nothing about what those FMs themselves call.

I don't know what the level of detail required is...

Read only

Former Member
0 Likes
4,376

Trace is the right method.

Kindly provide the steps you are following for doing trace.

Regards,

Surpreet Bal

Read only

filiperittercruz
Explorer
0 Likes
4,376

In SE30 you can trace the transaction/program you want using the option "In Dialog".

The result will be a list of the runtime measurement.

You have to open the results one by one to find CALL FUNCTION option.

Read only

Former Member
0 Likes
4,376

Hi Ashwani,

Prg for given tcode is SAPMV13A. Go to that program press search button of standard toolbar

and follow below steps:

Then u can get list of function modules used in that tcode.

Regards

Vineesh.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,376

ST05 is SQL trace, SAT is Abap trace (or good old SE30 for old systems)

Regards,

Raymond