cancel
Showing results for 
Search instead for 
Did you mean: 

alv table title

former_member199125
Active Contributor
0 Kudos

Hi guys,

how can we provide title for alv table . Please give me the exact method names

Regards

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sana,

Check this...

data lr_header type ref to cl_salv_wd_column_header.

    lr_header = l_column->get_header( ).
    lr_header->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 ).
    lr_header->set_text( ' ALV Table Header' ).

also check this...

Cheers,

Kris.

former_member199125
Active Contributor
0 Kudos

hi kisnas,

Am not asking about column headings, am asking about title. I mean alv table title. not columnheadings.

Regards

Srinivas

Former Member
0 Kudos

Hi Sana,

Be clear about your question, it seems alv title. Dont confuse.

check this..

Cheers,

Kris.

former_member199125
Active Contributor
0 Kudos

yes, alv title only.

The link which you have given is set the column headings.

Please give me the way to set the title.

Regards

Srinivas

Former Member
0 Kudos

Try this..

ip_confing type ref to CL_SALV_WD_CONFIG_TABLE. 
"set alv table header
ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).

or

data: lr_table_settings type ref to if_salv_wd_table_settings. 
data: lr_header type ref to CL_SALV_WD_HEADER. 
lr_table_settings ?= l_value. 
lr_header = lr_table_settings->get_header( ). 
lr_header->set_text( 'FLIGHT LIST SEARCH' ).

Cheers,

Kris.

former_member199125
Active Contributor
0 Kudos

Hi Krisnas,

Thks for reply,nw am able to set the title.

Can you explain me the below syntax

lr_table_settings ?= lo_value.

regards

Srinivas

Former Member
0 Kudos

hi

Cehck this link.. Radhika reply everything is there to instantiate alv, and model etc.

Cheers,

Kris.

Answers (0)