SAP BTP Start-up
Pricing
Pay per usage
Go to Apify Store
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Warren Eiserman
Maintained by Community
Actor stats
0
Bookmarked
1
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
SAP BTP System Management Automation
An Apify Actor that automates starting and stopping SAP BTP systems through the Landscape Portal using Playwright and Python.
π― Features
- Automated Login: Handles SAP BTP authentication automatically
- System Management: Start or stop SAP BTP systems programmatically
- Flexible Configuration: Manage different systems with simple configuration changes
- Debug Mode: Run in non-headless mode locally to see browser interactions
- Error Handling: Comprehensive error handling with screenshots for debugging
- Video Recording: Optional video recording of browser sessions for troubleshooting
π Prerequisites
- Python 3.8 or higher
- Node.js 14 or higher
- Apify CLI
- macOS, Linux, or Windows
π Quick Start
1. Installation
# Clone the repositorygit clone <your-repo-url>cd sap-btp-automation# Install Apify CLI globallynpm install -g apify-cli# Create Python virtual environmentpython3 -m venv venvsource venv/bin/activate # On Windows: venv\Scripts\activate# Install Python dependenciespip install -r requirements.txt# Install Playwright browsersplaywright installplaywright install-deps
2. Configuration
Create an input.json file in the project root:
{"start_urls": [{"url": "https://shared-services.us10.landscape-portal.cloud.sap/ui#systemhibernation-manage"}],"system_to_start": "H01","action": "Start","btp_username": "your-username@company.com","btp_password": "your-password","headless": false}
3. Run the Actor
# Run with input.jsonapify run -p input.json# Run with defaults (configured in main.py)apify run
π Configuration Options
Input Schema
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
start_urls | Array | Yes | - | Array containing the Landscape Portal URL |
system_to_start | String | Yes | "H01" | System ID to manage (e.g., H01, H02, H03) |
action | String | No | "Start" | Action to perform: "Start" or "Stop" |
btp_username | String | Yes | - | Your SAP BTP username |
btp_password | String | Yes | - | Your SAP BTP password |
headless | Boolean | No | false | Run browser in headless mode |
Example Configurations
Starting a System
{"system_to_start": "H01","action": "Start","btp_username": "user@company.com","btp_password": "password"}
Stopping a System
{"system_to_start": "H02","action": "Stop","btp_username": "user@company.com","btp_password": "password"}
π οΈ Development
Local Development Setup
- Enable Debug Mode: Set
headless: falsein your input.json to see the browser - Screenshots: Debug screenshots are saved automatically during execution
- Video Recording: Videos are saved in the
./videosdirectory when running locally - Console Logging: Browser console messages are logged to help with debugging
Project Structure
sap-btp-automation/βββ .actor/β βββ input_schema.json # Input schema definitionβββ src/β βββ main.py # Main automation scriptβββ storage/β βββ datasets/ # Output data storageβ βββ key_value_stores/ # Key-value storageβββ videos/ # Recorded videos (local only)βββ input.json # Input configurationβββ requirements.txt # Python dependenciesβββ .gitignoreβββ README.md
Debugging Tips
- Run with Playwright Inspector:
$npx playwright codegen https://your-