2008 Dec 10 6:49 AM
Hi,
Is it possible to change the ALV output dynamically?
eg. The ALV list output has columns.....
col1 col2 col3 col4
After display the user wants to change the position of the columns...
say for eg.... Col2 col3 col1 col4.
Is this possible?
Regards,
M..
2008 Dec 10 6:52 AM
hi,
yes, you can change the layout just by draging fields into your required positions.
you have a button change layout (cntrl + f8 )in application tool bar use it..
Hi,
Is it possible to change the ALV output dynamically?
eg. The ALV list output has columns.....
col1 col2 col3 col4
After display the user wants to change the position of the columns...
say for eg.... Col2 col3 col1 col4.
Is this possible?
Regards,
M..
2008 Dec 10 6:52 AM
hi,
yes, you can change the layout just by draging fields into your required positions.
you have a button change layout (cntrl + f8 )in application tool bar use it..
2008 Dec 10 7:04 AM
Hi,
I am using that. But the field gets arranged in the same way as passed from the progam.
2008 Dec 10 7:09 AM
hi,
you have to use save and layout option in REUSE_ALV_GRID_DISPLAY
function module and save it in output of layout.
data : gs_layout TYPE slis_layout_alv ,
g_save(1) TYPE c.
g_save = 'A'.
CALL FUNCTION REUSE_ALV_GRID_DISPLAY
EXPORTING
I_CALLBACK_PROGRAM = g_repid
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_STRUCTURE_NAME = 'ITAB'
IS_LAYOUT = gs_layout < ----- use this.
i_save = g_save < ---- also this
2008 Dec 10 7:05 AM
Hi,
It is possible. Which field you want just drag(you see arrow with small box) and put it where ever you want.
With Regards,
Jaheer.