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 Likes
1,444

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

1 ACCEPTED SOLUTION
Read only

SreekanthKrishn
Contributor
0 Likes
1,021

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,021

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

SreekanthKrishn
Contributor
0 Likes
1,022

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

Read only

0 Likes
1,021

thx very much

For the fullscreen grid I used the EXTENTION parameter in the cl_gui_docking_container class...