You are on page 1of 28

IBM Global Services

2005 IBM Corporation SAPScript Forms | 9.02 March-2005


SAPScript Forms
IBM Global Services
2005 IBM Corporation 2 March-2005 SAPScript Forms | 9.02
Objectives
The participants will :
Recognize SAPScript Forms
Classify different components of a SAPScript form like Header, Paragraph formats,
Windows, Page Windows, Pages, Character formats etc.
Apply the Graphical Form Painter.
Employ the SAPScript Editor.
IBM Global Services
2005 IBM Corporation 3 March-2005 SAPScript Forms | 9.02
Some facts about SAPScript Forms
Client specific (client-dependent)
Language specific
Can be translated using the standard SAP translation tools
Note: If the SAPScript form is not available in the client in which the document is
being printed, then the SAPScript checks for the style or layout set in client 000.
Recommendation: Keep only one copy of the SAPScript form in client 000.

IBM Global Services
2005 IBM Corporation 4 March-2005 SAPScript Forms | 9.02
Transaction SE71
To create a new SAP Script form or
change/display an existing SAP
Script form or to copy a standard
SAP Script Form, transaction
SE71 is used.

To create a new SAPScript Form or to
change/display an existing SAPScript
Form or to copy a standard SAPScript
Form, transaction SE71 is used.
Copy from client
IBM Global Services
2005 IBM Corporation 5 March-2005 SAPScript Forms | 9.02
Transaction SE71 (Contd.)
To create a new SAP Script form or
change/display an existing SAP
Script form or to copy a standard
SAP Script Form, transaction
SE71 is used.

To create a new SAPScript Form or to
change/display an existing SAPScript
Form or to copy a standard SAPScript
Form, transaction SE71 is used.
Copy from client
IBM Global Services
2005 IBM Corporation 6 March-2005 SAPScript Forms | 9.02

Header Screen - Administrative Data
Administrative data:
Under Administrative data,
Administration information and
language attributes are
displayed. Under
Administration information,
form name, description, form
status (Active/ Inactive),
Package name, client no,
creation date, created by, last
change date, last changed by
etc are displayed.
Under Language attributes,
login language , original
language and language
translation options are
displayed.
IBM Global Services
2005 IBM Corporation 7 March-2005 SAPScript Forms | 9.02
Header Screen - Basic settings
Basic settings:
Under Setup page options,
page format(A4 etc.),
Orientation, (Line/inch,
Characters/inch) and First
Page are displayed. The
Lines/inch & Character/inch
properties are not usually
altered. Under Default values
for Text formatting options
default paragraph ,default
tab size, default font family,
default font size, etc are
displayed.
IBM Global Services
2005 IBM Corporation 8 March-2005 SAPScript Forms | 9.02
Pages
This screen shows the details
of all the pages in the form.
The form will always have a
first page and may have a
next page.
The Mode is for the page
numbering mode of the form.
This can be set to any one of
INC,START,HOLD.
The Numbering type
determines the numbering
style for the outline and page
numbers.
IBM Global Services
2005 IBM Corporation 9 March-2005 SAPScript Forms | 9.02
Pages (Contd.)
This screen shows the details
of all the pages in the form.
The form will always have a
first page and may have a
next page.
The Mode is for the page
numbering mode of the form.
This can be set to any one of
INC,START,HOLD.
The Numbering type
determines the numbering
style for the outline and page
numbers.
IBM Global Services
2005 IBM Corporation 10 March-2005 SAPScript Forms | 9.02
Pages (Contd.)
This screen shows the details
of all the pages in the form.
The form will always have a
first page and may have a
next page.
The Mode is for the page
numbering mode of the form.
This can be set to any one of
INC,START,HOLD.
The Numbering type
determines the numbering
style for the outline and page
numbers.
IBM Global Services
2005 IBM Corporation 11 March-2005 SAPScript Forms | 9.02
Windows
This screen displays all the
windows that are used in the
form.
Each section of the SAPScript
form is written in a window.
Window types are
MAIN,VAR,CONST,GRAPH.
All forms will have a MAIN
window.If all the data does
not fit into one page, printing
will continue on the MAIN
window of the next page.
IBM Global Services
2005 IBM Corporation 12 March-2005 SAPScript Forms | 9.02
Paragraphs - Standard Attributes
Contains all necessary
information needed to format a
paragraph of text.
The first column in this screen
displays the code for the
paragraphs.
The second column displays
the descriptions.
The third column displays the
alignments.
The fourth and fifth column
displays the Left and Right
margin.
Details can be changed at the
bottom of the screen.
IBM Global Services
2005 IBM Corporation 13 March-2005 SAPScript Forms | 9.02
Paragraphs - Standard Attributes (Contd.)
Contains all necessary
information needed to format a
paragraph of text.
The first column in this screen
displays the code for the
paragraphs.
The second column displays
the descriptions.
The third column displays the
alignments.
The fourth and fifth column
displays the Left and Right
margin.
Details can be changed at the
bottom of the screen.
IBM Global Services
2005 IBM Corporation 14 March-2005 SAPScript Forms | 9.02
Paragraphs - Font Attributes
Clicking on the Font button
at the bottom right of the page
will bring this screen.
The Font Attributes part
enables one to choose the
font and size of the
paragraph.
One can also make the font
bold, italic or underlined.
If no font is specified , then
the default font from the
layout set header will be
used.
IBM Global Services
2005 IBM Corporation 15 March-2005 SAPScript Forms | 9.02
Paragraphs - Tabs
Clicking on the Tabs button
at the bottom right of the
page will bring this screen.
The tabs section is very
useful while outputting a table
on the document.
Specifying a list of tabs is the
way to create columns for
outputting line items of a
document.
Tabs can be entered as MM ,
CM , CH etc. and can also be
LEFT , RIGHT , CENTER,
DECIMAL, SIGN aligned.
IBM Global Services
2005 IBM Corporation 16 March-2005 SAPScript Forms | 9.02
Paragraphs - Online Attributes
Clicking on the Outline
button at the bottom right of
the page will bring this
screen.
The Outline field is used to
determine the hierarchy of the
paragraph format.
In the Outline level field,
enter the level of the
hierarchy that you want the
paragraph format to be of.

IBM Global Services
2005 IBM Corporation 17 March-2005 SAPScript Forms | 9.02
Character Formats - Standard Attributes
A default character style is
specified at the paragraph
level.
Can be used within
paragraph to override the
default settings for a few
words within the paragraph.
IBM Global Services
2005 IBM Corporation 18 March-2005 SAPScript Forms | 9.02
Character Formats - Font Attributes
Clicking on the Font button
will bring this screen.
Here one can enter the Font
Family, Font Size, and
characteristics such as bold,
underlined etc.
If the Family and Font size
fields are left blank then the
character format takes the
characteristic of the
paragraph font that the
text/code is written in.
IBM Global Services
2005 IBM Corporation 19 March-2005 SAPScript Forms | 9.02
Page Windows
List of all the windows for a
particular page with
coordinates.
The coordinates are given by
the upper left-hand corner and
the width and length.
A window which should appear
on a page must first be defined
under Windows and then be
added to the page windows.
To see the windows defined for
the next page, select the
appropriate page and click the
Enter button.
IBM Global Services
2005 IBM Corporation 20 March-2005 SAPScript Forms | 9.02
Graphical Form Painter
Use the menu path Settings -
> Form painter to get the
graphical form painter.
This will display a page of the
form with the windows laid
out.
When a particular window is
selected, it becomes active in
the graphical editor. Then it is
possible to drag and drop the
window or drag the window
into the desired shape.
IBM Global Services
2005 IBM Corporation 21 March-2005 SAPScript Forms | 9.02
Adding code to the windows
To add code to a window
double click on the window in
the page window section.Then
click on the Text Elements
button or click F9.
There are two editors. Use the
menu path Goto -> Change
editor to change between
them. The second editor is
shown here.
A window can contain hard-
coded texts and the variables
to be printed in the window.
IBM Global Services
2005 IBM Corporation 22 March-2005 SAPScript Forms | 9.02
Adding code to the windows (Contd.)
Tag column: Specifies format
of the text
Text line column: Contains the
actual content of the window.
Standard Tags
* Default paragraph
/: Command line
/* Comment line
/E Text element
IBM Global Services
2005 IBM Corporation 23 March-2005 SAPScript Forms | 9.02
SAP Script Utilities - Upload/Download
SAP Scripts are client-dependent objects. Hence, they may often require to be
downloaded from or uploaded to SAP system. Following programs can be used to
download from or upload to the SAP System
RSTXR3TR To EXPORT/IMPORT a layout set (FORM) using a Transport Request
(CTS)
RSTXSCRP To EXPORT/IMPORT a layout set (FORM), Style, Standard Text or
Device Type without using a Transport Request

IBM Global Services
2005 IBM Corporation 24 March-2005 SAPScript Forms | 9.02
SAP Script Utilities - Assignment of Standard text to CTS
Creation of a SAP Script Standard Text does not require a CTS
Standard Text can be assigned to a CTS using program RSTXTRAN

IBM Global Services
2005 IBM Corporation 25 March-2005 SAPScript Forms | 9.02
Demonstration
Creating a SAPScript using transaction SE71 to print a form containing flight
booking confirmation for a customer.
Creating 4 windows the layout set in a single page:
MAIN Window ( Containing Flight Booking Details )
Address Window ( Containing address of the customer )
Header Window ( Containing the date and the logo of the concerned airline )
Signature Window ( Containing the name of the flight booking officer )
Testing the Form using the menu path Utilities -> Printing Test in transaction
SE71.
IBM Global Services
2005 IBM Corporation 26 March-2005 SAPScript Forms | 9.02
Practice
Creating a SAPScript using transaction SE71 to print a form containing flight
booking confirmation for a customer.
Creating 4 windows the layout set in a single page:
MAIN Window ( Containing Flight Booking Details )
Address Window ( Containing address of the customer )
Header Window ( Containing the date and the logo of the concerned airline )
Signature Window ( Containing the name of the flight booking officer )
Testing the Form using the menu path Utilities -> Printing Test in transaction
SE71.
IBM Global Services
2005 IBM Corporation 27 March-2005 SAPScript Forms | 9.02
Summary
SAPScripts are client-dependant, language specific and can be translated using
the standard SAP translation tools.
Custom SAPScripts can be created using transaction SE71. The name of the
custom form starts with a Y or Z.
A form can consist of multiple pages and a page can consist of multiple windows.
There are four types of windows : MAIN, VAR, CONST and GRAPH.
Paragraphs contain all necessary information needed to format a paragraph of
text. This is where all the text styles are determined.
Character formats contain all necessary information needed to format a string of
characters within a paragraph.
Page Windows contain a list of all the windows for a particular page with
coordinates.
Code can be added to the windows to display content dynamically in the form.
Programs RSTXR3TR and RSTXSCRP are used to upload or download
SAPScripts to or from the SAP system.

IBM Global Services
2005 IBM Corporation 28 March-2005 SAPScript Forms | 9.02
Questions
Are SAPScripts client-dependent or client independent ?
What are the different window types in a layout set ?
Where are text styles determined in a form ?
What is the menu path to start the graphical form painter ?
What program is used to export/import a layout set using a transport request ?
What program is used to export/import a layout set without using a transport
request ?
How can standard text created in the SAP R/3 system be assigned to a CTS ?

You might also like