Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

How To Trace Smartform

Introduction
If you want to debug Smartform in non-modifiable client, then you can try debugging Smartform using
Transaction SFTRACE.
Scope
We can analyse our Smart Forms using trace to watch how it works and any termination caused by
errors.
Step by Step Guide
SFTRACE is a standard SAP transaction code available within R/3 SAP systems for trace smart
forms.
Go to transaction SFTRACE.

Switch on the trace then choose level to trace, often use Warning and Error.

Click

on

switch

on

button

and

you

will

then

see

the

following

screen:
The status in trace management then changes to trace active. Set the trace level and other
options. The trace output is user-specific. The trace is therefore only recorded with the user who
activated it.Then Trace is available for your smartform transaction. Run your smartform program
transaction.

Go to transaction ZSFDEMO (User Transaction):

This is a demo program to run smartform. Execute it

This is normal output without any error.

Displaying the Trace in the System:


1. Go to transaction SFTRACE
2. Select a line using the pushbuttons on the left side of the table.
3. Choose Display Trace.

Click here to continue...


Click display and you will then see the following trace screen:

Now, Delete Images from system that used in smartform. Use transaction SE78
You will see the following screen and click on delete.

Click on Yes and the image is deleted from system.

Once Again execute the smartform without Image.

Execute Program:

Using the Smart Form trace, you can trace how a Smart Form was processed during
printing. Whenever you execute the smartforms, it will stop at the error and you can debug onwards.

Displaying the Trace in the System:


1. Go to transaction SFTRACE
2. Select a line using the pushbuttons on the left side of the table.
3. Choose Display Trace.

Click display and you will see the following Error Trace:

Error is highlighted below.

If a user has activated the trace, Smart Forms creates a trace every time this user calls a Smart Form,
even if they have left transaction SFTRACE. The trace can be viewed in the system or downloaded as
a file in this transaction.

You might also like