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

24/8/2016 SAP 

Smartforms ­ Smartforms | Sapnuts.com

You are here → »  Sapnuts.com (/) »  Courses (/courses/) »  SAP ABAP (/courses/core-abap.html)
»  Smartforms (/courses/core-abap/smartforms.html) »  SAP Smartforms (/courses/core-abap/smartforms/sap-smartforms.html)

SAP Smartforms
Last Updated: April 18th 2015 by Ashok Kumar Reddy (/user/ashokkumarreddy-1.html)

Smartforms in SAP, introduction to SAP smartforms

+ -
Smartform

Smart form is a GUI Tool which is used to design the business legal documents such as Delivery note,Purchase
order,Invoice etc.
The transaction code is SMARTFORMS.
Smartforms are client independent objects.
Smartforms are advanced version of SAP Scripts.
It is a GUI tool and it is user friendly.

Smartform architecture:

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 1/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

Smatrtforms and SAP Scripts differences .

Smartforms SAP Scripts

Smartforms are client independent. SAP Scripts are client


dependent.

Main window is not compulsory. Main window is


compulsory.

Smartforms generates a Function module when activated. No Function Module will


be generated.

Smartforms texts supports various colors. Scripts allows black and


white colors only.

There is no transfer of control between program and form, once the control is Scripts has repeated
transfered to Function Module, it will never come back. transfer of control.

Only single page format is possible. Multiple page formats are


available.

COMPONENTS OF SMARTFORMS.
There are two main nodes in Smartforms.

1.Global Settings

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 2/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

Form Attribute.
Form Interface.
Global De nition.

2.Pages and Windows.

Global settings:
It is used to provide the basic settings for the smartform.

Form Attributes:
It speci es the general attributes like who created,Date,time, package,translate options, default smartstyle, Page
format (DINA4/DINA5).

Form interface:
It acts as a mediator between a driver program and a smart form.

The main functionality of form interface is, it will import the parameters which are exported by driver program.

The parameters can be variables, work areas, internal tables..etc.

Global de nition:
It will contain the variables to be used within the smart form.

We can de ne variables, user de ned data types, eld symbols, initialization code,Subroutine, currency/quantity
elds.

It is mainly used for declaring or de ning the above variables.

Pages and Windows


Page.
Window.
Graphic.
Address.
Text.
Table.
Header.
Body.
Footer.
Template.
Folder.
Program Lines.
Alternative.
Command.
Loop.
Pages and windows

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 3/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

This will contain all the pages and the windows, which are used in the smartform.

By default, a page will be created by name %page1.

By default, a window will be created by name 'Main' under the page1.

For each page, we need to specify the next page.


Eg: page = %page1
Next page = %page1 or %page2
Nodes under pages
Page : It is used to de ne the layout of a smartform.

We can have different pages with different layouts.

Window : it is used to display information or text at a particular place on a page.

Graphic : it is used to display logos or images on the smartforms.

Address : It is used to display the address of customer or vendor or employe, organization address , workplace
address etc.

Just provide address no, it will automatically display the address as per the country formats.
Nodes under the window
Text : it is used to display the information or text in a window.

Table : It is used to display the information in the form of table.

When ever we create table by default HEADER, MAIN AREA, FOOTER will be displayed.

The main functionality of a table is, it expands automatically depending on the internal table data.

We need to provide the name of the internal table for a table.

Template : template is also like a table which does not expand. That means it will have xed number of rows and
columns.

Program lines : it is used to write some lines of abap code.

Window Types in Smartforms


Main window: For continuous output .

Secondary window: For output with a xed length.

Final window: Special type of secondary window for outputting the information that is not known until the end of
form processing .

Copies window: Special type of secondary window for marking pages as copy or original.

Example Smartform GUI

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 4/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

Related Lessons

Learner Questions

No Questions by learners, be rst one to ask ..!!

Please Sign in to ask a question (/site/signin/)

Was this lesson helpful to you? Yes No 84 People out of 88 think this lesson helpful

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 5/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

Learn SAP Courses online, SAP Certi cation mock exams and SAP tutorials

SAP ABAP Tutorials, SAP ABAP Online Training, SAP Webdynpro for ABAP, Webdynpro for ABAP tutorials, Webdynpro
for ABAP online training, SAP Work ow training, SAP Online Training, SAP Certi cation, SAP Training, SAP mock
exams, SAP Exams, SAP ERP, SAP Interview questions, SAP ABAP interview Questions

SAP ABAP Course Content

SAP Introduction (/courses/core-abap/sap-intro.html)

SAP ABAP Consultant  (/courses/core-abap/sap-abap-consultants.html)

System Landscape and Introduction to ABAP/4 (/courses/core-abap/system-landscape.html)

Data Dictionary (/courses/core-abap/data-dictionary.html)

Internal Tables and Work Areas (/courses/core-abap/internal-table-work-area.html)

Select Statements types (/courses/core-abap/select-statements.html)

Selection Screen Design using SAP ABAP (/courses/core-abap/selection-screen.html)

Modularization techniques in SAP ABAP (/courses/core-abap/modularization-in-abap.html)

Classical Reports in SAP ABAP (/courses/core-abap/classical-reports.html)

Interactive Reporting in SAP ABAP (/courses/core-abap/interactive-reports.html)

Menu painter in SAP (/courses/core-abap/menu-screen-painter.html)

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 6/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

ALV Reports (/courses/core-abap/alv-reports.html)

Sapscripts (/courses/core-abap/sapscripts.html)

Smartforms (/courses/core-abap/smartforms.html)

Batch Data Communication (/courses/core-abap/bdc.html)

Open SQL Statements in SAP ABAP (/courses/core-abap/open-sql.html)

SAP memory and ABAP memory (/courses/core-abap/SAP-abap-memory.html)

Performance Tuning in SAP ABAP (/courses/core-abap/performce-tuning.html)

Control break statements in sap abap (/courses/core-abap/control-break-statements.html)

Enhancements in SAP  (/courses/core-abap/sap-enhcements.html)

BADI in SAP (/courses/core-abap/badi-sap.html)

SD and MM ows in SAP (/courses/core-abap/sd-mm.html)

Dialog Module Pool Programming (/courses/core-abap/module-pool.html)

String Operations and eld symbols (/courses/core-abap/strg-operations.html)

SAP ABAP real-time scenarios (/courses/core-abap/sap-abap-real-time.html)

MM Basics for ABAP Consultants (/courses/core-abap/sap-mm.html)

SD Basics for ABAP Consultants (/courses/core-abap/sd-basics-for.html)

Lesson Navigation
Sapscripts (/courses/core-abap/sapscripts.html)← Previous Lesson
Next Chapter → Simple Smartform to Display Text (/courses/core-abap/smartforms/simple-smartform-text.html)

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 7/8
24/8/2016 SAP Smartforms ­ Smartforms | Sapnuts.com

© 2016 SAPNuts.com · Contribute (/data/) · Terms (/site/terms/) · About (/site/about/) · Contact (/site/contact/) · 
Feedback Facebook (http://www.facebook.com/sapnuts) Twitter (https://twitter.com/sapnuts) Google
(https://plus.google.com/+Sapnuts/)

https://www.sapnuts.com/courses/core­abap/smartforms/sap­smartforms.html 8/8

You might also like