cancel
Showing results for 
Search instead for 
Did you mean: 

Remove functions from ALV Tree

IanStubbings
Active Participant
0 Kudos

Hi

I'd like to remove the functions from the top of the ALV and then replace them with my own.

Anyone one how this can be achieved?

Regards

Ian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, Ian,

Check this weblog:

<a href="/people/sap.user72/blog/2006/01/09/wda--user-defined-functions-in-alv - User defined functions in ALV</a>

Regards,

Andre

IanStubbings
Active Participant
0 Kudos

Thanks Andre.

That covers the adition of new functions.

How do I get rid of the standard ones?

Cheers

Ian

Former Member
0 Kudos

Hi, Ian,

For that there's the IF_SALV_WD_STD_FUNCTIONS interface:


  DATA: l_value TYPE REF TO cl_salv_wd_config_table.
  l_value = l_ref_interfacecontroller->get_model( ).

  data: lr_std_functions type ref to IF_SALV_WD_STD_FUNCTIONS.

  lr_std_functions ?= l_value.

  lr_std_functions->SET_EXCEL_INPLACE_ALLOWED( abap_false ). " hides Excel button
  lr_std_functions->SET_PDF_ALLOWED( abap_false ).           " hides PDF button
  lr_std_functions->SET_VIEW_LIST_ALLOWED( abap_false ).     " hides View dropdown

Take a look at its methods, you may find what you're looking for.

Take a look also in this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4">documentation</a>, it might help you.

Regards,

Andre

IanStubbings
Active Participant
0 Kudos

Perfect!

Many thanks for that.

Ian

Answers (0)