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

what are the debugging techniques while debugging using /h?

Former Member
0 Likes
2,150

Hi friends,

is there any short way that we can find the enhancements(added custom code using implicit or explicit enhancements) what we added for the standard transaction code using /h debugging. or else do we need to execute each and every step and find this enhancements.

means: when i try to debug the standard tcode using /h it opens a screen in dubugging mode with pai and pbo modules, under this pai, pbo modules there could be lot of modules implemented. but it is taking more time to identify that pirticular enhancement by executing each and every module . what my doubt is is there any way that i can get the error spot simply in this /h debuggin?

Regards,

siva.

6 REPLIES 6
Read only

Former Member
0 Likes
1,666

Hello Sivaramakrishnan,

I'm not sure what are you looking for. But still I can share one small trick (many ppl know abt this) that can help you to identify the BADIs implemented in the standard transaction.

Go to the transaction SE24

Enter the Object type as "CL_EXITHANDLER" and click on display

There is a method called "GET_INSTANCE" double click on this

Keep Break point in the line no 14

After the above steps execute the standatd transaction in which you want to find the BASI implementations.

Debugger stops at this point every time when it comes across a BADI.

Simply press "F6" then in the field class_name you will get the Implementation class name and in field exit_name you will get the implementation name.

Make a list of these implementation and continue.

Once your standard transaction gets over then you can check these implementations, that will bring you close to the spot where the problem is.

If you are looking for some other information, please let me know, I'm happy to help.

Thanks

Nivash

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,666

What exactly are you looking for?

Read only

former_member219162
Contributor
1,666

Hello Sivaramakrishna,

1) You can execute your standard Tcode and find out the Main Program (using System-> Status)

2) got to SE80 and select "Program" and put the Program name and then press "enter" key.

3) You would see all the related techical details of the Program.

4) You would see a folder named " Enhancement Implementations". Under this folder you would get all implicit/Explicit enhancements that have been implemented.

Read only

0 Likes
1,666

first of all thanks for immediate reply.

Read only

Former Member
0 Likes
1,666

hello sivaramakrishna,

first put the transaction in debugging mode by using '/h'.

in the menu bar their is menu option ' break point'

please find here where you want put the break point.

Read only

former_member219762
Contributor
0 Likes
1,666

Hi,

You can find enhancements as said by Nivash for old badi. To find enhancements for new badi Set break point at abap statement Get Badi . Get badi <ref>,here <ref> contains all references to classes which implemented enhancement.

Regards,

Sreenivas.