
constructor
You use this method to instantiate the SAP Toolbar.
CREATE OBJECT toolbar
EXPORTING parent = parent
shellstyle = shellstyle
lifetime = lifetime
display_mode = display_mode
EXCEPTIONS cntl_install_error = 1
cntl_error = 2.
Parameter |
Meaning |
lifetime |
Lifetime management parameter. The following values are permitted:
toolbar->lifetime_imode : The control remains alive for the duration of the internal session (that is, until the session is ended by one of the following statements: leave program. leave to transaction. set screen 0, leave screen. ). After this, the finalize method is called.toolbar->lifetime_dynpro : The control remains alive for the lifetime of the screen instance, that is, for as long as the screen remains in the stack. After this, the free method is called.Using this mode automatically regulates the visibility of the control. Controls are only displayed when the screen on which they were created is active. When other screens are active, the controls are hidden. toolbar->lifetime_default : If you create the control in a container, it inherits the lifetime of the container. If you do not create the control in a container (for example, because it is a container itself), the lifetime is set to toolbar->lifetime_imode . |
Shellstyle |
Controls the appearance and behavior of the control You can pass any constants from the ABAP include < CTLDEF > that begin with WS. You can combine styles by adding the constants together. The default value sets a suitable combination of style constants internally. |
parent |
Container in which the SAP Toolbar can be displayed ( see also
SAP Container). |
display_mode |
The alignment of the toolbar: |