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

Screen resolution - ALV (OOp)

former_member194669
Active Contributor
0 Likes
1,066

Hi,

I have ALV Tree screen like the following . If i execute this thru my system, the screen fully fits into my screen, but if it try in some other system the screen not fully fit in one screen , some of the fields displayed in the screen is going out of the screen, the user need to scroll it see the contents. I

In ALV how should i maintained the same screen resolution to all users?


--------------------------------------------------------
 Node       |No:______         Date: ________
     a      |Desc: ________________________ Deleted : _
     b      |   (Here above field are editable)
     c      |-------------------------------------------
     d      |
     e      |
     f      |
     g      |
            |          Here i have an ALV Editable Grid
            |
            |
            |
--------------------------------------------------------

aRs

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
934

I think its actaully to do with the users machines system Display settings, i.e. tehre screen resolution will be differnet from yours. To get round this I usually use dokcing containers and just fill the screen with the docking container so it fills eeryones screen.

i.e.

IF cl_gui_alv_grid=>offline( ) is initial.

CREATE OBJECT ref_docking

EXPORTING

SIDE = cl_gui_docking_container=>dock_at_right

EXTENSION = 1400 . " fills screen even for small fonts

ENDIF.

  • create tree control

create object ref_alv_tree

exporting

parent = ref_docking " ref_tree_container

node_selection_mode = cl_gui_column_tree=>node_sel_mode_single

item_selection = 'X'

no_html_header = ''

no_toolbar = ''

exceptions

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

illegal_node_selection_mode = 5

failed = 6

illegal_column_name = 7.

if sy-subrc <> 0.

message E000 WITH 'Error creating ALV TREE Object'.

endif.

Hi,

I have ALV Tree screen like the following . If i execute this thru my system, the screen fully fits into my screen, but if it try in some other system the screen not fully fit in one screen , some of the fields displayed in the screen is going out of the screen, the user need to scroll it see the contents. I

In ALV how should i maintained the same screen resolution to all users?


--------------------------------------------------------
 Node       |No:______         Date: ________
     a      |Desc: ________________________ Deleted : _
     b      |   (Here above field are editable)
     c      |-------------------------------------------
     d      |
     e      |
     f      |
     g      |
            |          Here i have an ALV Editable Grid
            |
            |
            |
--------------------------------------------------------

aRs

6 REPLIES 6
Read only

Former Member
0 Likes
935

I think its actaully to do with the users machines system Display settings, i.e. tehre screen resolution will be differnet from yours. To get round this I usually use dokcing containers and just fill the screen with the docking container so it fills eeryones screen.

i.e.

IF cl_gui_alv_grid=>offline( ) is initial.

CREATE OBJECT ref_docking

EXPORTING

SIDE = cl_gui_docking_container=>dock_at_right

EXTENSION = 1400 . " fills screen even for small fonts

ENDIF.

  • create tree control

create object ref_alv_tree

exporting

parent = ref_docking " ref_tree_container

node_selection_mode = cl_gui_column_tree=>node_sel_mode_single

item_selection = 'X'

no_html_header = ''

no_toolbar = ''

exceptions

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

illegal_node_selection_mode = 5

failed = 6

illegal_column_name = 7.

if sy-subrc <> 0.

message E000 WITH 'Error creating ALV TREE Object'.

endif.

Read only

former_member194669
Active Contributor
0 Likes
934

Hi,

I am already using Docking on Left


  create object g_container_object
      exporting side = cl_gui_docking_container=>dock_at_left
                extension = 270
                repid     = g_repid
                dynnr     = '0100'.

Any info related to scrolling controll?

Thanks

aRs

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
934

You may not get it to look exactly the same on all screen resolutions, but you can help with resizing. Double click on the container inside the screen in screen painter. Now checking the checkboxes for resizing, horontial as well as vertical.

Regards,

RIch Heilman

Read only

0 Likes
934

Oh, if you are using a docking container, I guess the resizing won't work.

Regards,

Rich Heilman

Read only

former_member194669
Active Contributor
0 Likes
934

I think this is not possible.

Thanks all

aRs

Read only

Former Member
0 Likes
934

Increase the docking containers extension. I use 1400 because this fill's the screen even for small fonts. Go to the control pannels dispaly or screen settings and in the advnaced tab change the screen resolution, then you can test your docking container for differnet font sizes.