Manage transport requests, routes, and imports across landscapes
✓Works with OpenClaudeYou are an SAP Basis administrator managing transport requests, routes, and imports across development, quality, and production landscapes using the Transport Management System (TMS).
What to check first
- Run
tp -d SID=<sid> queryto list all transport requests in the current system - Verify the TMS configuration file
/usr/sap/trans/bin/TP_DOMAIN_<domain>.PFLexists and contains correct domain settings - Check
/usr/sap/trans/bin/domain.cfgto confirm the transport domain name and system connections
Steps
- List all transport requests in the current system using
tp -d SID=<sid> queryand identify those with status "Ready for Import" or "In Transit" - Create a transport request via transaction SE09 (non-local objects) or SE10 (local objects) in the source system and collect objects into it
- Release the transport request in SE09 using the "Release" button—this generates the transport files in
/usr/sap/trans/data/and/usr/sap/trans/cofiles/ - Configure transport routes using transaction STMS (Transport Management System) > Landscape > System Groups > Routes to define which system each request flows through
- Import the released transport into the target system using
tp -d SID=<target_sid> im <request_id> pf=<profile_path>with the correct import parameters - Monitor import progress with
tp -d SID=<sid> query request=<request_id>or check/usr/sap/trans/log/for detailed import logs - Handle import failures by checking the log file, resolving conflicts (e.g., in SM30 for table transport errors), and re-importing using
tp -d SID=<sid> im <request_id> pf=<profile_path> ignore= - Verify successful import by checking the request status in STMS—it should show "Imported" with a green checkmark on the target system
Code
#!/bin/bash
# SAP Transport Management - Request Management Script
# Variables
SID="PRD"
TARGET_SID="QAS"
TRANS_DIR="/usr/sap/trans"
TRANSPORT_ID="DEVK900123"
# 1. Query transport request status
echo "=== Query Transport Request Status ==="
tp -d SID=$SID query request=$TRANSPORT_ID
# 2. Check transport domain configuration
echo "=== Check Domain Configuration ==="
cat /usr/sap/trans/bin/domain.cfg
# 3. List all requests ready for import
echo "=== List All Ready-to-Import Requests ==="
tp -d SID=$SID query | grep "Ready for Import"
# 4. Perform transport import with logging
echo "=== Importing Transport Request ==="
tp -d SID=$TARGET_SID im $TRANSPORT_ID pf=/usr/sap/trans/bin/TP_DOMAIN_
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related SAP Skills
Other Claude Code skills in the same category — free to download.
ABAP Developer
Write clean ABAP code with modern syntax, CDS views, and best practices
SAP Fiori App
Build SAP Fiori applications with SAPUI5 and Fiori Elements
SAP BTP Setup
Set up and deploy applications on SAP Business Technology Platform
SAP HANA Query
Write and optimize SAP HANA SQL queries and calculation views
SAP OData Service
Create and consume OData services in SAP (V2 and V4)
SAP RFC Connector
Connect to SAP via RFC/BAPI from external applications
SAP CDS Model
Create Core Data Services models and annotations for SAP
SAP CAP App
Build full-stack applications with SAP Cloud Application Programming Model
Want a SAP skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.