2013 Feb 26 3:02 PM
Hi all,
I have a problem with dynamic ALV Grid OO.
I used this code:
CREATE OBJECT go_alv
EXPORTING
i_parent = cl_gui_custom_container=>screen0
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5
CALL METHOD go_alv->SET_TABLE_FOR_FIRST_DISPLAY
CHANGING
IT_OUTTAB = <dyn_table>
IT_FIELDCATALOG = gt_fieldcat_out
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4
.
The results of this code are a correct ALV Grid, but with 2 horizontal scroll bar at the end of the screen.
Could anyone help me to remove the scrollbar of the custom container?
Thanks in advance
Fabio
2013 Feb 27 3:13 AM
I think the issue is because the container is not used properly.
Create an object for custom container and try using that value in the ALV object creation.
Let me know if this helps.
Thanks,
Sreekanth
2013 Feb 26 7:53 PM
You can use the method SET_HORIZONTAL_SCROLLBARS of the class CL_GUI_ALV_GRID.
Where you need to pass the value '0' to its parameter enable because by default the value will be '1' which means enable. By this u can disable the HORIZONTAL scroll bar.
Else decrease or adjust the height of the custom controller in the layout of the screen.
2013 Feb 27 3:13 AM
I think the issue is because the container is not used properly.
Create an object for custom container and try using that value in the ALV object creation.
Let me know if this helps.
Thanks,
Sreekanth
2013 Feb 27 1:54 PM
thx very much
For the fullscreen grid I used the EXTENTION parameter in the cl_gui_docking_container class...