cancel
Showing results for 
Search instead for 
Did you mean: 

Shading problem in SAPSCRIPT

Former Member
0 Kudos

Hi Experts,

I have to shade two positions in the main window which are under the two text elements.

One text element is the header of the main window and other is the summary of the main window.

I am able to achieve shading at the header using

POSITION WINDOW

BOX WIDTH '19' CM HEIGHT '2.2' LN FRAME 0 TW INTENSITY 10

But not able to get the same for the summary, as the position of it is not fixed.

The position of the summary part changes according to the contents of the main window.

Kindly suggest how I can achieve the shading for the summary part(which is not fixed) in the main window.

Thanks in advance.

Regards

Asish.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have a look @the following:-

In this case I am printng horizontal line before & after the total. As in your case total may appear anywhere depending on the no of items in the main window.

/E ITEM_TOTAL

/: IF &W_PFLAG& = 'Y'

/* POSITION XORIGIN '+0' CH YORIGIN &'-'W_I(C)& LN

/: SIZE HEIGHT &W_I(C)& LN

/: BOX FRAME 10 TW

/: ELSE

/: POSITION XORIGIN '0' CH YORIGIN &''W_I(C)& LN

/: SIZE HEIGHT 2 LN

/: BOX FRAME 10 TW INTENSITY 20

/* The above is for Grand Total

/* Now position is back to bottom of details hdg viz. particulars Amount

/: POSITION XORIGIN '+0' CH YORIGIN &'-'W_I(C)& LN

/: SIZE HEIGHT &W_I(C)& LN

/: BOX FRAME 10 TW

So basically what you need to do is to arrive at the correct value of w_i in your pgm, & rest is easy.

I hope this helps,

Regards

Raju Chitale

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Hi asish,

[SAPscript: Definition of borders, lines, and shading|http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm]

Regards,

Sravanthi

Former Member
0 Kudos

you can draw box in SAP script using the following code.

/: POSITION XORIGIN '-0' CH YORIGIN '-0.

/: SIZE WIDTH '+0.4' CH HEIGHT +1 LN

/: BOX HEIGHT '13.5' LN FRAME 10 TW

/: BOX FRAME 10 TW

this is if you want to give the lengeth and breath of box.

and BOX FRAME 10 TW is for intensity of frame line. the more the TW the thicker the line.

if you are not sure of length and breath of box and want it to be dynamic the use this code.

/: POSITION XORIGIN '-0' CH YORIGIN '-0'.

/: BOX FRAME 10 TW