cancel
Showing results for 
Search instead for 
Did you mean: 

Vertical Lines in Sap Scripts

Former Member
0 Kudos

Hi

I need to display vertical lines (columns) in scripts. I used Box comand

/E VLINE

/: DEFINE &HIGH& = &W_LINES_ZTRT&

/:BOX YPOS 5 MM WIDTH 0 MM HEIGHT &HIGH& MM FRAME 10 TW

/:BOX XPOS 68 MM YPOS 5 MM WIDTH 0 MM HEIGHT &HIGH& MM FRAME 10 TW ........

In se38 i used

DESCRIBE TABLE ilist LINES w_lines_ztrt.

w_lines_ztrt = ( w_lines_ztrt * 35 ) + 50.

and called the element vline in loop.

LOOP AT ilist.

WRITE_FORM 'VLINE' 'MAIN'.

So now when the data is half the page the vlines are displaying too short not until the total uline. And if the data is more than two pages .... like 7 to 10 from the first page itself vlines are not displaying.

So please suggest me how to use the count while using the box command.Waiting for ur early response.....

Thank You

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hai Vidya

Even i tried with POSITION WINDOW before BOX command .

/: POSITION WINDOW

BOX YPOS 5 MM WIDTH 0 MM FRAME 10 TW

/: POSITION WINDOW

BOX XPOS 68 MM YPOS 5 MM WIDTH 0 MM FRAME 10 TW

Unable to display the vlines in second page . .. Suggest me please...

Thank U

former_member196280
Active Contributor
0 Kudos

Hi,

I guess this will help to solve your query.

Vertical line.

BOX WIDTH '4.0 ' CM HEIGHT '5.1' LN FRAME 10 TW.

Reward points to all useful answers.

Regards,

SaiRam

Former Member
0 Kudos

Hai Vidya

Thank u ... As per ur suggestion i tried with out height ... Even though iam able to display the lines only in first page . Vlines are not displaying in second page ...... Please reply me early.....

/:BOX XPOS 5 CM WIDTH 0 MM FRAME 10 TW ........

/:BOX XPOS 10 CM WIDTH 0 MM FRAME 10 TW ........

Thank U....

Former Member
0 Kudos

Hi Sairam,

please put 'POSITION WINDOW' before starting the box commands..

/:POSITION WINDOW

/:BOX XPOS 5 CM WIDTH 0 MM FRAME 10 TW ........

/:BOX XPOS 10 CM WIDTH 0 MM FRAME 10 TW .......

Regards,

Vidya.

Former Member
0 Kudos

Refer to these related thread

REgards,

Santosh

Former Member
0 Kudos

Hello Sairam,

i do not know why you are using count variable in print program,directly you can fix the vertical lines in layout,anyway see the sample code ,this will give you vertical and horizontal lines in layout and make sure that your window width and height should match.

IF &PAGE& EQ '1'.

BOX FRAME 10 TW

POSITION WINDOW

BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW I

POSITION XORIGIN '3.0' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '5.0' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '7.2' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '8.3' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '9.5' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '12.0' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '14.5' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

POSITION XORIGIN '17.0' CM

BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW

ENDIF.

IF &PAGE& NE '1'.

POSITION WINDOW

BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW

POSITION WINDOW

BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10

POSITION XORIGIN '0.9' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '3.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '5.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '7.2' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '8.3' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '9.5' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '12.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '14.5' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '17.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '19.7' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

ENDIF

Reward Points if it is helpful

Thanks

Seshu

Former Member
0 Kudos

Hi sai,

dont' mention any height(the default height will be window)...change the xpos instead..

say if you have 3 columns and you need two vertical lines..

/:BOX XPOS 5 CM WIDTH 0 MM FRAME 10 TW ........

/:BOX XPOS 10 CM WIDTH 0 MM FRAME 10 TW ........

Regards,

Vidya.