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?

    Requires Free Membership to View

Yes, it is. You must do so in the generated function. Here are the steps to take:
  • 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.

This was first published in March 2008

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.