Liquid UI - WS Reference Library

windowsize()


Purpose

With windowsize(), you can re-size or re-position popup windows in SAP.


Syntax

windowsize([startrow,startcol,width,height]);


Property

  • startrow, startcol - window co-ordinates.
  • width, height - height and width of window on SAP screen.


Options

The windowsize() command does not take any options.


Example

The following examples demonstrates the usage of the windowsize() command:

Repositioning & Resizing popup windows

  1. Navigate to SAP Easy Access screen.
  2. Execute the transaction code, /o.
  3. Popup window appears, as shown in the figure:
  1. Create the script file with the filename, RSM04000_ALV.E2000.sjs, with the following commands:
    windowsize([25,4,63,8]);
  2. Refresh the screen.
  3. The popup window appears resized, as shown in the figure:


Tips and Tricks

  • System Variable:_windowsize

    The system variable is used to retrieve either the width or the height of your SAP window in pixels.

    title("Width: "+_windowsize_x+", Heigth: "+_windowsize_y);

    Learn more _windowsize displayed in your SAP screen.