Application Development 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: 

screen in OO alv

Former Member
0 Kudos
99

Hi all,

is there any way to make the screen size as per the size of the user computers,the pblm is my screen is smaller than the end users and it is bcoming difficult for us to make it to fit to exact size of users. while developing alv report using OO. i just wants some thing like ctu_params-display mode = 'X' we put for BDC some thing like this.please let me know thanks alot.

Anil

1 ACCEPTED SOLUTION

guilherme_frisoni
Contributor
0 Kudos
55

Hi Anil,

you should use splitter or docking containers to create your ALV.

Example os splitter:


CREATE OBJECT go_splitter
EXPORTING
parent = cl_gui_container=>default_screen
rows = 1
columns = 1
metric = '0001'.
  go_container = go_splitter->get_container( row = 1 column = 1 ).

CREATE OBJECT go_alv
EXPORTING
i_parent = go_container.

Regards,

Frisoni

4 REPLIES 4

Pawan_Kesari
Active Contributor
0 Kudos
55

guilherme_frisoni
Contributor
0 Kudos
56

Hi Anil,

you should use splitter or docking containers to create your ALV.

Example os splitter:


CREATE OBJECT go_splitter
EXPORTING
parent = cl_gui_container=>default_screen
rows = 1
columns = 1
metric = '0001'.
  go_container = go_splitter->get_container( row = 1 column = 1 ).

CREATE OBJECT go_alv
EXPORTING
i_parent = go_container.

Regards,

Frisoni

0 Kudos
55

is there any way i can do w/o using splitter?

0 Kudos
55

The custom control can take care of it's sizing. You need to set the attributes appropriately.

Go to the attributes of your custom control in screen-pinater and check the vertical and horizontal resizing boxes. Set Min lines and Min columns fields to value 5. It will automatically resize according to user's screen resolution.