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

Regarding alignments

Former Member
0 Likes
424

Hello,

I want to place some feilds in a table display in left alignments and some feilds in right alignments.

So please tell me in normal reports and ALV reports.

I have to modify in both reports.So answer me for these two.

Thank you

3 REPLIES 3
Read only

Former Member
0 Likes
403

Hi,

For alv reports, while building fieldcatalog for the fields you need to use :


gs_fieldcat-just = ' ' " (R)ight (L)eft (C)ent.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
403

Hi,

For normal reports use


TYPE-POOLS line. 

WRITE: /10 line_top_left_corner      AS LINE NO-GAP, 
           line_top_middle_corner    AS LINE NO-GAP, 
           line_top_right_corner     AS LINE, 
       /10 line_left_middle_corner   AS LINE NO-GAP, 
           line_cross                AS LINE NO-GAP, 
           line_right_middle_corner  AS LINE, 
       /10 line_bottom_left_corner   AS LINE NO-GAP, 
           line_bottom_middle_corner AS LINE NO-GAP, 
           line_bottom_right_corner  AS LINE. 

"ALV

gs_fieldcat-just  = ' ' "R for right, L for left, C for center.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
403

Hi,

For List Display, you can write as follows.

WRITE w_var LEFT-JUSTIFIED.

WRITE w_var RIGHT-JUSTIFIED.

For ALV reports,

There is a filed in filed catalog.

just(1) type c, " (R)ight (L)eft (C)ent.