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 debug standard tcodes

Former Member
0 Kudos

hi,

i generally face difficulties while debugging standard tcodes, what method to be followed while debugging standard tcodes like "BP" , "VA02" , "FBL5N" etc...

Regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Santosh,

It mainly depends on the requirement for which you debug the standard t-codes.

1) If you go to the object list, you would find all the sub-routines used in the program for that standard t-code. You could select the proper sub-routine and put a break-point in that sub-routine, if you are able to track it.

2) If you are not sure, then you can directly run the t-code and then put '/H'. Switch the debugger mode on. Then while debugging, you can put Watch Points at appopriate places. For. E.G. if you are looking for any errors, you can create a watch point for SY-SUBRC NE 0.

So, its finally your patience that pays off, as it is a very tedious task to debug standard programs.

Best Regards,

Ram.

7 REPLIES 7

Former Member
0 Kudos

Hi Santosh,

It mainly depends on the requirement for which you debug the standard t-codes.

1) If you go to the object list, you would find all the sub-routines used in the program for that standard t-code. You could select the proper sub-routine and put a break-point in that sub-routine, if you are able to track it.

2) If you are not sure, then you can directly run the t-code and then put '/H'. Switch the debugger mode on. Then while debugging, you can put Watch Points at appopriate places. For. E.G. if you are looking for any errors, you can create a watch point for SY-SUBRC NE 0.

So, its finally your patience that pays off, as it is a very tedious task to debug standard programs.

Best Regards,

Ram.

0 Kudos

thank u ..

regarding sub-routines uses, shoud i go to se80 first,and put the breakpoints ???

Former Member
0 Kudos

There cannot be a particular method to be followed.

It becomes lot easy if you know what you are tracking. say a particular variable some value.

Use break points at FMs. you can also make use of tracking sy-subrc value ...

Use Watch points. These tols make it possible to avoid going thru unnecessary code lines.

Former Member
0 Kudos

Hi Santosh,

directly run the tcode using "/H", then you can able to debug the particular standard tcodes by putting the watch points where ever u want.

Regards,

Sudhir K.

Former Member
0 Kudos

Hi,

Nothing special in that.

Goto that TCode after that GIVE in commnad line as /H

IT will goto debugging.

Then rest of the things are same.

Hope u understand.

Regards,

Flavya

tarangini_katta
Active Contributor
0 Kudos

HI santosh,

to debug the standard programs put /h in the standarad program.

then u will go to debugger screen.

Then from menu bar.

Gto-->Breakpoint at statement --->perform then all will subroutines will be triggered in the standarda progra.

Thanks

former_member751224
Discoverer
0 Kudos

how to add a parameter in standarad T-code f-02 screen