|
New Page 1
|

SAPscript Tutorial
- Commands -
Page 6 of 9
The commands that are commonly used in a sap script are as
follows -:
|
Command |
Use |
| New-page <page name> |
Prints the text
following this command on a new page (when a page name is
specified then that page is taken as the next page) |
| Protect …..
Endprotect |
This acts like a
conditional page break. Putting the text within this command
prevents the breaking of the text across multiple pages. If
there is not enough space for the entire paragraph to be printed
in the space remaining on the page, then the entire paragraph is
printed on the next page |
| Box <xpos> <ypos>
<width> <height> <frame> <intensity> Position <xorigin> <yorigin>
<window> <page>
Size <width> <height> <window> <page> |
The BOX command
draws a box as per the specifications. The x y co-ordinates are
for the upper left corner relative to the values in the position
command. POSITION command is used to set the x y co-ordinates
with respect to the start position of the window.
SIZE command is used to specify the size of the box that we
need to draw.
Varying these parameters also helps to draw a line instead of
a box. |
| IF ….. END IF |
This allows the
conditional printing of the text on the output document. The
various conditional operators that can be used are as follows
= EQ Equal to
< LT Less than
> GT Greater than
<= LE Less than or equal to
>= GE greater than or equal to
<> NE not equal to
The logical operators that can be used are as follows
NOT, AND, OR |


|
New Page 1
|