2013 Feb 26 3:03 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
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 26 5:36 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 26 5:57 PM
Set resizing attributes for your custom container this will solve the issue.
2024 May 07 5:05 AM
Hi,
Select the Horizontal & Vertical check boxes in Resizing Block of the Container(Custom Control) attributes and pass the maximum no. in the both the cases.
Thanks,
Nawal Sahu
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |