Setting soft breakpoints in ABAP that reside in Smart Forms

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

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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