Hi all,
I want to create grouped column headers dynamically.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
DATA lr_column_group TYPE REF TO cl_wd_table_column_group.
DATA lr_caption TYPE REF TO cl_wd_caption.
lr_table_column = cl_wd_table_column=>new_table_column( ).
lr_table_column->set_table_cell_editor( lr_input ).
lr_caption = cl_wd_caption=>new_caption( ).
lr_caption->set_text( 'Min' ).
lr_column_group = cl_wd_table_column_group=>NEW_TABLE_COLUMN_GROUP( ).
lr_column_group->set_header( EXPORTING the_header = lr_caption ).
CALL METHOD lr_column_group->add_column
EXPORTING
index = 1
the_column = lr_table_column.
lr_table->ADD_GROUPED_COLUMN( EXPORTING the_grouped_column = lr_column_group ).
But I don't understand how I can get the grouping of the columns.
The following structure should be realized:
FR | Headline 1 | Headline 2 |
SR | Min | Max | Min | Max |
FR = first row
SR = second row
regards
Edited by: Wolfgang Bauer on May 19, 2010 7:52 AM