Setting soft breakpoints in ABAP that reside in Smart Forms
I've always set hard-coded breakpoints in ABAP code that reside in a Smart Form. Is it possible to set soft breakpoints instead?
- In the SMARTFORMS transaction, enter the name of the desired form
- Click on the test icon (or press F8) to bring up the function module name
- Click on the 'Display' button to show its ABAP code
- Click on the binoculars icon at the top of the screen to bring up a search pop-up window
- Enter the text on which you wish to set a breakpoint (such as a line of code in a program node)
- Select the 'In main program' radio-button then press enter
- Navigate to the desired line and set your breakpoint
Now your form will stop at this soft breakpoint during output generation, so long as it is generated in the foreground.