Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Debug the Smartforms

Former Member
0 Likes
482

How to debug the Smartforms in HR Modules..

When I am access the Smartform from the PA30. I want to debug the data in the smartform..

Please help me..

It's bit Urgent..

2 REPLIES 2
Read only

Former Member
0 Likes
359

Hello,

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.

If useful reward.

Vasanth

Read only

Former Member
0 Likes
359

Hi,,

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.

Once stored, trace files can be displayed again in the system using the Read trace from local file function.

Have a look at below link.

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

Regards,

pankaj singh

****please reward if helpful