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

alv list header alignment

Former Member
0 Likes
1,121

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
Read only

Former Member
0 Likes
1,044

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

Read only

0 Likes
1,044

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.

Read only

0 Likes
1,044

whether the alignment is possible.if so help me .

Read only

0 Likes
1,044

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

Read only

0 Likes
1,044

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

Read only

Former Member
0 Likes
1,044

Hi Suganya,

Did u try:

write: sy-datum right-justified .

Regards,

Anjali

Read only

Former Member
0 Likes
1,044

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!