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: 

alv list header alignment

Former Member
0 Kudos

hi frnd's,

I am using an alv list viewer,in top of page i am displaying some text i want to align the text sy-datum to right corner of the page.

7 REPLIES 7

Former Member
0 Kudos

Suganya,

How are you writing data in the TOP OF PAGE? Are you using the write statments?

If yes, then you can specify the position where it needs to be written.

Regards,

Ravi

0 Kudos

CLEAR GS_LINE.

GS_LINE-TYP = 'H'.

GS_LINE-INFO = 'HEADER 1'.

APPEND GS_LINE TO GT_TOP_OF_PAGE.

I AM NOT USING THE WRITE STATEMENT THAT IS THE PROBLEM.

0 Kudos

whether the alignment is possible.if so help me .

0 Kudos

Hi Suganya, alignment in ALV header is only possible if you are using ALV LIST, in that case you can use the write statement in the event TOP_OF_PAGE; but if you are using ALV GRID, then this is not posibble since ALV GRID's header has fixed positions according to the text tipe (H, S) or the logo.

Hope it helps

Jesus

0 Kudos

Hi ,

as Jesus suggested it is Not possible in GRID ALV but ALV list you can use normal write statements using right-justified, left-justified .

Regards

Vjay

Former Member
0 Kudos

Hi Suganya,

Did u try:

write: sy-datum right-justified .

Regards,

Anjali

Former Member
0 Kudos

Hi Suganya,

I got a funny thought.. Just implement it if poss..

Make the text right aligned.. and fill the first place of the slis*-info with period (.), which is hardly visible in the top-of-page!