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 debug module pool program

Former Member
0 Likes
3,212

Hi all

I have a question about how to debug module pool program.

Scenerio: this module pool program will be called when updating the system tables through Tcode such as: VA02 etc.

Thanks you very much:)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,017

Hi Kristen,

If you know at which point you have to check the values in the run time,go to that point put your breakpoint and run the transaction.It will stop at that point.From this point you can debug your module pool program.

Regards,

MUkesh Kumar

9 REPLIES 9
Read only

Former Member
0 Likes
2,018

Hi Kristen,

If you know at which point you have to check the values in the run time,go to that point put your breakpoint and run the transaction.It will stop at that point.From this point you can debug your module pool program.

Regards,

MUkesh Kumar

Read only

Former Member
0 Likes
2,017

modele prog are debug by using break and watch points place a break point at point in code from where u want to start debugging and press f5 and continue .

u can check the values of various variables in watch window by double clicking on it

other usefull keys

f7 to come out of a function

f5 to move to next line

Read only

Former Member
0 Likes
2,017

Hi,

Thanks for your help.

I have tried your methods but it is pity that it cannot debug into the module program though I have set break point in that module pool program.

Need more help from you:)

Read only

Former Member
0 Likes
2,017

Hi Kristen,

You can debug a module pool program( any program ) in two ways:

-> By setting breakpoints then running the program

-> By running the program in debugging mode.

Since you are running a module pool program setting breakpoints is tedious in certain scenarios and wouldn't solve your problem. You can do the following:

-> run the program using your transaction

-> when the screen appears use the /H command in the command field before giving your response.

I Hope this will work fine in your case.

Also go through this link:

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617cc4e68c11d2b2ab080009b43351/frameset.htm">Link to Help on Debugger</a>

with regards,

Naveenan.

Read only

Former Member
0 Likes
2,017

Hi Naveenan and all guys,

Thanks for your help.

Up to now, I have tried three methods to debug the module pool program

1. Static Breakpoint

2. Dynamic Breakpoint

3. /h to debug

Any other methods to debug?

Thanks.

Read only

Former Member
0 Likes
2,017

Hi kristen,

You can also try using the following functions from the debugger.

-> Breakpoints at Statements, Function modules, Methods, system exceptions, forms etc.

These functions are available from the debugger using the menu

Breakpoints-> Create breakpoint or

using the F9 funtion key.

You can also try watchpoints. watchpoints are not activated until the contents of a specified field change. You can only define watchpoints in the Debugger.

-> Run the program in the debugging mode.

-> Click on the ' watchpoint ' icon.

-> Enter the variable name you want to watch.

-> Now you can go to the Breakpoint/watchpoint tab and watch the variables.

To learn more about watchpoints visit the link:

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617cc4e68c11d2b2ab080009b43351/frameset.htm">Help on watchpoint</a>

You may try also the menu path

System -> Utilities -> Debug Screen

System -> Utilities -> Debug System " Debugs system events

System -> Utilities -> Debug ABAP

Hope this provies you with ample information.

with regards,

Naveenan.

Read only

Former Member
0 Likes
2,017

Hi Kristen

Naveenan , Has given you perfact answer. On top of that Some practical tips.

1. Once you press any button and when your /h is pressed. 1st PAI will get executed.

2. Inside PAI 1st few rows or modules will be for validations.

3. To reach to the functionality, under discussion directly... Placing Break-Points on particular statement or Function Module. is a fastest way to reach to the desired functionality.

4. Lastly... I suggest you go through complete debug once and have idea on what's happening, what is logic of programm. you can go in second iteration and find code of your interest.

Hope this will help

    • Reward points to helpful answer

Read only

Former Member
0 Likes
2,017

Hi Darshan Patel and Naveenan,

Thank you very much:)

According to your suggestion, I have solved the problem and debug the module pool program now.

Thank you for the other guys to share with your points on this question.

It helps me to study more.

Read only

0 Likes
2,017

Hi Kristen,

You forgot to provide points who answered your question. Its good one to provide points according their answers. It will encourage people.

Thanks

Ravi