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