Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Remove Generic function in SALV?

former_member194669
Active Contributor
0 Kudos

Hi,

How we can remove a generic ALV function from CL_SALV_FUNCTION_TREE?

For example i need to remove FIND or EXPAND button from SALV TREE. and this ALV called inside a docking container.

I tried with REMOVE_FUNCTION then it is giving dump 'CX_SALV_WRONG_CALL' was raised.

Any suggestions to remove or hide will be appreciated.

+
Note: Please don't suggest to use

+


  g_tree->set_screen_status(
    pfstatus      =  'TREE'   " Custom PF status
    report        =  v_repid
    set_functions =  gr_tree->c_functions_default ).

Thanks

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yea, it appears that it really doesn't want you removing buttons with the tree object. You will not be able to use that method for this. Of course, your work around could be exactly what you mentioned before with defining your own gui status.

Regards,

Rich Heilman

0 Kudos

Rich,

Thanks for your reply.

I find work around function working well , only thing bothered is Buttons appeared in PF-status toolbar instead of buttons inside the container.

Thanks