09-20-2008 1:56 PM
hi experts,
please tell me how to display header in center in alv grid.
I want the header to be displayed as centered and not left aligned.Also i want it in alv grid and not alv list.
09-20-2008 2:14 PM
09-20-2008 2:14 PM
09-20-2008 2:45 PM
hi
i think, it is simply achieved by adding blank spaces in front of header text.
for example,
' Header'
.
Edited by: Marat on Sep 20, 2008 3:46 PM
09-20-2008 3:12 PM
09-20-2008 3:19 PM
try this code ......
data: gt_list_top_of_page type slis_t_listheader. " Top of page text.
Initialization.
perform comment_build using gt_list_top_of_page[].
form top_of_page.
Note to self: the gif must be loaded into transaction OAOR with
classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.
I Loaded NOVALOGO2 into system.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
I_LOGO = 'NOVALOGO2'
i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = gt_list_top_of_page.
endform. " TOP_OF_PAGE
form comment_build using e04_lt_top_of_page type slis_t_listheader.
data: ls_line type slis_listheader.
clear ls_line.
ls_line-typ = 'A'.
ls_line-info = 'Special'(001).
fgrant = xgrant.
concatenate ls_line-info fgrant
'Stock Option Report to the board'(002)
into ls_line-info separated by space.
condense ls_line-info.
append ls_line to e04_lt_top_of_page.
endform. " COMMENT_BUILD
thank u ...