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

How to write a code to adjust screen resolution in reports

Former Member
0 Likes
1,148

for every system screen resolution is different.

so if i use line-size and line-count in my program as a fix

value in one system.

and check my program in another system it will give different output.

for every system screen resolution is different.

so if i use line-size and line-count in my program as a fix

value in one system.

and check my program in another system it will give different output.

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
705

You can not control the screen resolution nor can you know what it is using ABAP.

Regards,

Rich heilman

Read only

Former Member
0 Likes
705

WELCOME TO SDN

i don't think you can handle screen resolution with ABAP programming ...

Regards,

Santosh

Message was edited by: Santosh Kumar P

Read only

0 Likes
705

HI ,

try using SY-SROWS ,as it gives no of lines .

using this you can handle the resolution .

Read only

vladimir_golovtchiner
Participant
0 Likes
705

Hi,

perhaps you whant to adjust the sise of your objects at you screen according to the resolution?

for exempl the sise of the docking conteiner.

Than you need to use something like that

WINDOW_HEIGTH = ( SY-SROWS - 9 ) * 12.

CREATE OBJECT G_DOCKING_CONTAINER

EXPORTING

REPID = REPID

DYNNR = '100'

SIDE = CL_GUI_DOCKING_CONTAINER=>DOCK_AT_BOTTOM

EXTENSION = WINDOW_HEIGTH.

the 9 is a number of rows from the top of screen to stay free for selectionscreen of dynpro. 12 is the number of pixels per row.

regards

Vladimir