Smartform

Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

Smartforms

1
Objectives

• SAP Smart Forms create and maintain forms for mass


printing in SAP Systems.

• As output medium SAP Smart Forms support a printer,


a fax, e-mail, or the Internet.

2
Advantages

•Creating and maintaining forms with a faster speed.

•Adapting forms without any programming knowledge


due to its entirely graphical user interface.

•Web Publishing using the generated XML output.

3
Features

• SAP SmartForms allow you to execute simple modifications


to the form and in the form logic by using simple graphical
tools.

• In 90% of all cases, this won't include any programming


effort.

4
Features

• Data retrieval and form logic are separate.

• Data retrieval is being done by an application program.

• The form logic is represented by a hierarchical structure.

• For Web publishing, the system provides a generated XML


output of the processed form.

5
Features
Structure of the Form

• Pages
• Output areas
• Addresses
• Graphics

6
Pages of a Form

On the pages of a form you determine:

• The page layout.


• The sequence of pages with different structures.
• Windows can also be embedded in the pages.

7
Windows of a form
Types of windows

Main Window
•Main window can display text and data covering several pages .

•This is mandatory and the number is only one per page.

Sub Window
•Sub window can display text and data in a predetermined output
area.

•This is not mandatory and can be placed as per the need.

8
Architecture

Smart Form

Application Activate
Output
Program ABAP Function (Printer)
Module
(generated)

DB Selection
Later Selection
Database Form
Output
Description
Data Retrieval Function
Module Call

9
Style builder

• Transaction Code is Smartstyles .


• We can define user defined paragraph format and character
format in a particular smartstyle.
• Those smartstyles are defined in the form at various places for
different paragraph and character style.

10
Tools in smart forms

• Form Painter
• Table Painter
• PC Editor
• Navigation Tree

11
Form Painter

Used to

• Design the graphical layout of the smart form.


• Create and change the size of the windows.
• Add graphical images.

12
Table Painter

Used to
Draw rows and columns.
• Insert, cut, copy and delete lines.
• Delete cells.
• Split cells.
• Select table patterns.

13
PC Editor

Used to

• Insert fields (parameter) into text elements in a window,


page, cells in a table line etc.

14
Nodes in Smart form
• Page
• Window
• Address
• Graphic
• Text
• Template

15
Nodes in Smart form
• Table
• Table line
Flow logic
• Alternatives
• Loops
• Program lines
• Command
• Folder

16
Nodal Flow

17
EXAMPLE

18
Table whose data are used in the smartform

ZEMPLOYEE TABLE

19
TCODE :SMARTFORMS

20
Define Form Interface

21
Global definition

22
Creation of first page

23
Insertion of graphical Logo

24
Logo definition

25
Putting text in Text Editor

26
Putting Data Into Table

27
Creation of Rows & Columns

28
Definition of table line

29
Addition of field
(parameter)

30
Getting the name of Function Module.

31
Print Program
REPORT ZEMPLOYEE .

TABLES ZEMPLOYEE.

DATA: P_FORM TYPE TDSFNAME VALUE zemployee ,


FM_NAME TYPE RS38L_FNAM.

DATA BEGIN OF AP_ITAB_E OCCURS 0.


INCLUDE STRUCTURE ZEMPLOYEE.
DATA END OF AP_ITAB_E.

SELECT * FROM ZEMPLOYEE INTO TABLE AP_ITAB_E.

32
Print Program

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'


EXPORTING
FORMNAME = P_FORM
IMPORTING
FM_NAME = FM_NAME.

CALL FUNCTION FM_NAME


TABLES
FORM_ITAB_E = AP_ITAB_E.

33
Final Output of Program

34

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy