Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Write statement

Former Member
0 Likes
862

How do I create a vertical line at the rightmost column of a screen using a write statement.

8 REPLIES 8
Read only

Former Member
0 Likes
836

Hi

use

WRITE: <no of char> SY-VLINE.

write : 82 sy-vline.

create a vertical line at 82th character on right side

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
836

Hi,

if line-size is say,50.

loop at itab.

Write : 50 sy-vline.

endloop.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
836

u can have 82 characters in a line.. so mention in ur write satement 82 sy vline.

Read only

Former Member
0 Likes
836

hi,

use sy-vline.

62 62 sy-vline means line will be displayed at 62 position.

Read only

Former Member
0 Likes
836

Hi Shilpa,

Refer this code :

Write : 100 sy-vline.

this statement will show a vertical line at 100 char position in report output.

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
836

write : 82 sy-vline.

creates the line somewhere in the middle of the screen

Read only

Former Member
0 Likes
836

i basically want to determine the last column position because it varies with resolution.

Read only

0 Likes
836

Hi

if it is a report, roughly you can estimate the last column position by a character and move this side or that side, and fix it correctly

if you fix the fixed lengths for the fields as per thier Data dictionary it is always fixed.

write: /1 sy-vline, 2(10) itab-kunnr,

12 sy-vline, 13(35) itab-name1,

49 sy-vline, 50(10) itab-pstlz,

60 sy-vline, 61(35) itab-ort01,

96 sy-vline.

Now declare the LINE-SIZE as 96 along with report Name and

if you write SY-VLINE, it will always draw a line at 96 position.

Reward points if useful

Regards

Anji