Script Editor

Edit Groovy and JavaScript scripts inside iFlows directly from your browser — no SAP Web IDE needed.

Opening the Editor

From the Assets tab, click the pencil icon next to any iFlow, or right-click → Edit Scripts. The editor opens in a full-screen panel showing all scripts inside that iFlow.

Browsing Scripts

The left panel lists all script files found inside the iFlow archive:

Editing and Saving

The editor is a full Monaco editor (same as VS Code) with syntax highlighting for Groovy and JavaScript.

⚠ Important: Saving a script modifies the iFlow artifact on CPI. The running runtime version is unchanged until you click Deploy. Always test in a non-production tenant first.

Linting

CPI Studio includes a comprehensive lint engine with 25+ rules. Groovy scripts are checked by three dedicated rule sets that run automatically when you lint an iFlow:

The linter scans all .groovy and .gsh files in the iFlow and reports exactly how many files were checked, so you can confirm full coverage.

Contextual Toolbar

When you open a file in the editor, the toolbar shows context-sensitive buttons based on the file type:

AI Script Assistant (Pro/Enterprise)

With an OpenAI API key configured, the editor shows an ✨ Ask AI button. You can:

See AI Assistant for full details.

Keyboard Shortcuts

ShortcutAction
Cmd/Ctrl + SSave current file
Cmd/Ctrl + Shift + PCommand palette
Cmd/Ctrl + FFind in file
Cmd/Ctrl + Shift + FFind across all scripts
Alt + Shift + FFormat document
Cmd/Ctrl + ZUndo