cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing boxes dynamically

Former Member
0 Kudos

Hi,

Can we dynamically position boxes in Sapscripts by giving a varible after the xpos and ypos positions.

The command which I gave is

BOX XPOS '0' CM YPOS &W_CTR& CM WIDTH '0' CM HEIGHT '11' CM FRAME 5 TW

I wanted to draw some horizontal lines and the variable w_ctr is getting populated with different values.But control is not going to this command.

Can anyone help me out ?

Accepted Solutions (0)

Answers (1)

Answers (1)

jayanthi_jayaraman
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Jayanthi,

I wanted to know how we can use variables in box command.

When i give hardcoded values, the lines are drawn properly.

Former Member
0 Kudos

Try this out for size in the Text Elements for the window

<b>/: DEFINE &WIDTH& = '17.5'

/: BOX WIDTH &WIDTH& CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15

/: DEFINE &WIDTH& = '3'

/: DEFINE &HIEGHT& = '3'

/: BOX WIDTH &WIDTH& CM HEIGHT &HIEGHT& CM FRAME 10 TW INTENSITY 15</b>

Cheers!

Rishi