Learn how to establish a VS Code SAP ABAP connection to on-premise systems without Cloud Connector or BTP destination setup. This step-by-step guide shows developers how to configure Visual Studio Code for Fiori development when traditional infrastructure isn’t available.
Why Connect Visual Studio Code to SAP ABAP Without Cloud Connector?
Many businesses lack the infrastructure needed for standard Fiori application development. Without licensed BAS (Business Application Studio) access or Cloud Connector setup, developers face significant challenges connecting to SAP systems to consume data and perform business transactions. While Visual Studio Code offers a direct connection option using system hostname and port number, accessing OData services can still be problematic.
This tutorial provides an alternative approach through configuration file modifications, enabling VS Code SAP ABAP connection without the typical infrastructure requirements. At Mindset Consulting, we help development teams overcome these challenges with practical solutions for SAP development on BTP and on-premise systems.

Prerequisites for VS Code SAP ABAP Connection
Before starting this Visual Studio Code SAP ABAP configuration, ensure you have:
- Network access to the SAP system (direct connection or VPN)
- Visual Studio Code installed with all required Fiori plugins
- SAP GUI Connector or equivalent for system access
- SAP Fiori tools extension for VS Code
- Node.js and npm installed on your development machine
Step-by-Step Guide: Configure VS Code for SAP ABAP On-Premise
Step 1: Create a Fiori Application Using the Generator
Launch the Fiori application generator in Visual Studio Code. When prompted for the Data Source, select “None” and proceed with the basic project setup. This creates the foundational structure needed for VS Code SAP ABAP connection configuration.

Step 2: Update Manifest.json with OData Service Path
In the manifest.json file, locate the “mainService” section and update the “uri” property with your actual OData service path. This establishes the service endpoint for your Visual Studio Code SAP ABAP application.

Note: At this point, attempting to run the application will show that metadata.xml isn’t loading in the network tab because the connection to the SAP system isn’t complete yet.
Step 3: Configure ui5.yaml File
Update your ui5.yaml file with the following critical settings for VS Code SAP ABAP connection:
- ignoreCertError: true – Bypasses certificate validation errors (use only in development environments)
- version (optional) – Specifies the SAP UI5 version if your app requires a specific version
- url – Your SAP system URL in format:
https://<system-hostname>:<port-number>

Step 4: Update ui5-local.yaml Configuration
In the ui5-local.yaml file, add the same certificate error handling:
ignoreCertError: true – This ensures consistent certificate handling across your Visual Studio Code development environment.

✅ Connection Verification: After completing Step 4, check that metadata.xml loads successfully. This confirms your VS Code SAP ABAP connection is working. You can now develop with full access to business requirements and data.
Deployment Configuration Steps
To deploy your application from Visual Studio Code to the SAP system, additional configuration files need modification:
Step 5: Add ui5-deploy.yaml to Project Structure
Manually create a ui5-deploy.yaml file in your project root directory and add the deployment configuration code as shown below.


Step 6: Update Package.json and Package-lock.json Dependencies
Add necessary deployment dependencies to both package.json and package-lock.json files. These dependencies enable Visual Studio Code to communicate with your SAP ABAP system during deployment.

Required Updates:
- Update namespace in both package files to match your project structure
- Add deployment script to package.json (this script executes during deployment)
![]()
Step 7: Add SAP System Credentials for Runtime Deployment
Create a .env file in your project root to securely store SAP system credentials used during deployment.

Security Note: Always add .env to your .gitignore file to prevent accidentally committing credentials to version control. This is crucial for maintaining secure VS Code SAP ABAP connection practices.

Step 8: Deploy Your Application to SAP ABAP
Open the integrated terminal in Visual Studio Code and execute the deployment command:
npm run deploy-old
This command triggers the deployment process, utilizing the configurations you’ve set up throughout this tutorial to push your Fiori application to the SAP ABAP on-premise system.
Benefits of This VS Code SAP ABAP Connection Method
Connecting Visual Studio Code to SAP ABAP on an on-premise system without destination systems or Cloud Connector setup provides several advantages:
- Reduced infrastructure dependencies – No need for BAS licensing or Cloud Connector
- Faster development setup – Get started quickly with minimal configuration
- Cost-effective development – Eliminate additional infrastructure costs during development
- Local control – Full control over your development environment
- Flexible deployment – Deploy directly from VS Code to SAP systems
Troubleshooting Common Issues
Metadata.xml Not Loading
If metadata.xml fails to load after Step 4:
- Verify network connectivity to the SAP system
- Confirm the OData service path in
manifest.jsonis correct - Check that port numbers and hostname are accurate in
ui5.yaml - Ensure
ignoreCertErroris set totruein both YAML files
Deployment Failures
If deployment fails:
- Verify credentials in the
.envfile are correct - Ensure all dependencies are installed (
npm install) - Check that the namespace matches in package files
- Confirm the deployment script is properly configured
Certificate Errors Persisting
If certificate errors continue despite configuration:
- Verify
ignoreCertError: trueis present in both YAML files - Check for typos in configuration file syntax
- Restart Visual Studio Code after making changes
Best Practices for VS Code SAP ABAP Development
When working with Visual Studio Code for SAP ABAP development:
- Use version control – Always exclude
.envand credential files from Git - Document configuration – Maintain a README with setup instructions for team members
- Test incrementally – Verify each configuration step before proceeding
- Use development systems – Never use this method directly on production systems
- Monitor performance – Watch for network latency issues with on-premise connections
When to Use This Method vs. Cloud Connector
This VS Code SAP ABAP connection approach is ideal for:
- Development and testing phases
- Proof-of-concept projects
- Organizations without Cloud Connector infrastructure
- Rapid prototyping scenarios
- Individual developer workstations
For production environments or enterprise-scale development, consider implementing proper SAP BTP infrastructure with Cloud Connector for enhanced security, governance, and scalability.
Next Steps in Your SAP Fiori Development Journey
Now that you’ve established your VS Code SAP ABAP connection, explore these related topics:
- Advanced Fiori development techniques
- SAP BTP development best practices
- ABAP RESTful Application Programming (RAP) model
- OData service optimization strategies
- UI5 performance tuning for on-premise systems
Expert SAP Development Support from Mindset
Connecting Visual Studio Code to SAP ABAP on-premise systems without traditional infrastructure streamlines your development workflow. By following these configuration steps, you can seamlessly integrate your local development environment with SAP systems for faster, more convenient coding and testing.
Need help with more complex SAP development scenarios? At Mindset Consulting, we specialize in:
- SAP Fiori application development with modern tools and frameworks
- SAP BTP architecture and implementation
- ABAP development modernization
- Cloud and on-premise integration strategies
- Developer productivity optimization
Ready to accelerate your SAP development? Contact Mindset Consulting to discuss how we can help your team build better SAP solutions faster.
Looking for more SAP development tutorials? Visit our blog for comprehensive guides on Fiori, ABAP, and SAP BTP development.