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

Adapt a container automatically to screen resolution.

SantiMoreno
Participant
0 Likes
2,037

Hi, Abapers!

I'm programming an ALV OO in a SAP R/3 4.6C version. Got no problems with it. My problem comes with, probably, the control container. I've seen, reading the standard doco, that there are several kinds of container (i.e. a docking container).

The problem comes when users execute the ALV, because the users use several distinct screen resolution. So, several of them have the screen full of scroll bars and some of them got just half of the screen filled with the listing.

So, easy question to make (I hope to answer too): Could I use any kind of container to adapt it to the screen resolution automatically? Can I configure it anyway to adapt via any kind of parameters to different screen resolutions?

Thanks for your helping.

Best Regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,190

Hello!

I hope this solution works for you.

On screen painter, select the custom container element and double-click it to see its properties.

There are two properties related to resizing the custom container: vertical and horizontal. If you set this two properties with the minimun number of lines and columns that your control should show, and define the custom container to the maximun resolution height and width, SAP will adapt the custom container to user's window resolution.

For example:

- Custom container width: 250

- Custom container heigth: 195

- Resizing attribute vertical: 20

- Resizing attribute horizontal: 90

Maybe there's any other way without having to define the container as huge as windows limits (for example dinamically resolution definition), but for the moment, i hope you can use this solution!

Regards,

Diana.

Hi, Abapers!

I'm programming an ALV OO in a SAP R/3 4.6C version. Got no problems with it. My problem comes with, probably, the control container. I've seen, reading the standard doco, that there are several kinds of container (i.e. a docking container).

The problem comes when users execute the ALV, because the users use several distinct screen resolution. So, several of them have the screen full of scroll bars and some of them got just half of the screen filled with the listing.

So, easy question to make (I hope to answer too): Could I use any kind of container to adapt it to the screen resolution automatically? Can I configure it anyway to adapt via any kind of parameters to different screen resolutions?

Thanks for your helping.

Best Regards.

1 REPLY 1
Read only

Former Member
0 Likes
1,191

Hello!

I hope this solution works for you.

On screen painter, select the custom container element and double-click it to see its properties.

There are two properties related to resizing the custom container: vertical and horizontal. If you set this two properties with the minimun number of lines and columns that your control should show, and define the custom container to the maximun resolution height and width, SAP will adapt the custom container to user's window resolution.

For example:

- Custom container width: 250

- Custom container heigth: 195

- Resizing attribute vertical: 20

- Resizing attribute horizontal: 90

Maybe there's any other way without having to define the container as huge as windows limits (for example dinamically resolution definition), but for the moment, i hope you can use this solution!

Regards,

Diana.