cancel
Showing results for 
Search instead for 
Did you mean: 

ALV column header with multiple rows and ALV column header span

Former Member
0 Kudos

How could I have in an ALV a column header on several lines and/or a column header that spans on multiple columns?

i.e. I would like to have in an ALV two columns, each with it's own distinct header and additionally another column header for both of the columns, that spans across both columns. How could I program this?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you for your answers. ssm answerd it.

Former Member
0 Kudos

Hi,

follow below mentioned code

  • SET THE LABEL OF THE COLUMN

DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.

CALL METHOD lr_weeknum->get_header

RECEIVING

value = hr_weeknum.

CALL METHOD lr_weeknum->set_resizable

EXPORTING

value = abap_false.

hr_weeknum->set_prop_ddic_binding_field(

property = if_salv_wd_c_ddic_binding=>bind_prop_text

value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).

          • set the text of the column

CALL METHOD hr_weeknum->set_text

EXPORTING

value = 'C Form'.

Regards,

Srini.

shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos
shahid
Product and Topic Expert
Product and Topic Expert
0 Kudos

Check this SDN Link

Edited by: ssm on Aug 4, 2011 6:41 PM