10-28-2013 8:45 AM
Hello,
i would like to affect an alv to a container using the fm REUSE_ALV_LIST_DISPLAY.
How does it works?
Thanks.
10-28-2013 8:55 AM
Hi Dominique,
Why do you need to use container for LIST DISPLAY . REUSE_ALV_LIST_DISPLAY itself provide a screen for output so why do you need to create container.
10-28-2013 8:58 AM
10-28-2013 9:04 AM
Can you please let us know what exactly you are trying to achieve.?
10-28-2013 9:06 AM
10-28-2013 9:11 AM
I've buidt an alv using
lo_alvgrid->set_table_for_first_display.
In my screen there is two part : a button and a container to display the alv.
My program work fine, but now i need to freez the two first rows.
In this forum i've been told that the only way to do this is to use
the fm REUSE_ALV_LIST_DISPLAY.
10-28-2013 9:18 AM
10-28-2013 9:18 AM
10-28-2013 9:27 AM
by freez i mean fixed ( the two first rows must not move and stay at the top of the alv)
10-28-2013 9:36 AM
Hi,
While creating the field catalog just make FIX_COLUMN = 'X' for those two columns which you want to fix.
Regards,
Supratik
10-28-2013 9:39 AM
10-28-2013 9:45 AM
10-28-2013 9:49 AM
I dont think you have a easy method to achieve it. But you can try by keeping 1st two rows in top of page of the ALV. other rows will be part of body row.
Regards,
Supratik
10-28-2013 9:51 AM
10-28-2013 9:53 AM
Try to fill the field NO_SCROLLING of structure SLIS_LAYOUT_ALV with "X".
http://scn.sap.com/thread/1869727
10-28-2013 9:58 AM
You have to do a little bit of tweaking with cL_GUI_ALV_GRID
There is a method set_fixed_rows in class CL_GUI_ALV_GRID but it is protected. May be you redefine it in your local class but inherting it from based class or if you can set property Fixedrows of alv then also it can work.
Thanks
Nabheet
10-28-2013 10:15 AM
10-28-2013 10:21 AM
What exactly did you in this case? Can you please share us your approach
10-28-2013 10:32 AM
in fact this works only with REUSE_ALV_GRID_DISPALY_LVC. But in my program i use
CALL METHOD lo_alvgrid->set_table_for_first_display
10-28-2013 9:15 AM
10-28-2013 9:16 AM
10-28-2013 10:18 AM
Hi,
Use "REUSE_ALV_GRID_DISPALY_LVC" to achieve your both requirement.
(1) Please go through this link : "http://scn.sap.com/message/2905665#2905665"
(2) For Button Create a GUI Status call it in a subroutine and Pass subroutine name in "I_CALLBACK_PF_STATUS_SET" parameter of "REUSE_ALV_GRID_DISPALY_LVC".
Reward if useful.
With Thanks & Regards,
Tushar Trivedi.
10-28-2013 11:00 AM
Only solution that I can think of is to concatenate titles of columns and data of the first row and show it in alv header. Something like that.