cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic box in script

Former Member
0 Kudos

hii frnds

my requirement is to print a dynamic box in my script . actualy with the box command we have to specify the ypos which i am not able to know during the runtime cauze there may be n no. of line items getting printed before the box . can anybody help me with this issue . i have to draw the box inside the main window .

Thanking you

rohit gupta

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rohit ,

You will have to use the box command , but instead of hardcoding the values of xpos and ypos given them as varaibles , these varaibles can be populated from a subroutine where you can also determine the number of line items.

In case of further queries , feel free to revert back.

Regards

Arun

Former Member
0 Kudos

Hi Rohit,

when you need to print a horizontal line for every line item...

declare a variable in se38 program say v_line..

now in the loop increment this variable...

loop ai itab.

v_count = v_count + 1.

endloop.

now use this variable in the BOX command of script..

when drawing horizontal lines the YPOS should change

/:POSITION WINDOW

/:BOX YPOS &v_line& CM HEIGHT 0 MM FRAME 10 TW ........

hope this helps...

Regards,

Vidya.

former_member196280
Active Contributor
0 Kudos

Place a new window similar to main window(in dimension etc) place it over main window and draw all line in this new window.

Reward points if useful.

Regards,

SaiRam