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

break points

Former Member
0 Likes
1,481

how to set break points after execution

12 REPLIES 12
Read only

Former Member
0 Likes
1,378

Hi geetha,

If u want to set breakpoint before execution,place the cursor where u want to set breakpoint and press stop icon.If u want after execution go with '/h' then f5->scroll the program and double click the line where u want to set the break point and f8.then cursor will move to the breakpoint set location

Read only

Former Member
0 Likes
1,378

hi,

you have to set break points before execution of program.

place the cursor where u want to keep break point and click STOP button in the tool bar , then break point will be set.then execute your program.

or else before executing give '/h' in the command prompt directly control leads to debug mode there you can set break point.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,378

Hi

U can set the break points before execution/during the execution.

U won't set the break points after the execution.

Regards,

Sreeram

Read only

Former Member
0 Likes
1,378

Break points can be set before execution or when the transaction running online we can set break points.

Programmatic approach can be done using BREAK POINT key word.

If the Transaction is running in the back ground, then We can set break point using JDBC transaction.

Raj

Read only

Former Member
0 Likes
1,378

Hi Geetha...

DO you mean when you are in debugging mode .. then you can go to the line and then double click on that row for setting the break point there else you can also set the break point going

BreakPoint -> Break Point at -> <there are several options there>

but then for this you have to enter the debugging mode either by typeing /h in the command tab in teh selection screen or setting the break point in the code...

Regards,

Jayant

Read only

Former Member
0 Likes
1,378

hi,

after execution -> give '/h' -> u will inside the code -> double click any select query

-> breaks points will be set

Regards

Reshma

Read only

Former Member
0 Likes
1,378

hi geetha,

try to follow as below.

go to command field ,

give /h,

enter,(now debugging swiched on),

excute,(it takes to u to ur code),

in code u can assign break points by double click on particular line..

regards...

seshu.

Read only

Former Member
0 Likes
1,378

Programing approach.

You can use key word breakpoint.

Stop button approach

Press the button STOP by putting the cursor at the place from where you want to debug the program.

After execution

while processing from the selection screen enter '/h' in command bar and execute the selection screen.

Regards,

Venkat

Read only

Former Member
0 Likes
1,378

Hi,

To set the Break Points follow the steps:

1. Before Execution in program where you want to put place the cursor there and click on Stop Icon it will sets the break point (it will becoe color).

2. After Execution the program if you want to set while debugging

Double Click on SAP statements/ Reserved words not declaration part

it will sets the break point. This Break Point life is upto end of the Execution.

Tcode

/H --- To start Debug

F5 --- Line by Line debug

F6 --- To leave the FM/loop

F7 --- To break the loop/FM

F8 --- Execute once.

Regards

Ganesh

Read only

Former Member
0 Likes
1,378

Static Breakpoints

Static breakpoints are always user-independent if there is no specification of a user name. Once a user has inserted the statement BREAK-POINT or BREAK name in an ABAP program, the system always interrupts the program at that point for that user or only for the user name. This procedure is only useful in the development phase of an application when program execution is always to be interrupted at the same place. For more information, refer to the chapter Static Breakpoints.

In HTTP sessions, a static breakpoint is skipped if you did not set additional dynamic HTTP breakpoints in the editor of a BSP page. Instead, a corresponding system log entry is written, which can be checked using transaction SM21.

Dynamic Breakpoints

Dynamic breakpoints are user-specific. Therefore, you should use them if you only want the program to be interrupted when you run it yourself, not when it is being executed by other users. All dynamic breakpoints are deleted when you log off from the R/3 System.

Dynamic breakpoints are more flexible than static breakpoints because you can deactivate or delete them at runtime. They have the following advantages:

· You do not have to change the program code.

· You can set them even when the program is locked by another programmer.

· You can define a counter that only activates the breakpoint after it has been reached.

Special dynamic breakpoints are useful when you want to interrupt a program directly before a particular ABAP statement, a subroutine, or an event, but do not know exactly where to find it in the source code. Event here is used to refer to the occurrence of a particular statement, for example, or calling up a method. Special dynamic breakpoints are user-specific. You can only set them in the Debugger. For more information, refer to the chapter Dynamic Breakpoints.

In HTTP sessions, the system stops both at static and dynamic breakpoints if a dynamic breakpoint was set in the editor of a BSP page before program execution.

award points if this is useful dear,

thank you

Read only

Former Member
0 Likes
1,378

hi

good

break point must be set before the execution and a break point can be set using below 3 process

use hard coded break-point in your code

use \h in the command line to activate the break point

use break point symbol to put the breakpoint at a particular position.

thanks

mrutyun^

Read only

Former Member
0 Likes
1,378

hi

place the cursor at required position and just click on stop button then a break point is inserted at the specified position.

during execution press

F5-> line by line execution

F6-> fosame as F5 but when a sub routine is oocured then it executes it as a single line.

F7-> break point to break point

F8-> executes whole program at atime.

to remove break point double click on break point.

if helpful reward some points.

with regards,

suresh babu aluri.