SAP Scripts: Author Banda Sindhu
SAP Scripts: Author Banda Sindhu
SAP Scripts
Author
Banda Sindhu
Table of Contents
INTRODUCTION:
SAP Script is a tool which is used to printable business documents in SAP like invoice form, Sales Order
form, Delivery form and other form related to HR etc.
Scripts are older version of SAP print forms, advanced version to scripts are smartforms( we will learn in
next chapters ).
SAP Scripts are client dependent, that is if we develop a script in client 200, it will not be visible in other
clients like 300, 100.
Advanced version of scripts, smartforms are client independent, they will be visible in all clients.
Texts are nothing but a data, as per SAP all data is client dependent, so SAP Scripts are client
dependent.
Header:
It contains header information of SAP Script i:e administrative data and basic settings of SAP script.
Administrative Data: It contains administrative data like package, client, user and language.
Basic Settings: It contains settings like page format, first page, default paragraph etc.
Pages:
A window is a container which contains some information to display, the entire page is designed using
windows.
Main window:
A Window which automatically expands depending upon the data is called main window.
As there are 99 pages only in scripts, we can have maximum 99 main windows only The main Window
data is divided into blocks called as text elements.
Text Element:
The entire main Window data is divided into blocks called as text elements.
Now,Display a particular text element, so that only that specific info related to text element is displayed.
Constant Window:
A Window which is constant for all the pages is called constant Window.
Variable Window:
A Window which does not expand i.e., width and height is fixed .
Graphical Window:
Page windows:
Paragraph format :
It is used to specify a particular format (font size/family/Bold/italic/underlined) for all the characters in a
paragraph.
Tabs: Tabs are used to specify a position in sap script so that the text will be displayed at that particular
position.
Tabs are represented by ,, (2 commas).
Character format:
A format which is used by a group of characters inside a paragraph is called a character format.
Layout:
OPEN_FORM
WRITE_FORM
It is used to write Some information on the SAP Script form using Text Element.
CLOSE_FORM
START_FORM
It is used to call another SAP Script into current SAP Script(Nested Scripts).
END_FORM
Driver Program:
A program which contains business logic statements i.e., all select statements, loops, appends etc., is
called Driver program.
All the variables, work areas, internal tables which are declared in the driver program will be automatically
transferred to SAP Scripts.
If we want to display the variables or work area values we need to follow below syntax.
Syntax : &variable&
&workarea-fname&