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: 

Trace a class

Former Member
0 Kudos
767

Hi all

Is there any method to trace class.

We need to trace PCUI in CRM it is using certain classes and we need to trace these.

Hoping to get a quick reply.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
164

Vijay,

Go to SE24, type in the class you want to find and do a WHERE USED LIST. It will ask if you want to find out occurrences of the components as well. Say Yes, and it will list all the programs where either the class is being used / method of the class is being called.

Regards,

Ravi

Note : Please mark the helpful answers

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos
164

Hi Vijayasarathy,

What do you mean by trace??Debugging??

If yes, YOu need to on the system debugging , update debugging option in debug screen(settings->System Debugging, Settings->Update Debugging).

Regards,

Ravi

0 Kudos
164

Hi Ravi,

It is like this.

ST05 is there, there you could do SQL trace. You activate SQL trace and do some transactions and then Deactivate the sql trace and then if you do "DISPLAY SQL TRACE" it would inform you all the information and SQL statements what have been used in between.

This is an SQL Trace.

Like IS there any method to trace "classes" ABAP Objects.

0 Kudos
164

Vijay,

ST05 is to tell you about the table accessed by a program at runtime. I don't think there is anything like that for Classes. but WHERE USED list should tell you where exactly the class has been used.

What you can also try is, in DEBUG mode, put a break point at the statement - CALL METHOD - this will stop the program at the method calls irrespective of the class.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos
165

Vijay,

Go to SE24, type in the class you want to find and do a WHERE USED LIST. It will ask if you want to find out occurrences of the components as well. Say Yes, and it will list all the programs where either the class is being used / method of the class is being called.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos
164

Hi,

All the runtime errors are stored in the transaction

ST22.

There you can find what is the reason for the error.

Hope it helps.

Regards,

Maheswaran.B