cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding ALV Toolbar....

Former Member
0 Kudos

Hi Guys,

I have a requirement in ALV, where i need to hide ALV Toolbar (Which Contains functionalities like View, Print Version,Export & settings functionalities)

Anyone having code for it or any suggestion for it, kindly let me know...

Thanks,

Ravin

Accepted Solutions (0)

Answers (1)

Answers (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

get the configuration model of the alv and call the below method.....

data : lr_salv_wd_table type ref to iwci_salv_wd_table,

lr_config type ref to CL_SALV_WD_CONFIG_TABLE,

lr_salv_wd_table = wd_this->wd_cpifc_alv_main( ).

" usage name

*... (1) get ConfigurationModel from ALV Component

lr_config = lr_salv_wd_table->get_model( ).

LR_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( EXPORTING VALUE = ABAP_FALSE ).

*LR_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_PDF_ALLOWED( exporting value = abap_false ).

*lr_config->IF_SALV_WD_STD_FUNCTIONS~set_DIALOG_SETTINGS_ALLOWED( exporting value = abap_false ).

LR_CONFIG->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( EXPORTING VALUE = ABAP_FALSE ).

Regards,

Yash