2007 Jul 25 10:22 AM
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.
2007 Jul 25 10:25 AM
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
2007 Jul 25 10:26 AM
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).
2007 Jul 25 10:27 AM
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
2007 Jul 25 12:23 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |