brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
sap-windowsgui-logonLog on to a locally installed SAP GUI for Windows system from a JSON configuration, preferring pywin32 with SAP GUI Scripting and automatically falling back to sapshcut.exe when scripting is unavailable before credentials are submitted. Use when Codex needs to validate an SAP GUI logon configuration, start an SAP Logon connection, handle a server with GUI S…
Independent GitHub snapshot · Automated classification · Original documentation governs
Use the bundled PowerShell launcher backed by scripts/logon.py. It selects between pywin32 SAP GUI Scripting and SAP Shortcut; do not reimplement the login with keystrokes, OCR, window titles, or fixed screen coordinates.
Use %USERPROFILE%\.sap-windowsgui-logon\config.json unless the user provides another configuration path.
If the configuration does not exist, copy assets/config.example.json to that location and ask the user to fill it locally. Never ask the user to paste a password into chat.
Do not read, print, summarize, or pass configuration values on the command line. Pass only the configuration file path to the script.
Validate the configuration before a first live login:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/logon.ps1 -ValidateOnly
Run the live login after validation:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/logon.ps1
Add -ConfigPath "<LOCAL_CONFIG_PATH>\config.json" only for a non-default configuration. Add -SapLogonPath or -SapShcutPath only when the executables cannot be discovered automatically.
Use the automatic SAP Shortcut fallback by default. Add -DisableSapshcutFallback only when the user rejects command-line password exposure.
Report the selected method and whether authentication was verified. Never expose the password or the full configuration content.
The JSON file must contain the following required string fields:
Description: exact, case-sensitive SAP Logon connection description.Client: three-digit SAP client, including leading zeros.User: SAP user name.Password: SAP password. Preserve leading or trailing characters.LogonLanguage: two-letter SAP logon language such as EN, DE, or ZH.System is optional. Set it to the three-character SAP system ID when Description cannot be mapped uniquely through %APPDATA%\SAP\Common\SAPUILandscape.xml for the SAP Shortcut fallback.
Store the configuration outside the repository and restrict its NTFS permissions to the intended Windows user. The script never writes the configuration or logs its contents.
pywin32>=311.scripts/requirements.txt pinned to the tested baseline. The logon script
accepts installed dependency versions that meet or exceed the minimum and runs
the normal validation or login first. If that flow fails while the installed
dependency version differs from the tested baseline, report both versions and
recommend reproducing with scripts/requirements.txt.OpenConnection(Description), fill the login screen through SAP technical control IDs, and verify the authenticated client and user.DisabledByServer, or no scriptable session/login controls become available.Description to a system ID, and launch sapshcut.exe with system, client, user, password, and language arguments.Scripting success means the created SAP session reports the requested client and a non-empty authenticated user. SAP Shortcut success means sapshcut.exe accepted the request, but authentication remains unverified. A validation-only run verifies configuration shape without starting or controlling SAP GUI. Any missing prerequisite, mapping error, rejected login, secondary dialog, or executable failure returns a nonzero exit code and leaves SAP windows available for manual inspection.