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: 

How to display header in center in alv grid

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check the following link:

http://sap-img.com/fu037.htm

Regards,

Bhaskar

4 REPLIES 4

Former Member
0 Kudos

Hi,

Check the following link:

http://sap-img.com/fu037.htm

Regards,

Bhaskar

Former Member
0 Kudos

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

Former Member
0 Kudos

see this blog TOP-OF-PAGE :

in this blog u will find methods to fill gap before heading

Former Member
0 Kudos

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 ...