Two everyday helpers for SAP ABAP development in VS Code:
- Silent Auto Log On to all SAP systems (saved passwords)
- Open ABAP Object in all systems (Ctrl+Shift+A)
Extension created by Marwan Al-Tawansy.
1. Silent Auto Log On to all SAP systems (saved passwords)
Save your passwords once
Status bar SAP → Edit saved passwords. A page opens listing your systems:
ECC_DEV = ******** <- saved (leave it as is)
S4_DEV = <- not saved: type the password here
Type or change a password and press Ctrl+S. That's all: it's encrypted with Windows DPAPI into %APPDATA%\SAP-ABAP-Easy-Tools\passwords.dat, and the page shows ******** again. To remove one, make its line empty and save. The page is never written to disk as plain text.
From then on, VS Code logs on to those systems automatically when it starts, in the background: no popup, nothing to type, and you can keep working meanwhile.
Log on when you want
- Explorer title bar: the sign-in button next to New File / Refresh logs on to every system that isn't logged on yet.
- Status bar (bottom left):
SAP 3/5 means 3 of 5 systems are logged on.
- Hover to see each system: 🟢 logged on, ⚪ not logged on, 🔑 password saved.
- Click for a menu:
- Silent Auto Log On: systems with a saved password, no popup, nothing to type.
- Log on to all: you type the password for systems without a saved one.
- Pick one system to log on to it. If it's already logged on, this opens it in the Explorer.
- Edit saved passwords
- Log on when VS Code starts...
- Open ABAP Object
- Log off all
- One system from the Explorer: right-click its folder and use ADT's own Log On to Destination.... A saved password is used here too.
Each system uses ADT's normal logon (password or SSO), one after the other. To leave a system logged off, just cancel its prompt. It's skipped, and status always comes from ADT, so it's never shown as logged on.
At startup
Status bar SAP → Log on when VS Code starts... and pick one:
- Silent Auto Log On (systems with saved passwords) (default): no popup, nothing to type. Does nothing until you save a password.
- All systems: you type the password for systems without a saved one.
- Off
This is the setting sapEasyLogin.logonOnStartup.
How the saved passwords stay safe
- Only you can read them. Only your Windows account can decrypt the store. It's useless if copied to another PC or another user.
- In the background. When ADT asks for a password, the extension hands the saved one straight to ADT. No popup is shown and nothing is typed, so you can keep clicking and typing anywhere while it logs on.
- Decrypted only when needed. A password is decrypted only at the moment ADT asks for it, for that one logon.
- Every ADT logon. It also works when ADT logs on by itself, for example to reopen an ABAP file that was open when you closed VS Code.
- Can't lock your SAP user. If SAP rejects a saved password, it isn't used again until you change it in Edit saved passwords; you get a warning and ADT's normal popup.
- Fallback. If a future ADT version blocks the background fill, the extension types the password into ADT's popup instead (only into a password box in VS Code). Then don't click elsewhere while it logs on.
- Easy to turn off: turn off
sapEasyLogin.autoFillPassword, or use Delete all saved passwords.
- Changed a password in SAP? Open Edit saved passwords, replace the
******** for that system, and press Ctrl+S.
About log off: ADT can't log off a single system. Log off all restarts VS Code's extensions, which ends every ADT session. It asks for confirmation first. Save unsaved ABAP changes before you use it.
2. Open ABAP Object in all systems (Ctrl+Shift+A)
An Eclipse-style Open ABAP Development Object dialog that searches every logged-on system at once.
- Type a name or pattern.
ZMM is searched as ZMM*, and * works anywhere.
- To filter by type, add types after a space:
ZCL_* CLAS INTF, ZMM* PROG.
- Results from all systems appear as each system answers. Each line shows the type and the system.
- Objects that exist in only one system are marked (only in ECC_DEV). This is handy when comparing ECC with S/4.
- Press Enter to open the object in the ADT editor.
- If text is selected in the editor, the dialog opens already searching for it.
- The eye button shows or hides per-system errors (hidden by default).
Ctrl+Shift+A is set up automatically. The first time VS Code starts, the extension adds three lines to your keyboard shortcuts:
- Ctrl+Shift+A opens this search.
- Ctrl+Shift+Alt+A opens ADT's original single-system dialog.
This happens once. To change it, run Preferences: Open Keyboard Shortcuts (JSON) and edit the lines marked Added by "SAP ABAP Easy Tools". If you use a VS Code profile other than Default, copy these lines into that profile's shortcuts:
{ "key": "ctrl+shift+a", "command": "-adt-vscode.openAbapObject" },
{ "key": "ctrl+shift+a", "command": "abapFindAll.open" },
{ "key": "ctrl+shift+alt+a", "command": "adt-vscode.openAbapObject" }
Requirements
- SAP ABAP Development Tools for VS Code (
sapse.adt-vscode): installed automatically with this extension. Add your systems as workspace folders (ABAP: Add Destination as Folder to Workspace...).
adt.mcpServer.enabled: turned on automatically the first time the extension starts. The search needs it, and the status bar uses it to show who is logged on. If you turn it off later, it stays off.
adt.mcpServer.accessRestrictions → destinations: set to * (all systems) automatically if it's empty, so the search can reach your systems. packages-objectChanges is left as it is; this extension never changes objects.
- Material Icon Theme (
PKief.material-icon-theme): installed automatically with this extension. To use its icons, pick it in File → Preferences → Theme → File Icon Theme.
- Claude Code (optional): if it's installed, the extension connects it to ADT's MCP server automatically (a user-level
adt MCP entry with ADT's address and token), and updates it if ADT's port or token changes. Start a new Claude chat afterwards. To redo it by hand: SAP: Connect Claude Code to ADT in the Command Palette.
- Saved passwords need Windows (they're encrypted with Windows DPAPI). Everything else works on any system ADT supports.
Settings
| Setting |
Default |
What it does |
sapEasyLogin.logonOnStartup |
savedPasswords |
Logs on when VS Code starts: off, savedPasswords (automatic) or all |
sapEasyLogin.autoFillPassword |
true |
Gives the saved, encrypted password to ADT in the background |
abapFindAll.showSystemErrors |
false |
Shows a warning line when a system can't be searched |
abapFindAll.excludeDestinations |
[] |
Systems never searched, e.g. ["CRM_DEV"] |
The extension only logs on, searches and opens objects. It never changes anything in SAP.
Troubleshooting
To see every search, logon attempt and error, open View → Output and choose SAP ABAP Easy Tools.
- "Cannot reach ADT MCP server": check that
adt.mcpServer.enabled is on and log on to a system.
- "access denied" for a system: that system isn't allowed in
adt.mcpServer.accessRestrictions.
Feedback
Questions, ideas or problems? Email Marwan Tawansy: