Sap Smart Forms: BY Sangeetha Mohan AUG 19,2002
Sap Smart Forms: BY Sangeetha Mohan AUG 19,2002
BY
SANGEETHA MOHAN
AUG 19,2002
1
Overview
•Smartforms Basics
•Demo
2
General Concepts on Form Painting
3
SMART FORMS - ARCHITECTURE
Printer
ABAP
Application Function
program module
(generated)
Fax
Database
4
SMARTFORMS Builder Components
1. Form Builder
The three frames of Forms builder screen are the :
Navigation menu
Maintenance frame
Form Painter frame
5
SMART FORM Form Builder
Selected node
Control
flow Nodes with condition(s)
are marked
7
CSC Proprietary 12/09/21 03:58 AM 008_fmt_wht 7
Nodes - Overview
Output areas
Node type Description
Page A page of the form.
Window Output area on a page. There are main windows and subwindows.
Table output
Node type Description
Template Output of a table containing static data
Table Output of a table containing application data
Flow control
Node type Description
Command Executes special commands (next page, paragraph numbering, printer
control)
Loop Processes successor node repeatedly.
Alternative Branches depending on condition.
Other nodes
Node type Description
Folder Combines successor nodes to logical groups
Program lines Executes ABAP Code
Complex section Combines all attributes of the node types template, table, loop, folder
8
Attributes of the Node Types
General Attributes
Shows contents or description of the
node
Output options
Contains attributes such as position,
style, box and shading
Conditions
Allows to display the node only if
certain conditions are true
9
Pages and Windows
10
Pages and Windows
SMART Forms consists of one or more pages. The first page in the tree structure is the start
page (when we create a form, the start page already exists).
Windows are output areas for all output data.. After we created a form, a main window already
exists on the first page.
11
PC Editor
12
Texts and Fields - Concepts
13
Texts and Fields - Field list and Inline Editor
14
Field List
Formatting options for fields
Syntax Description
Skips <offset> places of the field value (character fields only). If the offset is
&field+<offset>&
greater than the length of the value, nothing is displayed.
&field(<length>)& Sets the output length to <length>.
&field(S)& Suppresses the sign
&field(<)& Displays the sign to the left of the number
15
System fields of Smartforms
16
Table Output - Graphical Table Painter
17
Paragraph and Character formats
A paragraph format contains information on indents, spacing, font settings, text color,
tabs, numbering and outline. Each paragraph format must have a unique name. In the PC
Editor, assign these formats to a text or a field .
Alignment (default: left)
Indent
Spacing (default value for line spacing of the first line)
Text flow
Page protection
Use this attribute to determine whether or not to display a paragraph completely on one page. Mark it
to avoid that a paragraph is split up by a page break. If on the current page (only in the main window)
there is not enough space left for the paragraph, the entire paragraph appears on the next page.
Next paragraph
Use this attribute to link the subsequent paragraph to the current paragraph.
Character format is used to assign special output attributes to sections of texts or character
strings within a paragraph. For a character format, choose among the following attributes:
Superscripting/subscripting the character string
Barcode
Font attributes (font family, font size, bold/italic, underlined, color)
18
Paragraph and Character formats (contd….)
19
Processing a Form
Steps:-
Activate the smart form after the form design is completed.This activation will initiate the generation of a
function module that handles all of the form’s processing.
In the data retrieval program(SE38) select all data that should be displayed in the form.After that the
data retrieval program must call the generated function module to print the form.
Generated function module name of the Smart Form
Routines and ABAP code can be ABAP code cannot be written inside
written inside the smatforms tool . the SAPscript.
22
Converting a SAPSCRIPT to SMARTFORM
Procedure
Migrating a SAP script form
Go to the SAP Smart Forms initial screen (transaction SMARTFORMS ).
In the Form field enter the name of the Smart Form to create.
Choose Utilities --> Migrate SAP script form.
The dialog window Migrate SAP script Form appears.
Enter the name and the language of the source form (SAP script).
Choose Enter.
This takes to the change mode of the SAP Form Builder.
If the selected SAP script form does not exist in the selected language, a dialog window appears on which
select one of the existing languages.
Now change the design of the form and of the form logic. To activate the Smart Form choose Activate.
Converting a SAP script style
Go to the Smart Styles initial screen (transaction SMARTSTYLES ).
In the Style name field enter the name of the Smart Style to create.
Choose Smart Styles --> Convert SAP script style.
Enter the name of the SAP script style to convert.
Choose Enter.
A list of the converted styles appears.
Choose Back. Now change the Smart Style (Change).To activate the Smart Style choose Activate.
Mass Migration of SAP script Forms
In Reporting(SE38) select the program SF_MIGRATE and execute it.
Select the names and the language of the SAP script forms and choose Execute. The system creates the
Smart Forms under the names of the SAP script forms plus the extension _SF.
It displays a list of the migrated forms.
To change and adapt a form, go to transaction SMARTFORMS . Then activate the changed Smart Form.
23
What is next in forms?
SAPSCRIPTS
SMARTFORMS
INTERACTIVE WEBFORMS (from ver 6.10 only)
24
Interactive Webforms
25
Sources of Information
26
Questions/Comments
27