cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Button in ALV table

Former Member
0 Kudos

Hi Experts,

I have created a custom button 'SELECT' in ALV table toolbar.

lo_function = l_value->if_salv_wd_function_settings~create_function( 'SELECT' ).

Now i am getting position of this custom button next to the Standard buttons ('Print' and 'Export' ). So how do I change the custom button position to first place. I mean the custom button should be in the left most position in the toolbar.

Please help me in resolving this.

Regards,

Sarathy.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check if this working - Use this- function->CL_SALV_WD_FUNCTION->SET_POSITION

Former Member
0 Kudos

Thank you Lekha. Set_position is working.

We have to change the positon of custom button and the standard button. So that the position of button gets interchnaged.

Regards,

Sarathy

Edited by: DEVASARATHY PANDI on Jan 26, 2012 12:18 PM

Former Member
0 Kudos

Cheers.......Thanks Much for sharing the info....

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think the user defined functions can only be put after the standard buttons.

As lekha said the SET_POSITION can only be used to align,but only user defined functions can be aligned

after the standard functins only.

Lets wait if any one can get something.

former_member199125
Active Contributor
0 Kudos

for aligning left or right we have other method ,its set_alignment( )

by default this method will move the button to LEFT

Regards

Srinivas

Edited by: sanasrinivas on Jan 25, 2012 6:36 PM