Search this site

Sunday, April 1, 2012

Sapscript command abap

Command

Use

New-page

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

Position

Size

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

<>

> 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

No comments:

Post a Comment