cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a table,columns,rows dynamically

Former Member
0 Kudos

Hi All,

I would like to build an application which takes from date and to date as inputs and click on button it should create a table dynamically in the following format( rows - project Act1,Service Act2 etc....columns dates and total should be display rowwise and columnwise)

From 06.22.2009 To 06.23.2009 Go(button)

06.22.2009 06.23.2009 Total

Project act1 2 2 4

Project Act2

Service Act1 3 3 6

Total 5 5

How do i build this application

I should have ALV capability so that I can download.

Thanks

Bala Duvvuri

Edited by: Bala Duvvuri on Jun 23, 2009 5:21 AM

Edited by: Bala Duvvuri on Jun 23, 2009 5:22 AM

Edited by: Bala Duvvuri on Jun 23, 2009 5:25 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

no more a requirement

Former Member
0 Kudos

DATA lo_table_settings TYPE REF TO if_salv_wd_table_settings.

DATA lo_standard_functions TYPE REF TO if_salv_wd_std_functions.

DATA lo_column_settings TYPE REF TO if_salv_wd_column_settings.

DATA lo_column TYPE REF TO cl_salv_wd_column.

DATA lo_column_hdr TYPE REF TO cl_salv_wd_column_header.

lo_table_settings ?= lo_table.

lo_table_settings->set_selection_mode( cl_wd_table=>e_selection_mode-auto ).

lo_table_settings->set_cell_action_event_enabled( value = abap_true ).

lo_table_settings->set_width( value = '100%' ).

  • set default ALV Functions off

lo_standard_functions ?= lo_table.

  • lo_standard_functions->set_sort_headerclick_allowed( abap_false ).

lo_standard_functions->set_filter_filterline_allowed( abap_false ).

lo_standard_functions->set_filter_complex_allowed( abap_true ).

lo_standard_functions->set_sort_complex_allowed( abap_true ).

lo_standard_functions->set_column_selection_allowed( abap_true ).

lo_standard_functions->set_view_list_allowed( abap_true ).

lo_standard_functions->set_pdf_allowed( abap_true ).

lo_standard_functions->set_export_allowed( abap_true ).

lo_standard_functions->set_dialog_settings_as_popup( abap_true ).

  • lo_standard_functions->set_display_as_allowed( abap_true ).

  • lo_standard_functions->set_graphic_allowed( abap_true ).

lo_column_settings ?= lo_table.

*To create a row with heading Matter No.

lo_column = lo_column_settings->get_column( 'MTRID' ).

lo_column_hdr = lo_column->create_header( ).

lo_column_hdr->set_text( 'MATTER NO.' ).

same way for other required field.