Application Development 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: 

Alignment of field values towards left or right???????

Former Member
0 Kudos

Hi All,

There is a requirement. I am looping through my outpt table and displaying filed and values line by line.

This also has a header section. The output will some what look like this

Program: z001 Page: 1/2

Date: yy/mm/dd Time:000000

Material: xxx

Plant: xxx

-


Matnr

1

MMSTA

xxx

Meins

y yy

-


The oposition and lines drawn are fixed. Now my question is there an option to align the field values towards extreme right ( as yyyy shown).

Rakesh

2 REPLIES 2

Former Member
0 Kudos

You can use..


WRITE 😕 itab-meins RIGHT-JUSTIFIED.

0 Kudos

Hi

In Write, u can use like

WRITE 😕 ITAB-FIELD1 LEFT JUSTIFIED/RIGHT JUSTIFIED/ CENTERD

But it will not print on extreme right

If u want to print at extreme right, u have to use Position option of write

write: /50 'aaaa'. Here it prints 5oth column

Reward if useful

narendra