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 & dotted line

Former Member
0 Likes
970

hi,

I want a program to print a veritcal line and dotted line in output screen.

hi,

I want a program to print a veritcal line and dotted line in output screen.

4 REPLIES 4
Read only

Former Member
0 Likes
787

Hi ,

The best way to print a line / box in Sap script is to use box and line commands . This way you can make the lines and boxes move dynamically using the variables for Y-POS & X-POS .

or

1) using sy-uline with index ( as you did)

2) Second -


in script editor itself... ))

Regards

Read only

former_member189059
Active Contributor
0 Likes
787

for vertical line use sy-vline..

here is a sample


DATA: itab LIKE mara OCCURS 0 WITH HEADER LINE.
DATA: itab2 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).

Read only

former_member189059
Active Contributor
0 Likes
787

for a dotted line make a character as dot

data dot value '.'.

and replace the 'sy-vline' with 'dot'

and to make a thicker dotted line, use a ':' (colon) instead of the '.' symbol

Message was edited by:

Kris Donald

Read only

former_member189059
Active Contributor
0 Likes
787

is your doubt solved ?