2010 Jan 19 2:44 PM
Hello all,
I have the following requirements which i am finding difficult to implement. Can you kindly suggest me if there is any way to do it:
1. Please let me know how i can fit the ALV grid to the monitor size of the user. That is The grids should be layered and expanded to the full width of the users monitor.
2. Provide the option for the user to change the layout and save the layout chagnes as a standard option in ALV tool bar.
3. Display the ALV-GRID withe stripped pattern by default.
I am using OO ALV. Any inputs would be very helpful.
Warm Regards,
Jmello
2010 Jan 19 2:52 PM
Hi Mello,
1. Create a container which fits the screen size else use REUSE_ALV_GRID_DISPLAY
2. I_SAVE = 'A'
3. Pass IS_LAYOUT-ZEBRA = 'X' to the IS_LAYOUT import field
Manas M.
Hello all,
I have the following requirements which i am finding difficult to implement. Can you kindly suggest me if there is any way to do it:
1. Please let me know how i can fit the ALV grid to the monitor size of the user. That is The grids should be layered and expanded to the full width of the users monitor.
2. Provide the option for the user to change the layout and save the layout chagnes as a standard option in ALV tool bar.
3. Display the ALV-GRID withe stripped pattern by default.
I am using OO ALV. Any inputs would be very helpful.
Warm Regards,
Jmello
2010 Jan 19 2:52 PM
Hi Mello,
1. Create a container which fits the screen size else use REUSE_ALV_GRID_DISPLAY
2. I_SAVE = 'A'
3. Pass IS_LAYOUT-ZEBRA = 'X' to the IS_LAYOUT import field
Manas M.
2010 Jan 19 2:58 PM
Gentleman,
However for the first requirement here is my further inputs:
1. The custom container on the screen is made to fit the max size properly so it covers the entire screen as expected. However when I change the resolution of my screen ( pixel resolution increase or decrease from properties on right click on task bar) and execute the application this time the ALV does not fit the entire screen if the screen resolution is increased. Instead it only covers half the screen and scroll bar is provided. How do i ensure that if the resolution is varied the length gets adjusted automatically.
Hope for the last two you are right.
Let me check.
2010 Jan 19 3:03 PM
Well i checked this with standard ALV programs - BCALV* but even
those programs are behaving in the same way i.e. after
changing the screen size, the ALV is not displayed full
screen. Looks like this is a limitation.. wl check if there is any workaround.
Manas M.
2010 Jan 19 3:08 PM
Thanks a lot for the inputs. Meanwhile i changed the
coding and set the parameter I_SAVE = 'A'. However i
still dont get the option to save the layout. The problem is as explained:
In the ALV grid i find the button ( i am not able to paste
the picture ) on click of which i am able to change the layout
i.e., the coloumns displayed, hidden however i dont have the
option to save this changed layout. How do i acheive this?
Setting the parameter does not provide any means of acheiving it.
Am i missing something here?
Jmello
2010 Jan 19 3:10 PM
data : lv_repid type repid.
lv_repid = sy-repid. " Make sure that this statment is being passed with correct report name
is_variant-report = lv_repid.
i_default = 'X'.
i_save = 'U'.
is_variant = is_variant.
Check you can get lots of examples.
2010 Jan 19 3:13 PM
2010 Jan 19 3:19 PM
Hi John
Regarding your first question:
1- Define a big Dynpro size. Larger than the largest screen resolution you have to cope with. You can define the Dynpro size in Lines / Columns of the dynpro.
2- Set a custom container in your dynpro which fills all the dynpro.
3- In the Attributes of the custom container, check vertical and horizontal resizing.
4- In the Attributes of the custom container, set proper min lines and min columns.
In this way, OOALV will fill the screen, no matter the screen resolution is, without the annoying double scrollbars.
Regarding your second question, set and define define properly the parameter is_variant of the method set_table_for_first_display.
Regarding your third question, define in is_layout with ZEBRA='X'.
Personally, I don't like using REUSE_ALV_GRID_DISPLAY, because this is old function and not OO.
Hope this helps.
Jordi
2010 Jan 19 3:20 PM
Hello John,
1. Please let me know how i can fit the ALV grid to the monitor size of the user. That is The grids should be layered and expanded to the full width of the users monitor.
I understand this is standard ALV behaviour & cannot be changed through any attributes.
2. Provide the option for the user to change the layout and save the layout chagnes as a standard option in ALV tool bar.
You can pass the I_SAVE = 'A'. But the catch is you have to pass IS_VARIANT to the method without it the button will not work properly
3. Display the ALV-GRID withe stripped pattern by default.
Pass IS_LAYOUT-ZEBRA = 'X'.
BR,
Suhas
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |