cancel
Showing results for 
Search instead for 
Did you mean: 

Debugg smartform

Former Member
0 Kudos

How to debug the smart form?i know Create one code node in that one set one break-point.Is there any alternative method is there?Please give me reply.

Thanks,

suresh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You could see the generated function module in the menu Environment->Function Module Name.

Go to SE37 and open the FM, The code in the FM is that generated for the smartform. Here you could set the break point as in ABAP Editor.

Ps: Reward helpful posts

Regards

Wenceslaus

anversha_s
Active Contributor
0 Kudos

hi,

1) DEBUG Smartform:

1) 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.

2) SFTRACE can be used for debugging SMARTFORMS.

Read More here.

http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

<u><b>SFTRACE</b></u>

Using the Smart Form trace, you can trace how a Smart Form was processed during printing.

You can then see, for example, the sequence in which the nodes were run or the point at which processing terminated due to an error.

Integration

The trace is activated in transaction SFTRACE or by the user. When the trace is activated, Smart Forms stores a trace on the database for each output, using the generated function module. You can set the degree of detail for this trace. The Smart Form trace is automatically deactivated again after a day. The stored trace files are, however, retained.

In deliveries before SAP Web AS 6.10, the trace can be started in transaction SMARTFORM_TRACE.

Prerequisites

The trace output is user-specific. The trace is therefore only recorded with the user who activated it. For traces to be recorded for batch input, the batch therefore has to be run under the user who activated the trace. This is automatically the case if you do not specify an explicit batch user when scheduling a batch.

Activities

Activate and configure the trace.

Call a form - if the trace is activated, Smart Forms automatically stores a trace on the database.

Analyze the trace.

Deactivate the trace if you no longer require it. You can deactivate the trace using the Deactivate pushbutton in Trace management (transaction SFTRACE).

Activating and Configuring the Trace

Use

The trace is deactivated in the default setting. If you want to use the processing of a form to search for errors, you have to activate and configure the trace beforehand.

Procedure

Start transaction SFTRACE (trace management).

If the trace is not activated, you can activate it by choosing the Activate pushbutton. The status in trace management then changes to Trace active.

Set the trace level and other options.

Confirm your entries with the Enter key.

Result

Provided that the trace is activated for your user, Smart Forms creates a new trace each time you call a Smart Form. To avoid the trace being used unnecessarily, Smart Forms deactivates it again after one day. You can also deactivate it yourself before this time by choosing the Deactivate pushbutton.

Stored traces are listed in the Traces in the database table. This table is not, however, automatically updated after a trace has been stored. To update the table, choose Refresh ().

Analyzing Trace Output

Use

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.

Prerequisites

You have activated and configured the trace and created a trace run. You have updated the table in the Traces in the database frame.

Procedure

All trace runs stored on the database are displayed in the Traces in the database frame.

Displaying the Trace in the System

Select a line using the pushbuttons on the left side of the table.

Choose Display Trace.

In the default setting, the trace is only displayed to trace level 15 (document information) at first. To show other levels, use the pushbuttons in the application toolbar.

Exporting the Trace into a Local File

Select a line using the pushbuttons on the left side of the table.

Choose Export.

You can now store the whole trace locally on your PC using a file dialog.

Regards

Anver

Former Member
0 Kudos

i don't think there is any othere method.