SmartForms - I
What is Smart Form ?
Smart Forms are a new generation graphical user interface (GUI) tool to create & maintain Forms for mass printing in minimum time. Supports a printer, a fax, e-mail, or the Internet (XML) as output medium A development over the earlier print technique SAP Scripts Transaction > SMARTFORMS Menu path -> SAP menu->Tools->Form Printout->Smart Forms
Note : The SAP Smart Forms replace the SAP Script forms. SAP Script forms will also be supported in the future; you can use them without making any changes for years to come. You can use SAP Script texts in the Smart Forms. Migration of SAP Script forms into Smart Forms is supported.
Architecture of Smart Form
Smart Forms - Features
Simple modifications without any programming knowledge
Data retrieval and form logic separated ABAP program implements data retrieval Smart Form implements form logic Smart Form generates a function module upon activation Data retrieval program passes data through function module parameters Graphical Design tools Graphical Form Painter - Represents form logic in a tree structure Graphical Table Painter - Static and dynamic tables - Sorting, headings, subtotals XML output used for Web Client independent Graphics can be included as background/on any part of the form
Smart Forms Transaction smartforms
Form Builder Components
Global Settings Pages and Windows
Navigation Tree
Maintenance Screen
Form Painter
Form Builder Components (Contd.)
Navigation Tree
Maintenance Screen
Form Painter
Form Builder Components (Contd.)
The tree structure of the root node
Pages and windows: Global Settings Pages and Windows
Graphical Form Painter - Overview
Graphical Form Painter - Design Area
Design support Two-level grid Window position Cursor position with gridlines Autozooming Background display Changing windows Drag & drop Snap to grid Autoscrolling Context menu
10
Style Builder
Style Builder is used to maintain Smart Styles where we define character formats and paragraph formats for use across Smart Forms. These are not explicitly defined in the Smart Form; the Smart Style in which required Formats are defined is referred to in the Smart form. Transaction-> SMARTSTYLES or From the initial screen of transaction SMARTFORMS
11
Transaction SmartStyles
Creating smartstyles: Choose transaction SMARTSTYLES. The initial Smart Styles screen appears. Enter the style name. To create a Smart Style choose Create.
A Smart Style contains: Header data containing the default values of a Smart Style Paragraph formats including indents and spacing, font attributes, tabs, and outline and numbering Character formats including effects (superscript, subscript), barcode and font attributes Colors and underlines for a paragraph or character format Preview
12
Style Builder (Contd.) : Header data
You must define these values in the header data (Standard Settings): Standard paragraph Default tab stops Characters per inch/ Lines per inch Font family and font size
Header Data Standard Settings
13
Style Builder (Contd.) : Header data
Administration Settings
14
Creating Paragraph and Character formats
Paragraph Format 1. In change mode of the Smart Style, select the node Paragraph format and choose Create. 2. In the Paragraph format field enter a two-character paragraph key. 3. Select the desired attributes on the individual tabs. 4. Choose Activate.
Character Format 1. In change mode of the Smart Style select the Character formats node and choose Create. 2. In the Character format field enter a two-character character key. 3. Select the desired attributes on the individual tab pages. 4. Choose Activate.
15
Style Builder (Contd.) : Paragraph format
Paragraph Formats Indents and Spacing
16
Style Builder (Contd.) : Paragraph format
Paragraph Format (Font): This tab page contains the font family, font size, font style (Bold/ Italic) and the attributes underlined and color.
Fonts
17
Style Builder (Contd.) : Paragraph format
Paragraph Format (Tabs): In this tab page any number of tabs can be define for each paragraph format. Five different alignments are possible (Left, Right, Centered, Decimal, Right (with leading sign)).
Tabs
18
Style Builder (Contd.) : Paragraph format
Paragraph Format (Numbering and Outline): You can define multiple paragraph formats with reference to one another to create multilevel outlines in the subsequent output. To do so , you have to define one paragraph format for each outline level.
19
Style Builder (Contd.) : Character format
Character Formats Font Standard Settings
20
Style Builder (Contd.) : Upload / Download Style
Upload Style
Download Style
21
Global Settings: Form Attributes
General Attributes Created by/date/time Changed by/date/time Development class/language
General Attributes
22
Global Settings: Form Attributes (Contd.)
Output options Page format, Chars per inch, lines per inch, Style XSF output (XML output)
Output Options
23
Global Settings: Form Interface
Data passed from ABAP program -> function module -> Smart form using these Import, Export, Tables, Exceptions parameters
Standard Import parameter
24
Global Settings: Form Interface (Contd.)
Standard Export parameter
25 25
Global Settings: Form Interface (Contd.)
Tables passed from Print program
26 26
Global Settings: Form Interface (Contd.)
Exception
27 27
Global Settings: Global definitions
Global data
28
Global Settings: Global definition (Contd.)
Global Data/Routine declaration for the form logic Global data, Types, Field symbols, Initialization, Form routines
Types
29
Global Settings: Global definition (Contd.)
Field Symbols
30
Global Settings: Global definition (Contd.)
Initialization
31
Global Settings: Global definition (Contd.)
Sub routines
32
Global Settings: Global definition (Contd.)
Currency/ Quantity fields
33
Thank You!