cancel
Showing results for 
Search instead for 
Did you mean: 

SALV user-function...

davidwallner
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> 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

Answers (0)