SAP — Maximize
SAP — Maximize
Section titled “SAP — Maximize”Type: sap-maximize · Package: SAP Activities v1.0.5
Maximizes the SAP window. It looks like a detail, but it helps: in a bigger window classic tables show more rows at once, and reading them with SAP — Read table takes fewer scrolls (and fewer round trips to the server). It also leaves the screen at a predictable size, the same on any machine.
How it works
Section titled “How it works”It waits for SAP to finish processing and maximizes the window given in window (by default the main one, wnd[0]). If that window doesn’t exist, it fails.
Required parameters
Section titled “Required parameters”None.
Optional parameters
Section titled “Optional parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
session | ZoanSapSession | — | SAP session. Omit it inside the body of an SAP — Attach or SAP — Log on. |
window | string | "wnd[0]" | Window to maximize. |
Output
Section titled “Output”This activity does not return a value.
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
Window '…' does not exist. | The window is not open. The activity does not wait for it to appear. |
Plus the errors common to all activities.
Example
Section titled “Example”SAP Attach system = "DEV" client = "001" └─ body: SAP Maximize SAP Run Transaction code = "SE16" ... read the table ...Related activities
Section titled “Related activities”- SAP — Read table — benefits from seeing more rows per screen.
- SAP — Attach and SAP — Log on — get the session.