Skip to Content
Former Member
May 30, 2008 at 01:46 PM

No Active component...alv header in webdynpro


Hello all...

I am trying to put a alv header...but it is giving me following error:

Component Usage ALV_FLIGHTS Does Not Have an Active Component

any ideas...what could be the cause...


I am using the following code in my wddoinit method for output view:

data: l_ref_interfacecontroller type ref to iwci_salv_wd_table ,

l_value TYPE REF TO cl_salv_wd_config_table,

lr_header TYPE REF TO cl_salv_wd_header,

lr_table_settings type ref to if_salv_wd_table_settings,

l_header type string.

l_ref_interfacecontroller = WD_THIS->WD_CPIFC_alv_flights( ).

l_value = l_ref_interfacecontroller->get_model( ).

lr_table_settings ?= l_value.

lr_header = lr_table_settings->get_header( ).

concatenate sy-sysid ' Flight overview' into l_header.

lr_header->set_text( lr_header ).

lr_header->set_tooltip( 'Tooltip Flight Overview' ).

lr_header->set_image_source( 'ICON_FLIGHT' ).

lr_header->set_image_first( abap_false ).