SAPscript Control Commands Overview

SAPscript Commands          Description

ADDRESS                              Formatting of addresses

The ADDRESS-ENDADDRESS command formats addresses according to the postal norms of the recipient's country, as defined in the country parameter.

/: ADDRESS DELIVERY PARAGRAPH AD
/: NAME &KNA1-NAME&
/: STREET &KNA1-STRAS&
/: POSTCODE &KNA1-PSTLZ&
/: CITY &KNA1-ORT01&
/: COUNTRY &KNA1-LAND1&
/: FROMCOUNTRY 'DE'
/: ENDADDRESS

BOTTOM, ENDBOTTOM     Define footer text in a window

BOX, POSITION, SIZE         Boxes, lines and shading

CASE, ENDCASE                  Case distinction

DEFINE                                 Value assignment to text symbols

HEX, ENDHEX                      Hexadecimal values

IF, ENDIF                              Conditional text output

INCLUDE                              Include other texts

/: include &VBDPA-TDNAME& OBJECT VBBP ID 0002 Language EN PARAGRAPH CN

Where CN is a paragraph defined as centered.

NEW-PAGE                            Explicit forms feed

NEW-WINDOW                     Next window MAIN

PERFORM, ENDPERFORM   Calling ABAP Subroutines

PRINT-CONTROL                 Insert print control character

PROTECT, ENDPROTECT    Protect from page break

With the command pair PROTECT. ENDPROTECT, SAPscript offers you the option of individually defining protection from a page break. If you parenthesize the text in question using these commands, SAPscript automatically guarantees that all the lines it contains are printed together on one page. If the lines fit on the current output page, they are output there, in exactly the same way as if the PROTECT command was not used. If, however, the space is not sufficient, the PROTECT command then works as a NEW-PAGE and generates a form feed .For this reason, you can view PROTECT/ENDPROTECT as a conditional NEW-PAGE command, whose condition consists of whether the included lines fit into the current window MAIN or not.

Syntax:

/: PROTECT
:
:
/: ENDPROTECT

The lines to be protected lie between the two commands.

RESET                                  Initialize outline paragraphs

SET COUNTRY                    Country-specific formatting

SET DATE MASK                Formatting of date fields

SET SIGN                             Position of +/- sign

SET TIME MASK                 Formatting of time fields

STYLE                                  Change style

SUMMING                            Summing variables

TOP                                      Set header text in window MAIN

Sapscripts Tips

Fast Links:
Other SapScipts Question
SapScript Question

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

SAP Scripts Tips
SAP Sapscripts Tips and Tricks

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.