Search This Blog

Friday, May 27, 2011

Debug a Smartform without hard coding Break-Point

There are 2 ways to debug a smartform in abap :

First is to hard code 'BREAK-POINT' where ever you want the execution to stop. This is not convenient when working in a landscape architecture for example the changes take place on the Development Server (DEV) but the testing scenario is only available on Quality Server (QAS). In this case the other method proves to be useful.

Second is to follow these easy steps.

  1. Goto Transaction SMARTFORMS
  2. Enter the smartform name and click display.
  3. Press F8(Execute) an copy the function module.
  4. Now goto transaction SE38 an paste the FM name copied in step 3.
  5. Add 'F01' at the end of FM name and 'L' before S.
  6. Now click display. The FM will open like a report.
  7. Put breakpoint wherever the need is and execute the driver program.