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

vertical line

Former Member
0 Likes
1,291

Hi

I want to create some horizontal and vertical line in my table. I create horizontal line by 'uline'. I am not able to create vertical line.

Can you tell me how to create it with example.

in this below example I want to create vertical line for each entry.

&----


*

*& Form show-data

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


form SHOW-DATA .

sort I_MARA by MATNR.

loop at I_MARA.

write:

/5 I_MARA-MATNR,

23 I_MARA-ERSDA,

45 I_MARA-MTART,

69 I_MARA-MATKL,

I_MARA-BSTME.

endloop.

endform. " show-data

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,052

Make use of sy-vline statement to draw vertical line

loop at I_MARA.

write:

/5 I_MARA-MATNR,20 <b>sy-vline</b>

23 I_MARA-ERSDA,44 sy-vline

45 I_MARA-MTART,68 sy-vline

69 I_MARA-MATKL,20 sy-vline

I_MARA-BSTME.

endloop.

Regards,

santosh

6 REPLIES 6
Read only

Former Member
0 Likes
1,053

Make use of sy-vline statement to draw vertical line

loop at I_MARA.

write:

/5 I_MARA-MATNR,20 <b>sy-vline</b>

23 I_MARA-ERSDA,44 sy-vline

45 I_MARA-MTART,68 sy-vline

69 I_MARA-MATKL,20 sy-vline

I_MARA-BSTME.

endloop.

Regards,

santosh

Read only

Former Member
0 Likes
1,052

in a write statement just use "|" this sign.

Read only

Former Member
0 Likes
1,052

Hi,

to create the verticle line use SY-VLINE.

loop at I_MARA.

write:

/5 I_MARA-MATNR sy-vline,

23 I_MARA-ERSDA sy-vline,

45 I_MARA-MTART sy-vline,

69 I_MARA-MATKL sy-vline,

I_MARA-BSTME sy-vline.

endloop.

Regards

Sudheer

Read only

Former Member
0 Likes
1,052

Hi,

use this, you will get vertical lines.

loop at I_MARA.

write:

/5 I_MARA-MATNR,sy-vline,

23 I_MARA-ERSDA,sy-vline,

45 I_MARA-MTART,sy-vline,

69 I_MARA-MATKL,sy-vline,

I_MARA-BSTME,sy-vline.

endloop.

ex:

WRITE: /0 'carrid',10 'connid',30 'cityfrom',60 'cityto',90 'carrname'.

ULINE 0(111).

LOOP AT table_spfli INTO warea_spfli.

READ TABLE table_scarr WITH KEY carrid = warea_spfli-carrid INTO warea_scarr.

WRITE: /0 sy-vline,0 warea_spfli-carrid,sy-vline,

10 warea_spfli-connid,sy-vline,

30 warea_spfli-cityfrom,sy-vline,

60 warea_spfli-cityto,sy-vline,

90 warea_scarr-carrname,sy-vline.

ENDLOOP.

ULINE 0(111).

Read only

Former Member
0 Likes
1,052
&---------------------------------------------------------------------*
*& Form show-data
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
form SHOW-DATA .
sort I_MARA by MATNR.
loop at I_MARA.
ULINE.
write:
/5 I_MARA-MATNR, sy-vline,
23 I_MARA-ERSDA, sy-vline,
45 I_MARA-MTART, sy-vline,
69 I_MARA-MATKL, sy-vline,
I_MARA-BSTME, sy-vline.
ULINE.
endloop.
endform. " show-data

Hope this solves ur problem.

Reard points and close the thraed.

Read only

Former Member
0 Likes
1,052

Hi,

you use SY-VLINE for vertical line.

ex.

loop at I_MARA.

write:/5 I_MARA-MATNR,15 sy-vline

23 I_MARA-ERSDA,35 sy-vline

45 I_MARA-MTART,55 sy-vline

69 I_MARA-MATKL,68 sy-vline

78 I_MARA-BSTME,15 sy-vline.

endloop .

give specific length before sy-vline in write statement.

please reward if useful.