!--a11y-->
Defining the Position Within the
Toolbar 
When you generated the function, you defined whether the UI element for the function would be positioned in relation to the left margin or in relation to the right margin (that is, whether it would be left-justified or right-justified). You cannot change this setting at a later date or time. However, you can change the order of the functions on one side of the toolbar.
· The standard ALV functions are always on the outside (if you have chosen to display them). You cannot change their order.
· Functions that exist under the self-defined functions without a position number assignment are left-justified.
· To the right of these functions are the self-defined functions, arranged from left to right in the order you define.

You insert eight functions into your toolbar with the names Button 1 to Button 8. You generate the first four buttons (1 to 4) as left-justified functions, and the last four (5 to 8) as right-justified.
You then assign position 1 to the buttons 1 and 5, and position 2 to the buttons 2 and 6. These assignments give the following display:


The self-defined functions to which you do not assign any position numbers always have the position number 0.
To determine the position number of a function object, use the methods of the class CL_SALV_WD_FUNCTION.
Methods for Changing the Position of Function Objects
Function |
Method |
Set position number |
SET_POSITION |
Get position number |
GET_POSITION |