You are on page 1of 18

2/12/2016

AllAboutSmartForms

All About Smart Forms

SAP Smart Forms is used to create and maint


printing in SAP Systems.As output medium SA
support a printer, a fax, e-mail, or the Interne
generated XML output).

SAP introduced SmartForms in 1998 to overc


in SAP Scripts. SmartForms are easier to deve
transport than SAP Script.

Hotel Bookings #goKarde

Smart Forms and SapScripts Comp

Multiple page formats are possible in SmartForms which is not the case in SAPScripts
It is possible to have a SmartForm without a main window.
Routines can be written in SmartForms tool.
SmartForms generates a function module when activated.
Labels cannot be created in SmartForms.

Advanatges of Smart Forms

They help adapting forms without any programming knowledge due to entirely graphic
When activating the smart form the system automatically generates the function modu
.
To make any changes we have to use the Drag & Drop, Cut & Paste. These actions do no
coding lines or using a script language.
We can insert static and dynamic tables. These include the line feeds in the individual ta
events for table headings and subtotals and sorting data before output.
The smart forms allow the user to include graphics, which can be displayed as a part of
background graphics. During printout the user can suppress the background graphic as
Web Publishing is possible using the generated XML output

Architecture of SAP Smart Form

http://www.guru99.com/smartforms.html

1/18

2/12/2016

AllAboutSmartForms

Smartforms Guide
Lets go through it in SAP system1. Enter transaction SMARTFORMS in the transaction code box.
2. In the next screen , enter a from name and click create

The next screen is divided into three sections-

http://www.guru99.com/smartforms.html

2/18

2/12/2016

AllAboutSmartForms

Navigation window consist of nodes and sub nodes. They contain all the elements (text, w
belong to sap forms
Maintenance window shows attributes of the elements
Form printer window shows the layout of the page

Whenever we create smart forms, SAP creates/generates a function module.Unlike SAPscr


allow you to change language.
In the navigation window you will find

Global Data Declarations : The Data defined here can be used throughout the smartform
purposes.

Form Interface : Here all the data which will be passed to the smartform from the Print p

http://www.guru99.com/smartforms.html

3/18

2/12/2016

AllAboutSmartForms

Right-Clicking on the Pages will allow creation of New Page, Window, Graphic or Address.

Printing will take place on the basis of 'next page' field.


But processing will happen as per the sequence in navigation window!

http://www.guru99.com/smartforms.html

4/18

2/12/2016

AllAboutSmartForms

For background picture and graphics you can pick up either black and white or color bitma
stored in the form of standard texts. You may take a detour from the smartform screen an
Graphics screen. Transaction code: Se78

Setting in the Graphics in Smart Form Window-

http://www.guru99.com/smartforms.html

5/18

2/12/2016

AllAboutSmartForms

Windows in Smart Forms

There are two types of Windows


1. Main
2. Secondary
Important Points to Note

http://www.guru99.com/smartforms.html

6/18

2/12/2016

AllAboutSmartForms

You cannot have more than 1 main window in a page. You can have multiple secondary
Whatever you print in secondary window...it has to be static. (If u have 20 lines in a PO
constraint the lines get carried forward to next page in the main window. i.e. In a prede
type of content, they will be printed in sequence in main window. This is not allowed in

Inside the main window we can add text as introduction to customize the form output.

http://www.guru99.com/smartforms.html

7/18

2/12/2016

AllAboutSmartForms

The Output options on each window determine the Line size, Width, Colors and backgroun

Smartforms gives the option of giving the address number which is maintained in
management. The address will be directly taken from ADRC table and will be populated in

The two different editors are available in Smartforms viz. Normal Editor

http://www.guru99.com/smartforms.html

8/18

2/12/2016

AllAboutSmartForms

and the Graphics Editor.

This setting can be changed using the Configure editor in Utilities.

In Table painter, you can draw the format as per client requirement (e.g. Heading, Sub Hea
Total, Grand Total etc.)
You can use the table layout to determine:
http://www.guru99.com/smartforms.html

9/18

2/12/2016

AllAboutSmartForms

The number of lines and cells


The height of each line
The width of each cell
The alignment of the table in the window

The Table shows the different line types which will be used in the table. The Line types def
cell and the number of cells in each line.

Smart Forms Programming Flow


http://www.guru99.com/smartforms.html

10/18

2/12/2016

AllAboutSmartForms

When an SAP Smart Form template is created, a user creates the form layout, defines the
conditions, and special programming instructions in the Smart Form template using the Sm

After the form design is complete, the form needs to be activated before it can be tested o
print programs.Activating the form initiates the generation of a function module that hand
processing.

This function module interacts with the application program/print program to create the o
defined output media for the specified device.

In case of smart forms, we use 2 function modules for the processing of the smart form. T
module , we pass the name of the smart form as the import parameter. This then returns
dynamically generated function module which will actually call the smartform.

The smartform name can be passed on to the function Module - 'SSF_FUNCTION_MODUL

This will return the Function module name of the smartform which is referenced.

http://www.guru99.com/smartforms.html

11/18

2/12/2016

AllAboutSmartForms

The Print program will be calling the FM 'SSF_FUNCTION_MODULE_NAME' to get the Fun
at Runtime. Therafter it will call the Function module thus obtained to execute the smartfo

Templates

Template can be used when you know the exact size of the output or the output is in a fix
E.g. Tax form/ cheques /airline form/railway ticket: all these use templates.
The big between table and template is that in a Table the height changes dynamically.We
template.
http://www.guru99.com/smartforms.html

12/18

2/12/2016

AllAboutSmartForms

SMART Styles
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
Character formats including effects (superscript, subscript), barcode and font attributes
Colors and underlines for a paragraph or character format
You can use the transaction 'smartforms' / 'smartstyles' to create a smart style.

http://www.guru99.com/smartforms.html

13/18

2/12/2016

AllAboutSmartForms

That's all to this tutorial

You Might Like


Microsoft Certified Solutions Associate (MCSA) Exam
Ethical and Social issue in Information system security
Types of Information System - Pyramid Diagram, TPS, DSS, OLAP
Business Information Technology

Prev

Sponsored

1.
13DIYHouseholdProductsThatCouldSaveYouBundles6monthsago
HuffingtonPostHuffingtonPost.com(AOL)TheHuffingtonPostNewsTeamTheHuffingtonPostNewsT
PopularonHuffPost

2.
10WeirdestFestivalsYou
monthsagohappylifestylejournal.comHappyLifestyleJournalHappyLifestyleJournal.com(sponsored)

http://www.guru99.com/smartforms.html

14/18

2/12/2016

AllAboutSmartForms

0Comments

Guru99

Share

Recommend 1

Startthediscussion

Bethefirsttocomment.

Subscribe

AddDisqustoyoursiteAddDisqusAdd

About

Contact Us

About us
Advertise with Us
Jobs

Contact us
FAQ
Write For Us

Privacy

Android App

Certifica

ISTQB Ce
MySQL Ce
QTP Certi
Testing C

Copyright - Guru99 2016

http://www.guru99.com/smartforms.html

15/18

2/12/2016

http://www.guru99.com/smartforms.html

AllAboutSmartForms

16/18

2/12/2016

http://www.guru99.com/smartforms.html

AllAboutSmartForms

17/18

2/12/2016

http://www.guru99.com/smartforms.html

AllAboutSmartForms

18/18

You might also like