Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Duplicate Scrollbars Alv Grid OO

fabio_perencin
Explorer
0 Kudos
4,205

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

3 REPLIES 3
Read only

Former Member
0 Kudos
2,066

Hi Fabio Perencin,

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.

Read only

2,065

Set resizing attributes for your custom container this will solve the issue.

Read only

NawalSahu
Explorer
0 Kudos
1,878

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.

NawalSahu_0-1715054714778.png

 

Thanks,

Nawal Sahu