‎2006 Jul 18 3:05 PM
hi all,
how to make position of my field , i wont to put ls_kana1
on center of my report...and other fields to their places ..20.. 30.. from left
‎2006 Jul 18 3:09 PM
hi,
if u know the width of the page for ex; if its 200
write:/100 ls_kana1 centered.
other fields to their places ..20.. 30.. from left
write:/ 20 field1 left-justified,
30 field2 left-justified,
40 field2 left-justified.
Message was edited by: Priya
‎2006 Jul 18 3:06 PM
Hi,
use <b>write</b>: 25 bseg-wrbtr.
or
pos = 25.
<b>position</b> pos.
write: bseg-wrbtr.
-> look docu to write and position!
hope that helps
Andreas
pls reward usful answers
thank you
‎2006 Jul 18 3:07 PM
use write :/20 field1,
50 field2,
125 ls_kna1. (assuming report line output length is 250).
‎2006 Jul 18 3:08 PM
Hello,
Nick
Give Like this.
WRITE: at 025(10) DATA.
If useful reward points.
Vasanth
‎2006 Jul 18 3:09 PM
hi,
if u know the width of the page for ex; if its 200
write:/100 ls_kana1 centered.
other fields to their places ..20.. 30.. from left
write:/ 20 field1 left-justified,
30 field2 left-justified,
40 field2 left-justified.
Message was edited by: Priya
‎2006 Jul 18 3:10 PM
Hi Nick ,
You need to look at the formatting options of write statement..
Regarding the positioning of the output at 20th or 30th position, you can use WRITE AT Statement.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e3035c111d1829f0000e829fbfe/content.htm
Regarding the central positioning of the ouput, u can refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/content.htm
Regards,
SP.
‎2006 Jul 18 3:15 PM
Hi Nick,
You have the following options,
DATA: WORD(16), VALUE '0123456789ABCDEF',
COL TYPE I VALUE 5,
LEN TYPE I VALUE 10.
WRITE AT / WORD. "new line
WRITE AT 5 WORD. "column 5
WRITE AT (10) WORD. "output length 10
WRITE AT /5(10) WORD. "new line, column 5, length 10
WRITE AT COL WORD. "column = contents of COL
WRITE AT (LEN) WORD. "output length = contents of LEN
WRITE AT /COL(LEN) WORD. "new line, column = contents of COL
"output length = contents of LEN
Consider this code.
REPORT zztest
NO STANDARD PAGE HEADING
<b>LINE-SIZE 250.</b>
<b>*Since u want to display from centre of report
* half of LINE-SIZE</b>
WRITE : /<b>125(20)</b> ls_kana1 LEFT-JUSTIFIED, "0th place
<b>145(10)</b> ls_kana2 LEFT-JUSTIFIED, "20th place
<b>155(10)</b> ls_kana3 LEFT-JUSTIFIED. "30th place
Regards,
AS