The most complete AI assistant for SAP ABAP developers. Type @sagr in VS Code Chat and get instant expert guidance from SAGR on ABAP, S/4HANA migration, performance optimization, and more.
💡 Works offline. SAGR monitors SAP health. Checks code quality. Shares team knowledge. 50-80% faster sync. All built-in.
✨ What's New in v6
- Real-time SAP Connection Monitoring — Auto-reconnect on failures, health metrics, latency tracking
- Advanced Multi-Layer Caching — 10x faster repeated searches (memory + disk cache)
- Team Collaboration — Code reviews, team knowledge base, shared solutions
- Code Quality Checker — Pre-deployment validation with 4 built-in rules
- Offline Mode — Full search & analysis without SAP connection
- Performance Optimization — Batch processing, parallelization (75% faster sync)
- User Preferences — 24 customizable settings for your workflow
🎯 Quick Start
1. Install
Search "SAGR" in VS Code Extensions (or install from marketplace)
2. Configure
- Open VS Code Chat: Ctrl+Alt+I (or Cmd+I on Mac)
- Type:
@sagr /connect - Follow prompts to add SAP & AI credentials
3. Use
@sagr /analyze I need a PO receipt report by vendor
@sagr /create program to read customer master data
@sagr /review ZMM_MY_PROGRAM
@sagr /explain This BAPI call
@sagr /quality check my code
@sagr /sync sync and build vector memory
@sagr /status show connection health
Or just chat naturally:
@sagr How do I post a goods movement with BAPI?
@sagr What's the difference between FM and BAPI?
@sagr Show me the migration path to S/4HANA
🧠 How SAGR Works
Before Writing Code
- Clarifies your requirement (asks smart questions)
- Searches existing Z* programs for similar patterns
- Suggests standard BAPIs or function modules
- Confirms package, transport, and naming conventions
- Verifies syntax before delivering code
Smart Error Handling
When code has issues:
- Shows all syntax errors in a table
- Offers 🔧 "Fix Automatically" button
- Or 📝 "Open in Editor" for manual fixes
- You're in control — SAGR never auto-fixes without permission
Advanced Features
| Feature | What It Does |
|---|---|
| Vector Memory | Understands your code patterns & suggests similar solutions |
| GitHub Integration | Analyzes public repos for modern ABAP patterns |
| Performance Tips | Identifies slow code, suggests optimizations |
| Where-Used | Find program dependencies instantly |
| S/4HANA Conversion | Suggests modern replacements for old patterns |
| Transport Mgmt | Tracks changes across systems |
| Security Check | Flags SQL injection, hardcoded values, risky patterns |
📊 Performance
| Operation | Before | After | Gain |
|---|---|---|---|
| Sync 100 programs | 40s | 5s | 87% faster |
| UI initialization (cached) | 3s | 100ms | 97% faster |
| Code quality check | Manual | ~500ms | Automated |
| Team review cycle | 5s | 10x faster | |
| Large dataset processing | 1 at a time | 50 parallel | 50x faster |
🔐 Security & Privacy
- Secure credential storage via VS Code keychain
- No data sent to cloud (unless using AI models)
- Offline mode — full functionality without internet
- Open source — audit the code yourself
- MIT Licensed — use freely in enterprises
🎛️ Configuration
Customize SAGR for your team:
@sagr /preferences
Set up:
- Development: Default package, transport type
- UI: Theme, notification settings
- Performance: Cache size, batch processing limits
- Advanced: Logging, retry behavior
- AI: Model selection, API keys
- Team: Collaboration features, team settings
📚 Commands
| Command | Purpose |
|---|---|
/connect |
Connect to SAP system |
/sync |
Sync programs and build vector memory |
/create |
Generate new ABAP program |
/review |
Code review |
/spec |
Technical specification |
/fs |
Functional specification |
/explain |
Explain existing program |
/save |
Save to SAP |
/migrate |
S/4HANA migration plan |
/whereused |
Find dependencies |
/clone |
Clone GitHub repo |
/perf |
Performance analysis |
/convert |
Convert code syntax |
/quality |
Quality check before deploy |
/preferences |
Customize settings |
/status |
Connection health |
/help |
Show all commands |
🤝 Team Features
Code Reviews
- Request review:
@sagr /review ZMY_PROGRAM - Add comments on specific lines
- Approve or request changes
- Track review history
Team Knowledge Base
- Share solutions:
Share this with team - Search team knowledge:
@sagr show me how we do PO creation - Public/team/private visibility controls
- Team statistics and insights
🌍 Supported SAP Systems
- ✅ SAP ECC (6.0+)
- ✅ SAP S/4HANA (On-Premise & Cloud)
- ✅ SAP BW/4HANA
- ✅ Custom ABAP deployments
Requires: ADT (ABAP Development Tools) services enabled in SAP
📋 Requirements
- VS Code: 1.85+ (for Chat Participants API)
- SAP System: ECC 6.0+, S/4HANA, or custom with ADT
- AI Model Key: Claude (Anthropic), OpenAI, Gemini, Deepseek, or OpenRouter
- Node.js: 16+ (built-in to VS Code)
Optional AI Providers (pick 1+)
- Claude 3 (recommended) — console.anthropic.com
- GPT-4/4o — platform.openai.com
- Gemini Pro — makersuite.google.com
- DeepSeek — platform.deepseek.com
- OpenRouter — openrouter.ai
🏪 Marketplace Publisher Migration
If you changed publisher in package.json to theprotechglobal, the VSIX can only be published using the same Marketplace publisher account.
Common upload error:
Publisher ID 'theprotechglobal' provided in the extension manifest should match the publisher ID 'JakkaHarikeshavaReddy' under which you are trying to publish this extension.
Fix steps:
- Create or verify the Marketplace publisher ID:
theprotechglobal - Generate a PAT for that publisher account with Marketplace manage permissions
- Login with the new publisher ID:
npx @vscode/vsce login theprotechglobal
- Publish with the same account:
npx @vscode/vsce publish -p <PAT>- or upload the VSIX while signed in as
theprotechglobal
Important:
- You do not need to delete the old publisher extension first.
- Changing publisher creates a new Marketplace identity (
publisher.extensionName). - Existing users on the old publisher listing do not auto-migrate to the new listing.
🚀 Performance Monitoring
View real-time SAP health:
@sagr /status
Output:
┌─ SAP Connection Status ─────────────┐
│ Status: ✅ Connected │
│ Latency: 95ms │
│ Uptime: 12h 34m │
│ Last check: 30s ago │
│ Queue depth: 3 operations │
│ Cache hit rate: 87% │
└─────────────────────────────────────┘
🔄 Offline Mode
When SAP is unavailable:
- ✅ Search cached programs
- ✅ Analyze code locally
- ✅ Generate documentation
- ✅ Access team knowledge base
- ✅ Review previous analyses
- 🔄 Prepare sync for when online
Automatic fallback — transparent to you.
🐛 Troubleshooting
"Cannot connect to SAP"
- Verify SAP ADT is enabled:
http://your-sap:50000/sap/bc/adt/ - Check credentials in
/connect - Try
/statusto see error details
"Vector search not working"
- Sync programs first:
@sagr /sync - Wait 1-2 minutes for indexing
- Try search again
"Slow performance"
- Check
/statusfor SAP latency - Go offline:
/offline(uses local cache) - Adjust batch size in
/preferences
"Code quality check fails"
- Verify ABAP syntax:
/explainthe code - Run
/quality checkfor detailed issues - Fix one rule at a time
See Troubleshooting Guide for more help.
📖 Documentation
- Marketplace Publishing Guide — How to publish to VS Code Marketplace
- Feature Completeness Guide — All 7 enterprise features explained
- Performance Optimizations — 50-80% speed improvements
- Changelog — Version history and updates
🛠️ Contributing
Found a bug? Have a feature request?
- Report: https://github.com/jharikeshavareddy/-sagr-sap-assistant/issues
- Discuss: Conversations tab on marketplace
- Contribute: Fork the repo and submit PRs
📄 License
MIT License — Use freely in commercial projects
👨💻 Built By
Hari Keshava Reddy Jakka
- Email: [email protected]
- GitHub: https://github.com/jharikeshavareddy
🙏 Thank You
Thanks to all ABAP developers who use SAGR. Your feedback makes it better every day.
Questions?
- Comment on the marketplace page
- File an issue on GitHub
- Reach out to the author
Ready to code faster? Install SAGR now! ⚡