‎2007 Jul 23 10:44 AM
Hi, Can anyone tell me the way to debug a smartform and to upload a logo into
SAP.
‎2007 Jul 23 10:45 AM
hi,
SFTRACE can be used for debugging SMARTFORMS
for details refer this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
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
Reshma
‎2007 Jul 23 10:48 AM
Hi,
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
Regards
‎2007 Jul 23 10:51 AM
Hi
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
LOGO on Smartform
1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
4) Select any picture and set its Resolution in DPI
5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
6) Set any other parameters if required, save and activate.
7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
😎 Use TCode SE78 to upload new pictures and logos.
look at Thread Dynamic Graph in smartforms
Refer the links also -
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 23 10:51 AM
‎2007 Jul 23 10:55 AM
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.
1)goto tcode SFTRACE --> click "trace on"
2) Get the function module name and set break points in function module name.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
or
Try with this:
In the form Utilities->debugger / RSTXDBUG FM for debugging
or
You can set break "sy-uname" within your smart form code sections and this will take you to the code sections in the function module of the smart form when the break point is reached. This way by timing the break points you can look at the code of the various nodes of your smart form.
BREAK-POINT can be used only in own program lines in smartform - not very helpful because it always stops until removed and generated again.
Or you can use transaction SMARTFORM_TRACE.
1. use transaction SMARTFORM_TRACE
2. in the SMARTFORMS, use utilities to show the function name. You can analyze this function in SE37 and set dynamic breakpoints as required. Lok at the SMARTFORM_TRACE to decide where to set break points.
or
SMARTFORMS DEBUGGING
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
These are the steps to be followed for uploading graphics in R/3 system
1. First save the file as BMP 2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and make it Zoom as 100% and save as .TIFF 3. Open SE38 and execute program RSTXLDMC 4. Give your TIFF file path name 5. Select Bcol (for Color) 6. TEXT ID will be ZHEX-MACRO-. 7. Inplace of * write your own logo name (ZCOMPANYLOGO) 8. Execute the program 9. Now Goto SE71 create your ZFORM 10. Create logo window 11. Goto text element of logo window
The steps for including graphical elements in the layout set are as follows
The graphical element (like company logo) should be in valid graphic file format like .bmp or .jpg
Use appropriate software to convert the above file into a .TIFF file
Use report RSTXLDMC to upload this file as a text module in SAP
Execute the above program from the ABAP /4 editor
Enter the location of the .TIFF file on the PC
Specify BMON or BCOL as the raster image type
The SAP system suggests a name for the file ( like ZHEX-MARCO-* ). The * indicates the type of file. For e.g. if the file contains a logo then the name can be ZHEX-MACRO-LOGO
The ID should be ST and give the logon language
Running the program will convert this .TIFF file into a text element
Incorporate this converted logo in the appropriate window under the appropriate text element by giving
INCLUDE ZHEX-MACRO-LOGO OBJECT TEXT ID ST in the first line
regards,
srinivas
<b>*reward points for useful answers* </b>