Application Development 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: 

to print a long vertical line

Former Member
0 Kudos

My requirement is to simply print a long vertical line in the output.

If you do this fav you will be rewarded with more points.

regards

Posh

8 REPLIES 8

former_member189059
Active Contributor
0 Kudos

write sy-vline in the output

add it on every line and it will merge into a long vertical line

Former Member
0 Kudos

Hi

In the LOOP (DO or some other table loop)

write the field SY-VLINE at the same position

it will print the vertical line

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

do 100 times.

WRITE SY-VLINE.

enddo.

Regards,

Pavan.

former_member189059
Active Contributor
0 Kudos

Hello,

try this code

DATA: itab LIKE mara OCCURS 0 WITH HEADER LINE.

SELECT * FROM mara UP TO 50 ROWS INTO CORRESPONDING FIELDS OF TABLE itab.
SKIP 2.

ULINE AT /1(54).
WRITE:/
sy-vline,
AT (19)  'MATNR' COLOR COL_HEADING INTENSIFIED NO-GAP,

sy-vline,
AT 23(13)  'ERNAM' COLOR COL_HEADING INTENSIFIED NO-GAP,

sy-vline,
AT 38(17)  'PSTAT' COLOR COL_HEADING INTENSIFIED NO-GAP,

54 sy-vline.

ULINE AT /1(54).
LOOP AT itab.

  WRITE:/
  sy-vline,itab-matnr,
  sy-vline,
  23 itab-ernam,
  sy-vline,
  38 itab-pstat,
  sy-vline.

ENDLOOP.
ULINE AT /1(54).

Former Member
0 Kudos

I want to print a long vertical without using do loop.

u will be rewarded with points.

0 Kudos

data n type i value 1.

while n lt 100.

write sy-vline.

add 1 to n.

endwhile.

Without using any loop, we can't print a long vertical line,

because SY-VLINE is this character - ' | '.

Regards,

Pavan

0 Kudos

Do one thing...Hard code the code as many times as you want, so that you'll get a very long line....

write 30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

write /30 sy-vline.

Regards,

Pavan

Former Member
0 Kudos

Hi red,

try this:

uline.

uline (50).

uline at /10(30).

and see the difference.

Regards, Dieter

Sorry, it's not vertical!!

Regards, Dieter

Message was edited by:

Dieter Gröhn