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

wrie_!

Former Member
0 Likes
757

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
730

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

6 REPLIES 6
Read only

andreas_mann3
Active Contributor
0 Likes
730

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

Read only

Former Member
0 Likes
730

use write :/20 field1,

50 field2,

125 ls_kna1. (assuming report line output length is 250).

Read only

Former Member
0 Likes
730

Hello,

Nick

Give Like this.

WRITE: at 025(10) DATA.

If useful reward points.

Vasanth

Read only

Former Member
0 Likes
731

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

Read only

Former Member
0 Likes
730

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.

Read only

Former Member
0 Likes
730

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