cancel
Showing results for 
Search instead for 
Did you mean: 

export button in ALV

Former Member
0 Kudos

hi i have an ALV application

in which there is export button as shown

EXPORT

|

|_ _ _Export to Spread sheet

|

|_ _ _BEx Analyser

|

|_ _ _ Web Analyser

Shows following things .I only want Export to Spread sheet in my application how to remove the other two pls suggest

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Alternatively you have to use the "ALV Configuration Model"

here is the code to remove the pdf/print button BEX_ANALYZER button

check the interface if_salv_wd_std_functions for more setttings.


  DATA: lr_cmp_usage           TYPE REF TO if_wd_component_usage.

  lr_cmp_usage = wd_this->wd_cpuse_cu_alv_search( ).
  IF lr_cmp_usage->has_active_component( ) IS INITIAL.
    lr_cmp_usage->create_component( ).
  ENDIF.

  DATA: lr_if_controller TYPE REF TO iwci_salv_wd_table,
        lr_config_model  TYPE REF TO cl_salv_wd_config_table.

  lr_if_controller = wd_this->wd_cpifc_cu_alv_search( ).
  lr_config_model = lr_if_controller->get_model( ).


  lr_config_model->if_salv_wd_std_functions~set_export_allowed( abap_false ).
  lr_config_model->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
  lr_config_model->if_salv_wd_std_functions~SET_BEX_ANALYZER_ALLOWED( abap_false ).

write this in the wddonit method

Yashpal
Active Contributor
0 Kudos

Hi ,

GO to transaction SPRO -> SAP NetWeaver -> Application Server ->Web Screen for ABAP -> System-Wide Settings for the Web Dynpro ABAP ALV -> in that there is option to hide those options .

Regards

Yash