Overview
Instances represent specific SAP environments within a system. Each instance has its own base URL and can have its own authentication configuration.Instance Types
S4Kit supports five instance levels, in priority order:Instance Priority
When an API key has access to multiple instances and no specific instance is requested, S4Kit automatically selects the highest-priority available instance.Creating an Instance
Via Dashboard
- Navigate to a System
- Click Add Instance
- Configure the instance:
Base URL Format
The base URL should point to your SAP gateway:Don’t include the OData service path in the base URL. The platform appends the service path automatically.
Authentication
Each instance can have its own authentication configuration, or inherit from the system level.Authentication Types
Configuring Authentication
- Go to the instance settings
- Click Configure Authentication
- Select the authentication type
- Enter credentials
Authentication Inheritance
Authentication can be configured at multiple levels:- Instance Level: Specific to one environment
- System Service Level: Shared across instances for a service
- Instance Default: Fallback for the instance
Managing Instances
Edit Instance
- Navigate to the instance
- Update fields as needed
- Click Save
Delete Instance
- Navigate to the instance
- Click Delete Instance
- Confirm the deletion
Connection String
Each instance has a connection string for the SDK:Health Monitoring
The dashboard shows instance health status:
Click Test Connection to verify an instance is reachable.
Best Practices
URL Consistency
Keep base URLs consistent across environments:Credential Rotation
Regularly rotate SAP credentials:- Create new credentials in SAP
- Update the instance configuration
- Verify connectivity
- Disable old credentials in SAP
Testing New Instances
Before using a new instance:- Configure authentication
- Click Test Connection
- Bind at least one service
- Test with a simple API call