2007 Jun 27 9:36 AM
2007 Jun 27 9:38 AM
Hi,
The purpose of the control commands is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified
For syntax of the control commands,go thru this link
http://help.sap.com/saphelp_40b/helpdata/en/d1/80319c454211d189710000e8322d00/content.htm
hope it helps..
sathiya Ramasmay
2007 Jun 27 9:38 AM
Hi,
The purpose of the control commands is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified
For syntax of the control commands,go thru this link
http://help.sap.com/saphelp_40b/helpdata/en/d1/80319c454211d189710000e8322d00/content.htm
hope it helps..
sathiya Ramasmay
2007 Jun 27 9:41 AM
Preeti,
Control Command Purpose:
The purpose of these is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified.
The SAPscript control commands are described in the following sections.
Syntax of Control Commands
Explicit Page Break: NEW-PAGE
Preventing Page Breaks: PROTECT
Next Main Window: NEW-WINDOW
Assigning a Value to a Text Symbol: DEFINE
Formatting Date Fields: SET DATE MASK
Formatting Time Fields: SET TIME MASK
Country-Dependent Formatting: SET COUNTRY
Position of the Leading Sign: SET SIGN
Initializing Numbered Paragraphs: RESET
Including Other Texts: INCLUDE
Changing the Style: STYLE
Formatting Addresses: ADDRESS
Setting a Header Text in the Main Window: TOP
Setting a Footer Text in the Main Window: BOTTOM
Conditional Text: IF
Finding a Match: CASE
Calling ABAP Subroutines: PERFORM
Inserting Print Controls: PRINT-CONTROL
Boxes, Lines, Shading: BOX, POSITION, SIZE
Hexadecimal Data: HEX, ENDHEX
Summing a Program Symbol: SUMMING
refer.
check this link
http://www.allsaplinks.com/Scripts_1.html
Don't forget to reward if useful
2007 Jun 27 9:42 AM
Hi,
Some Important Control Commands are,
NEW-PAGE
PROTECT ENDPROTECT
NEW-WINDOW
DEFINE
SET DATE MASK
SET TIME MASK
TOP . ENDTOP
BOTTOM . ENDBOTTOM
IF . ENDIF
Regards,
Padmam.
2007 Jun 27 9:42 AM
Hi,
The purpose of control command is to allow control of the output formatting
Syntax of Control Commands
SAPscript control commands are entered and edited in the text editor in the same way as a normal line of text. They do, however, differ from normal lines of text:
Enter the paragraph format /: in the format column to identify a control command.
Enter the command itself in the text line. You will notice that all key words and other parts of the specification not given as literal values enclosed in inverted commas are automatically converted to capital letters.
Make sure that a control command, together with any parameters it requires, does not occupy more than a single line.
Enter only one control command in each line.
Note that the editor formatting has no effect on lines containing control commands.
If a control command is unknown or it contains syntax errors, the line containing it is treated as a comment line. It is neither interpreted nor printed.
Eg.
/: NEW-PAGE
/: NEW-WINDOW
/: DEFINE
Regards,
Suruchi