ALV size should be adjustable to screen resolution automatically

Hi,
Is there in any way that the size of ALV grid should be adjustable to screen resolution automatically?
Thanks & Regards,
Reena

Hello Reena
If your ALV list is the only element on your dynpro then you should not use a custom container on the dynpro. Instead use the following approach:
*& Report  ZUS_SDN_ALVLIST_FULLSCREEN
REPORT  zus_sdn_alvlist_fullscreen.
DATA:
  gt_kna1           TYPE STANDARD TABLE OF kna1.
DATA:
  go_docking        TYPE REF TO cl_gui_docking_container,
  go_alvgrid        TYPE REF TO cl_gui_alv_grid.
START-OF-SELECTION.
* Select some data
  SELECT * FROM  kna1 INTO TABLE gt_kna1.
* Create docking container and dock at left side
  CREATE OBJECT go_docking
    EXPORTING
      parent                      = cl_gui_container=>screen0
*      REPID                       =
*      DYNNR                       =
      side                        =
                  cl_gui_docking_container=>dock_at_left
*      EXTENSION                   = 50
*      STYLE                       =
*      LIFETIME                    = lifetime_default
*      CAPTION                     =
*      METRIC                      = 0
      ratio                       = 90  " 90% of screen
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS                      = 6.
  IF sy-subrc <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
* Set very high extension -> not overruled by screen resizing
  CALL METHOD go_docking->set_extension
    EXPORTING
      extension  = 99999
    EXCEPTIONS
      CNTL_ERROR = 1
      others     = 2.
  IF sy-subrc <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
* Create ALV grid
  CREATE OBJECT go_alvgrid
    EXPORTING
      i_parent          = go_docking
    EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      OTHERS            = 5.
  IF sy-subrc <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CALL METHOD go_alvgrid->set_table_for_first_display
    EXPORTING
*      I_BUFFER_ACTIVE               =
*      I_BYPASSING_BUFFER            =
*      I_CONSISTENCY_CHECK           =
      i_structure_name              = 'KNA1'
*      IS_VARIANT                    =
*      I_SAVE                        =
*      I_DEFAULT                     = 'X'
*      IS_LAYOUT                     =
*      IS_PRINT                      =
*      IT_SPECIAL_GROUPS             =
*      IT_TOOLBAR_EXCLUDING          =
*      IT_HYPERLINK                  =
*      IT_ALV_GRAPHICS               =
*      IT_EXCEPT_QINFO               =
*      IR_SALV_ADAPTER               =
    CHANGING
      it_outtab                     = gt_kna1
*      IT_FIELDCATALOG               =
*      IT_SORT                       =
*      IT_FILTER                     =
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
* Empty dynpro without any elements
  CALL SCREEN '0100'.
* NOTE: dynpro flow logic contains only the two modules shown below 
END-OF-SELECTION.
*&      Module  STATUS_0100  OUTPUT
*       text
MODULE status_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
* Link to current dynpro
  CALL METHOD go_docking->link
    EXPORTING
      repid                       = syst-cprog
      dynnr                       = syst-dynnr
*      CONTAINER                   =
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      lifetime_dynpro_dynpro_link = 3
      OTHERS                      = 4.
  IF sy-subrc <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&      Module  USER_COMMAND_0100  INPUT
*       text
MODULE user_command_0100 INPUT.
  SET SCREEN 0. LEAVE SCREEN.
ENDMODULE.                 " USER_COMMAND_0100  INPUT
Regards
Uwe

Similar Messages

  • What should I set me screen resolution to in photoshop CC with my late 2009 27" iMac?

    What should I set me screen resolution to in photoshop CC with my late 2009 27" iMac?

    If its native resolution is 2560x1440 then some people do find it marginal with a 27 inch screen, but I'd have thought it workable if you know where everything is.  People are using that screen res on tiny laptops, but to be fair, they are not much liking it with Photoshop.
    I don't know how Retina support works with CC, but I wonder if you could force it on your iMac?
    Any Mac users out there know how Retina support works?

  • Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!

    Please help.   My Adobe InDesign document keeps crashing when I adjust the screen resolution to High in the View menu.  Desperately trying to get my magazines prepared for press today!  HELP!
    My magazine last month is still working ok - but this month's version has just started crashing for some reason.

    We can't know. You have not provided any system info, not told us what version of ID you use nor provided any specifics about the document like images, color profiles, fonts, paragraph styles and what have you...
    Mylenium

  • I want to scale the font size programmatically according to the screen resolution

    I have done scaling the front panel and front panel objects by programmatically. but the text (font) size is still remain same. It’s shows very bad. So I want to scale the font size programmatically according to the screen resolution. Can u suggest some idea to implement?
    Vijayakumar.M
    Bangalore.
    India

    This is a duplicate post. See the original post for an answer:
    http://forums.ni.com/t5/LabVIEW/i-want-to-scale-the-font-size-programmatically-according-to-the/m-p/...
    Eric S.
    Applications Engineer
    National Instruments
    E. Sulzer
    Applications Engineer
    National Instruments

  • Same object size (front panel) with different screen resolution

    Hi everybody,
    I realised an application, and I try to instal it on various computer. The probleme is that they haven't the same screen resolution, so the front panel is not the same on each computer. It is possible to build an application which have the same front panel with different screen resolution ?
    Kriss.

    Hi Krisss,
    switch off any "adapt to screen resolution" switches in the VI properties...
    You should also define "same front panel" and "same object size"! Do you mean the same pixel size or size in mm or size in percent of screen?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Auto adjust to screen resolution

    I'm pretty new to Flash and am working on a background for my website (not online yet). i was wondering how others have designed applications, such as photo galleries, that automatically adjust to the resolution of the screen on which it's being viewed, as opposed to adding or removing scroll bars to view just a standard, presized bg image, as in HTML.
    I assume this is a certain line of ActionScript, but like I said, I'm pretty new and am basically just guessing.
    Thanks for your help.

    Using 100% width and 100% height in the HTML Publish settings will get you started. You may want to review Flash "Scaling" and "aspect ratio" here:
    Here are examples of different scaling parameters available in the Publish settings. You can also add these parameters directly in the html (<param name="scale" value="noscale"). All the examples replace the actual Flash dimensions with 100% for both width and height (width="100%" height="100%"). These examples use the old <object> and <embed> to illustrate the different ways to scale Flash. Once you understand how it works I’d recommend that you use swfobject to place the Flash in your final project.
    View the source code for each page to see the full code.
    http://www.cidigitalmedia.com/tutorials/scale/exact_fit.html
    "exactFit" scales the file to fit exactly within the confines of the screen, irregardless if the movie becomes consequently distorted. The original aspect ratio is not maintained. So round things are not round and squares are not square.
    http://www.cidigitalmedia.com/tutorials/scale/noScale.html
    "noScale" is the default setting, and causes the movie to be displayed at the originally designed dimensions.
    http://www.cidigitalmedia.com/tutorials/scale/no_border.html
    "noBorder" causes the movie to be scaled to what ever dimensions are needed to have no border surrounding the movie within the player, which consequently could result in some of the movie being cut off from view. In other words, the movie will maintain the original aspect ratio and will fill the screen completely. But if the movie has to be streched wider to fill both sides of the screen, it will also stretch taller, but then some of the top and the bottom of the movie may be cut off from view.
    http://www.cidigitalmedia.com/tutorials/scale/show_all.html
    "showAll" scales the movie to the size of the screen (which could cause pixelation if the file contains raster information), the difference between showAll and exactFit is that showAll mantains initial movie size proportions. Because it maintains the original aspect ratio, there can be space to the sides or the top and bottom. But everything always shows and they are not distorted. But notice the photo in the center, it becomes pixilated at larger screen resolutions.
    The trickiest part of trying to go full screen is that it’s difficult to make the Flash wider without making it taller also, that is, to maintain the correct proportions or aspect ratio of everything on the stage. These methods are just simple scaling accomplished with html. There are also methods to dynamically scale the stage and it’s elements using Actionscript… but that’s a much more complex undertaking.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best of luck!
    Adninjastrator

  • Won't Re-Adjust the Screen Resolution

    I have a retinal display 13-in Macbook Pro running 10.8.5.  After I use an external monitor (27" Thunderbolt Display) and I unplug the thunderbolt display port to take my laptop to meetings, my Macbook Pro still thinks my resolution is 2560x1440.  The windows are really big and I need to readjust.  The same problem happens when I use dual-monitor.  Although the "system preference" does not recognize dual-monitor connection, but OSX still open a new application is a window that I cannot see.
    Is there a way force Macbook Pro to rescan for display type and adjust the display accordingly?  This is becoming really annoying because I have to reboot for my Macbook Pro to adjust to the default LCD display it has.
    Thanks in advance.

    Hi b,
    Go to System Preferences > Displays and adjust your resolution there.

  • What Screen Resolution should I Design For?

    Hi,
    For APEX applications in public sites, what should be the proper screen resolution should I design for? Also, when I put something like a chart in a region, the size of the chart is always fixed. Therefore, it may not fit a particular screen size. I am wondering what should be the proper screen resolution I should target for - considering different desktop monitors and tablets?
    Thanks.

    Hi,
    sky123 wrote:
    For APEX applications in public sites, what should be the proper screen resolution should I design for? The resolution is not the only problem. Users can use CTRL+ and CTRL- to dynamically zoom in / out the page!
    Also, when I put something like a chart in a region, the size of the chart is always fixed. Therefore, it may not fit a particular screen size. I think it is OK to have some elements with a fixed size, like charts and images, while the rest of the page resizes itself. Charts are a problem because I don't think you can give them a "width=100%" as you can do with images. I think it depends on your audience. If only 5% of users will see the page in a small screen, you should use a big chart, and vice-versa. Or have two charts, one big and one small, and dynamically hide/show them based on the screen size?
    If you use Apex 4.2, it has very interesting themes. For instance, I was surprised to see how fluid this page I created was:
    http://apex.oracle.com/pls/apex/f?p=65861:3:0::NO::P3_ROWID:AAjQ4rAGlAAAADUAAB
    If you make the browser window narrow enough, the order items region will move underneath the customer orders region... Cool! :)
    (using CTRL+ to make the page bigger doesn't do the trick though...)
    Luis

  • Have a bit of a problem. I'm trying to adjust the resolution on a 2013 27" iMac. Brand new, bought on April 6 2013 from Apple. My friend is 84 years old so, I'm trying to help him adjust the screen so he can see the screen. Any direction would be great.

    OK. Have a 84 year old that has a hard time seeing the screen. I've been able to adjust Safari's resolution to accomadate him however, I would like to adjust the screen resolution. When I open preference's / displays, it doesn't have an option to adjust. Is there a way? Maybe thourgh terminal? The computer is the new 27" iMac purchased on April 6, 2013 from Apple. Yes, it is the newest iMac without the disk (DVD) drive. It's running Mountian Lion.
    Anyone have some direction on how to solve this enigma???
    bish

    The purchase date isn't the important info here.  The actual model of the iMac is and this info is in the model identifier.  For example, I have a late-2012 iMac, model identifier is iMac 13,2.  I will add that there is no 2013 model available.  The most recent at this time is the late-2012 model which I have.
    On my display if I select Apple->System Preferences->Displays then press the button "Display" I am presented with a screen which shows Resolution and Scaled as button options.  "Best for built-in display" is the default, however, clicking on "Scaled" brings up the various resolutions that can be used with the display:
    From this I can select a display with larger items, but keep in mind that while a larger image can be selected (using a smaller width x height value) it will not be as crisp and sharp as the default.

  • Screen resolution needs to be 1024x600pixels. can't make adjustment.

    this problem is affecting only my yahoo email. everything is 'way too big for the screen. the 'alert' tells me to rt click on windows on desktop, then choose 'properties'. in the display I'm told to click the 'settings' tab in the dialog box. then, set screen resolution to 1024 x 600 pixels or higher. this is totally confusing to me, since i can't even find the 'windows desktop' location for me first step!
    very frustrating!!! where do i start?

    Another way:
    #click the Start button (lower left on the Windows taskbar),
    #click Settings,
    #click Display, a new window will open,
    #click the Settings tab,
    #use the slider to adjust the screen resolution.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • How to set Dynamic screen resolution in flex..?

    Hi All.,
    I am developing a flex application in adobe flex4. to set the application height is 100% width is 100% and using <flexmdi:MDICanvas> to set the height 780 ,so application get displayed on normal window correctly., But i try to press f11 key the screen size is expanded at the time application size is set exactly, MdiCanvass size is  not expanding on screen resolution.
    My question is how can I make sure that the application should look uniform across different platform/different browsers and different monitors to display screen resolution auto adjust in mdi canvass also.
    With Regards.,
    LinFlex-

    Hi,
    Use the below syntax...
    CALL TRANSACTION tcode... OPTIONS FROM opt
    ... OPTIONS FROM opt
    Effect
    Allows you to control processing using the values of the componetns of the structure opt, which must have the ABAP Dictionary type CTU_PARAMS. The components have the following meanings:
    DISMODE
    Display mode (like the MODE addition)
    UPDMODE
    Update mode (like the UPDATE addition)
    CATTMODE
    CATT mode (controls a CATT)
    CATT mode can have the following values:
    ' ' No CATT active
    'N' CATT without single-screen control
    'A' CATT with single-screen control
    DEFSIZE
    Use default window size
    RACOMMIT
    Do not end transaction at COMMIT WORK
    NOBINPT
    No batch input mode (that is, SY-BINPT = SPACE)
    NOBIEND
    No batch input mode after the end of BDC data.
    The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
    'X' Yes
    ' ' No
    If you do not use the OPTIONS FROM addition, the following control parameter settings apply:
    DISMODE
    From addition MODE
    UPDMODE
    From addition UPDATE
    CATTMODE
    No CATT active
    DEFSIZE
    Do not use default window size
    RACOMMIT
    Successful end on COMMIT WORK
    NOBINPT
    Batch input mode active ( SY-BINPT = X
    NOBIEND
    Batch input mode remains active after the BDC data
    Jogdand M B

  • Screen Resolution Issues

    Hi,
    I am working with a developer on an application in air and we are having trouble adjusting the screen resolution to meet the various computers that will be running the app.
    On my computer  with resolution of 1440 x 900 the app looks great but as soon as we install it on another computer with moderately weaker resolution, much of the program is cut off.
    Is there a way have the applicaiton adjust to different screen resolutions automatically? Or is there something we can write into the code that would not require countless hours of labor?
    Or can you make a recomendation as to the resolution we should be focusing on?
    Thanks!

    Design your app with the minimum screen res your audience would be using (i.e. if you plan on making your app for your gamer friends, assume theyll be on a higher resolution, your grandmother is probably a lower res). 1024x768 is the safest bet.
    use
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    instead of trying to force a specific size.

  • Screen resolution in my 18 All-in-one PC

    Screen appears stretched with the result diagrams like circles look like ovals. I am using Windows 7. I tried to adjust the screen resolution but I am given only 3 options none of which solves my problem. How should I adjust? Please help. 

    Hello @sundararaj_2000,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that your screen resolution is not what it should be and you do not have the options to correct it properly. I suspece that you do not have the correct drivers installed for your graphics card or they are corrupted. To ensure that you have the correct drivers isntalled please follow the steps below:
    First we need to determine what your product number is. You can do this by following the HP Support document that pertains to your computer type
    Notebook - How Do I Find My Model Number or Product Number?
    All-In-One - How Do I Find My Model Number or Product Number?
    Desktop - How Do I Find My Model Number or Product Number?
    Once you have your product number you can use it at HP's Drivers & Downloads page. You should see your computer listed click on it and you will be brought to your computer's drivers page. Select your operating system from the drop-down box. If you are unsure as to what operating system you are running or what version it is you  can use Which Windows operating system am I running? to determine what your operating system is and Is the Windows Version on My Computer 32-bit or 64-bit? to determine what version the operating system is. Once you have your operating system selected click 'Next' and scroll down you will see Driver - Graphics. Click on Driver - Graphics and you will see your Graphics driver. Download and save it to your Desktop or a location you will remember on your computer.
    Now that you have your wireless driver downloaded follow the instructions I have set out below:
    Step 1. At the Tiles Menu type "device manager"
    Step 2. Click on Device Manager
    Step 3. Click on Display Adapters
    Step 4. Right-click on your Display Adapter and select Uninstall
    ***Ensure you delete the driver when the option is presented
    Step 5. Go to the graphics drivers you downloaded earlier and install them
    Step 6. Restart your computer
    ***Now try to adjust your screen resolution.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • After Effects Issue uploading to Youtube - Screen Resolution

    Hi All
    I've been struggling lately trying to get my set of youtube videos to appear at the proper resolution and ideally fullscreen without the black bars at the side.
    Youtubes recommended sizes:
    1080p: 1920x1080
    720p: 1280x720
    480p: 854x480
    360p: 640x360
    240p: 426x240
    My original videos are recorded in 1280x1024 which is what my screen resolution is set to, when I drop these videos into AE i set the comp size to 1280x1024 and i get a normal correct sized video. However when i render it out and upload it to the site I am given black bars down the side of the video and it does not appear full screen. (The quality is not great either if you do go fullscreen mode in the player - but the bars remain)
    Now youtube state this is fine and works ok but as a personal preference i'd just like the video to fit the player.
    but your not rendering at the recommended settings I hear you say; well, when I change the comp setting to 1280x720 i lose the top of my video and I am stuck as to how to fix it. Is the issue i'm having to do with the original video size, should i change resolution and record at 1280x720 (i dont have a widescreen) or is there a way around this in AE? I hope its not as easy as just scaling the video down in AE and forcing it to fit, something just feels wrong when I do that.
    i would apprecaite any help! I really would.
    Simon
    (Additional - Recorded at 30FPS and Output in H.284

    You should be using the YouTube HD preset in the Adobe Media Encoder and your comps should be either standard HD 1080p or 720p. No matter what you upload to YouTube they will process the footage and set up the other resolution options.
    The important thing here is that youTube videos are either 16X9 or 4X3. Anything not at that picture aspect will end up with black borders at the top or on the sides. There is absolutely no way to override this. It cannot be done. The only way you can provide non standard video frame sizes to the public over the Internet is to use a codec that supports odd frame sizes and load it on your own server. All streaming services have standards and they are the same frame size.
    If you want to see your entire screen capture then you should either set your screen resolution to 1920 X 1080 and capture that or simply scale your screen capture footage or project so that it will fit into a standard HD comp.
    Saving a few KB in file size is not what you are looking for. The best picture and sound quality you can get in a streaming format is. That can only be achieved using the Adobe Media Encoder. The YouTube Presets are already optomized for the best you can get with this software for this delivery format. There is no need to re-invent anything. Just use the presets.

  • Unable to Change Screen Resolution in Remote Session - Windows Server 2012 R2

    Does anybody know of a way to allow Remote Desktop users to adjust their own screen resolution in a remote session under Windows Server 2012 R2? We are struggling with this and can't seem to find a solution.
    When users login to their RDP session and try to adjust their screen resolution this message is displayed in Control Panel:
    "The display settings can't be changed from a remote session."
    We don't want to use the "make text and other items larger or smaller" scaling feature, as this produces undesirable results with some of our applications.  We also don't want to have to support multiple types of RDP clients or RDP shortcut
    files.
    We have looked at other posts but can't find an answer that applies to Windows Server 2012 R2.  The closest thing we could find is KB2726399, but it only applies to Server 2008.
    Does anybody have a solution for Server 2012?
    Thanks

    Hi,
    Currently you cannot change the resolution from within the session.  This is normal and expected behavior.  
    Unfortunately this means you need to set the desired resolution before connecting by using custom .rdp files, manually within the Remote Desktop Client, custom web launch page, custom windows launch program, etc.
    -TP

Maybe you are looking for