Scratch no longer!
Ok, so this is going to be a really quick post, just because I think there's a lot of people out there who didn't know about this functionality and it's very helpful.
Many times it has happened to me, I'm working on a Smartform, and I try to test it and nothing happens, the function module aborts with some formatting error or sometimes a "others" exception, and I had to go and try to understand what happened, comment out code or delete windows (making a backup) until I found where the problem was, usually a missing logo or a window exceeding the page limits. A missing text module will also do this.
But there's an easier way to find out what the problem is, SFTRACE!
Let's work through an example.
So, I tried to print/preview a print out, it didn't work, what now?
I execute transaction SFTRACE and turn the trace on:
Try to print again. Refresh the trace. An entry will appear!
Now look at the info... in my case apparently there's a missing graphic!
There you have it. I hope this is helpful.
Best regards,
Bruno Esperança