02-16-2007 12:51 AM
Hi,
I am trying to debug a smartform.How should I do it?
Though I hardcode a break...I am not able to break the print program.
How should I do it?
02-16-2007 12:59 AM
Hi,
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3. Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
Regards,
Ferry Lianto
02-16-2007 12:56 AM
Hi,
Create a program lines node and write:
break-point or break username.
For program debug, set the breakpoint as you normally debug a program.
Regards
Subramanian
02-16-2007 12:59 AM
Hi,
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3. Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
Regards,
Ferry Lianto
02-16-2007 1:26 AM
I tried to place soft break points ..but still it doesn't stop..I don't know why
02-16-2007 3:09 AM
Ramana,
I hope you are putting soft break point in the function module. If so, please check if you are putting it after any condition... put it on the very first command of the FM....
Also please check if you are working on one client only...!
Thanks
02-16-2007 3:14 AM
If this is an invoice, try placing the break-point in RLB_INVOICE. This report calls your smartform function, and so you should be able to watch as it calls the generated function module generated by the Smartform.
02-16-2007 1:04 AM
Hi ramana,
One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards
regards,
keerthi