How to give Shades in SAPScript?

By Shweta Chavan, Hitachi Consulting

Introduction

This Document will elaborate you how to shade your table in SAPScript? Normally it is very easy to maintain document shading in Smartform & Adobe forms. But in SAPScript it is manual activity to do such things. We have to write down the code for getting such tables or shades.

In SAP Script Release 3.0A, text commands were introduced for drawing borders, lines, and shading. Parameters can be set for position, size, border thickness, and shading. Within a layout set, individual windows or specific text passages within a window can therefore be output with a border or shading.

How are the borders defined in the layout set?

Using the following new text commands:

1. /: BOX [XPOS]    [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

2. /: POSITION         [XORIGIN] [YORIGIN] [WINDOW] [PAGE]

3. /: SIZE                 [WIDTH] [HEIGHT] [WINDOW] [PAGE] 

1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

Effect       : Draws a box at this position with the specified size.

Additional  : XPOS, YPOS, WIDTH, HEIGHT and FRAME always require

Examples  

/: BOX FRAME 10 TW

Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT)

/: BOX INTENSITY 10

Shades the window background with a density (gray shade) of 10 %  

/: BOX HEIGHT 0 TW FRAME 10 TW

Draws a horizontal line at the upper window border over the entire window width

/: BOX WIDTH 0 TW FRAME 10 TW

Draws a vertical line at the left window border over the entire window height
/: BOX WIDTH '17.5' CM HEIGHT '1' CM FRAME 10 TW INTENSITY 15 
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW 
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW 
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a three-column table with a highlighted heading line

Output 

Output of above blue lines will be like follow:

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image