Smart Forms I

Embed Size (px)

Citation preview

  • 7/29/2019 Smart Forms I

    1/34

    SmartForms - I

  • 7/29/2019 Smart Forms I

    2/34

    2

    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

    2

    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.

    What is Smart Form ?

  • 7/29/2019 Smart Forms I

    3/34

    33

    Architecture of Smart Form

  • 7/29/2019 Smart Forms I

    4/34

    4

    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

  • 7/29/2019 Smart Forms I

    5/34

    5

    Smart Forms Transaction smartforms

  • 7/29/2019 Smart Forms I

    6/34

    66

    Form Builder Components

    Navigation Tree Maintenance

    ScreenForm Painter

    Global Settings

    Pages and Windows

  • 7/29/2019 Smart Forms I

    7/34

    77

    Navigation Tree Maintenance

    ScreenForm Painter

    Form Builder Components (Contd.)

  • 7/29/2019 Smart Forms I

    8/34

    88

    Form Builder Components (Contd.)

    The tree structure of the root nodePages and windows:

    Global Settings

    Pages and Windows

  • 7/29/2019 Smart Forms I

    9/34

    9

    Graphical Form Painter - Overview

  • 7/29/2019 Smart Forms I

    10/34

    10

    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

  • 7/29/2019 Smart Forms I

    11/34

    11

    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

    Style Builder

  • 7/29/2019 Smart Forms I

    12/34

    12

    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

  • 7/29/2019 Smart Forms I

    13/34

    1313

    Style Builder (Contd.) : Header data

    Header Data

    Standard Settings

    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

  • 7/29/2019 Smart Forms I

    14/34

    1414

    Style Builder (Contd.) : Header data

    Administration Settings

  • 7/29/2019 Smart Forms I

    15/34

    15

    Creating Paragraph and Character formats

    Paragraph Format

    1. In change mode of the Smart Style, select the node Paragraph formatand choose

    Create.

    2. In the Paragraph formatfield enter a two-character paragraph key.

    3. Select the desired attributes on the individual tabs.

    4. ChooseActivate.

    Character Format

    1. In change mode of the Smart Style select the Character formats node and choose

    Create.

    2. In the Character formatfield enter a two-character character key.

    3. Select the desired attributes on the individual tab pages.

    4. ChooseActivate.

  • 7/29/2019 Smart Forms I

    16/34

    1616

    Style Builder (Contd.) : Paragraph format

    Paragraph Formats

    Indents and Spacing

    l ild ( d ) h f

  • 7/29/2019 Smart Forms I

    17/34

    1717

    Style Builder (Contd.) : Paragraph format

    Fonts

    Paragraph Format (Font):

    This tab page contains the font family, font size, font style (Bold/ Italic) and the attributes

    underlined and color.

    S l B ild (C d ) P h f

  • 7/29/2019 Smart Forms I

    18/34

    1818

    Style Builder (Contd.) : Paragraph format

    Tabs

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

    St l B ild (C td ) P h f t

  • 7/29/2019 Smart Forms I

    19/34

    1919

    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 foreach outline level.

    St l B ild (C td ) Ch t f t

  • 7/29/2019 Smart Forms I

    20/34

    2020

    Style Builder (Contd.) : Character format

    Character Formats

    Standard Settings

    Font

    St l B ild (C td ) U l d / D l d St l

  • 7/29/2019 Smart Forms I

    21/34

    2121

    Upload Style

    Download Style

    Style Builder (Contd.) : Upload / Download Style

    Gl b l S tti F Att ib t

  • 7/29/2019 Smart Forms I

    22/34

    2222

    General

    Attributes

    Global Settings: Form Attributes

    General Attributes Created by/date/time Changed by/date/time Development class/language

    Gl b l S tti F Att ib t (C td )

  • 7/29/2019 Smart Forms I

    23/34

    2323

    Output Options

    Global Settings: Form Attributes (Contd.)

    Output options

    Page format, Chars per inch, lines per inch, Style

    XSF output (XML output)

    Global Settings Form Interface

  • 7/29/2019 Smart Forms I

    24/34

    24

    Global Settings: Form Interface

    Standard Import parameter

    Data passed from ABAP program -> function module -> Smart form using these

    Import, Export, Tables, Exceptions parameters

    Global Settings Form Interface (Contd )

  • 7/29/2019 Smart Forms I

    25/34

    2525

    Standard Export parameter

    Global Settings: Form Interface (Contd.)

    Global Settings: Form Interface (Contd )

  • 7/29/2019 Smart Forms I

    26/34

    2626

    Tables passed

    from Print

    program

    Global Settings: Form Interface (Contd.)

    Global Settings: Form Interface (Contd )

  • 7/29/2019 Smart Forms I

    27/34

    2727

    Exception

    Global Settings: Form Interface (Contd.)

    Global Settings: Global definitions

  • 7/29/2019 Smart Forms I

    28/34

    2828

    Global data

    Global Settings: Global definitions

    Global Settings: Global definition (Contd )

  • 7/29/2019 Smart Forms I

    29/34

    2929

    Types

    Global Settings: Global definition (Contd.)

    Global Data/Routine declaration for the form logic

    Global data, Types, Field symbols, Initialization, Form routines

    Global Settings: Global definition (Contd )

  • 7/29/2019 Smart Forms I

    30/34

    3030

    Field Symbols

    Global Settings: Global definition (Contd.)

    Global Settings: Global definition (Contd )

  • 7/29/2019 Smart Forms I

    31/34

    3131

    Initialization

    Global Settings: Global definition (Contd.)

    Global Settings: Global definition (Contd )

  • 7/29/2019 Smart Forms I

    32/34

    3232

    Sub routines

    Global Settings: Global definition (Contd.)

    Global Settings: Global definition (Contd )

  • 7/29/2019 Smart Forms I

    33/34

    3333

    Currency/Quantity

    fields

    Global Settings: Global definition (Contd.)

  • 7/29/2019 Smart Forms I

    34/34

    Thank You!