Skip to Content
Author's profile photo Bruno Esperança

Have you ever found yourself scratching your head wondering why your Smartform wouldn’t go?

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:

/wp-content/uploads/2014/07/sftrace1_490829.png

Try to print again. Refresh the trace. An entry will appear!

/wp-content/uploads/2014/07/sftrace2_490830.png

Now look at the info… in my case apparently there’s a missing graphic!

/wp-content/uploads/2014/07/sftrace3_490831.png

There you have it. I hope this is helpful.

Best regards,

Bruno Esperança

Assigned tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo W.A. Ramaekers
      W.A. Ramaekers

      Hi Bruno,

      Thanks for sharing this information.

      Indeed I was not aware of the existance of transaction SFTRACE.

      So no more scratching 🙂 .

      Best regards,

      Wiel

      Author's profile photo Bruno Esperança
      Bruno Esperança
      Blog Post Author

      I'm glad it was helpful 🙂

      Cheers,

      Bruno

      Author's profile photo Former Member
      Former Member

      Hello Bruno,

      It's good that you blogged about it, not many people tend to use them for analysing SF errors. I hope that it creates awareness about this tool among the developers 🙂

      I have used SFTRACE a few times to analyse the SF errors. I can say from my experience that it's quite a handy tool, esp. the "ABAP breakpoints" feature.

      Unbenannt.JPG

      IMO, for the completeness of the blog, you should have included it as well.

      BR,

      Suhas

      PS: Sorry if i sound critical 😉

      Author's profile photo Bruno Esperança
      Bruno Esperança
      Blog Post Author

      Hey Suhas!

      Thanks for the tip, I'll include it as soon as I have some time 🙂

      BR,

      Bruno

      PS: You never need to apologize to me, I know you always make suggestions with good intentions 🙂

      Author's profile photo Eitan Rosenberg
      Eitan Rosenberg

      Hi,

      We need more people like you.

      Regards.

      Author's profile photo Bruno Esperança
      Bruno Esperança
      Blog Post Author

      Hi!

      Thanks Eitan, appreciate it 🙂

      BR,

      Bruno

      Author's profile photo Former Member
      Former Member

      Hi Bruno,

      Good One..!!

      Thanks for Sharing..!!

      Thanking You All.

      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Good tip. I heard about the transaction but somehow never got to use it. It would be nice though if the Smartform error messages were more descriptive instead of just "Ooopsie, something went wrong somewhere". 🙂