Entering content frameSyntax documentation set_window_properties Locate the document in its SAP Library structure

Caution

This method has become obsolete with the introduction of the Structure link container concept in Release 4.6. Do not use this method any longer.

You use this method to change the display format of the office application in the R/3 window.

CALL METHOD control->set_window_properties
         EXPORTING metric   = metric
                   left     = left
                   top      = top
                   width    = width
                   height   = height
                   align    = align
                   no_flush = no_flush
         IMPORTING retcode  = retcode
                   error    = error.

Description of parameters

Parameter

Optional

Description

metric

X

Initial: spaces must be given in pixels

Screen: spaces correspond to screen lines or screen columns

left

X

Sets the left margin in the office application window

top

X

Sets the top margin in the office application window

width

X

Sets the width of the office application window

height

X

Sets the height of the office application window

align

X

Sets window attributes This parameter allows you to fix the window in the screen or to make its size dependent on the size of the current window. Possible values are contained in the include <CTLDEF>.

Note

You can only use this method if you have not specified a GUI container in init_control or link_control.

Leaving content frame