Application Development and Automation 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: 
Read only

Additional button on std. toolbar

rangerlet_mesee
Participant
0 Likes
946

Hello

I am using CL_SALV_HIERSEQ_TABLE to display hierarchial display of MASTER-SLAVE

But I want to add additional buttons for expand and collapse of rows

Through which method can I add the user command of the buttons added

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
735

As in many ALV classes, perform some search in online documentation, you have to use method GET_FUNCTIONS and then on the returned CL_SALV_FUNCTIONS_LIST occurence use methods such as ADD_FUNCTION.

NB: Look at sample report SALV_TEST_HIERSEQ_FUNCTIONS.

Read only

Patrick_vN
Active Contributor
0 Likes
735

CL_SALV_HIERSEQ_TABLE has a method SET_FUNCTION.

You can also try to use method GET_FUNCTIONS_BASE which returns an instance of CL_SALV_FUNCTIONS. And CL_SALV_FUNCTIONS has different methods to deal with functions.


Read only

735

Beware, the SET_FUNCTION method is similar to cl_gui_cfw=>set_new_ok_code for a dynpro, but adapted to the ALV classes, it won't add a function, but trigger execution of one such function code.