Skip to content

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.

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.

None.

ParameterTypeDefaultDescription
sessionZoanSapSession—SAP session. Omit it inside the body of an SAP — Attach or SAP — Log on.
windowstring"wnd[0]"Window to maximize.

This activity does not return a value.

MessageCause 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.

SAP Attach system = "DEV" client = "001"
└─ body:
SAP Maximize
SAP Run Transaction code = "SE16"
... read the table ...