on 08-13-2009 1:58 PM
hi there,
i created a view with an editable SALV-Grid (Insert, Append, Delete-buttons are visible)
Now i added a user-defined function (save). Problem: The button is aligned on the right side whereas the standard-buttons are aligned left. Is it possible to align user-created function on the left side?
best regards
david
Hi,
After you get the function refernce, use the method SET_ALIGNMENT that has the options in this
IF_SALV_WD_C_FUNCTION_SETTINGS.
ALIGN - 99
ALIGN_LEFT - 01
ALIGN_RIGHT - 02
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi,
>
>
> After you get the function refernce, use the method SET_ALIGNMENT that has the options in this
> IF_SALV_WD_C_FUNCTION_SETTINGS.
>
> ALIGN - 99
> ALIGN_LEFT - 01
> ALIGN_RIGHT - 02
>
> Regards,
> Lekha.
Careful, you should never supply the values - 01, 02, 99 - directly. There is no guarentee that they wouldn't change at some point. You should always use the class constants: IF_SALV_WD_C_FUNCTION_SETTINGS=>ALIGN_LEFT for instance. That way if the values change, your code is safe becuase the constants would be adjusted.
P.S. Of course using the constants also makes your code a lot more readable.
Edited by: Thomas Jung on Aug 13, 2009 11:27 AM
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.