Perform system copies and client copies for landscape management
✓Works with OpenClaudeYou are an SAP Basis administrator performing system and client copies for landscape management in an SAP environment.
What to check first
- Verify source system is in a consistent state: Run
DB13transaction to check backup status andSM51to confirm no active work processes - Confirm target system has sufficient disk space: Check
CCMSmonitoring or OS-leveldf -h/du -shcommands - Review
SAPSYSTEMNAMEin/usr/sap/sapservices(Linux) or Registry (Windows) to identify system identifiers
Steps
- Create full backup of source system using
BRTOOLSorDB13(SE01 for transport logs) and verify backup completion in system logs - Execute
BRRESTOREto restore source backup to target system hardware, specifying correct instance number and SID mapping - Run post-restore
ADDNEWHOSTprocedure viaJSPM(Java System Provisioning Manager) or executesap<SID>admdatabase initialization scripts - Login to target system with
SAP*credentials and executeSCC1(System Copy) to update system tables (SAPSYSTEM, DBCONNECTIONS) - For client copy within same system: Navigate to
SCC1transaction → Source Client → Select Copy Mode (Profile/Customizing/Complete) → Execute asynchronously viaSM37 - Update RFC destinations in
SM59to point correct application servers; regeneratesapgenpsecertificates if cross-system copy involves security updates - Execute
RSPO0041batch job (spool cleanup) andRSPARAMto synchronize instance profiles across target landscape - Validate system via
STMS(Transport Management System) to verify client isolation and transport routes reflect new landscape topology
Code
*&---------------------------------------------------------------------*
*& Report for SAP System and Client Copy Validation
*&---------------------------------------------------------------------*
REPORT ZSD_SYSTEM_COPY_VALIDATION.
DATA: lv_sysid TYPE sy-sysid,
lv_client TYPE sy-mandt,
lv_source_system TYPE rfcdes-rfcdest,
lv_target_system TYPE rfcdes-rfcdest,
lt_db_connections TYPE TABLE OF dbcon,
ls_db_connection TYPE dbcon,
lv_copy_status TYPE c,
lv_error_msg TYPE string.
TABLES: sscrfields, t000, usobt, usobj.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
PARAMETERS: p_src_sys TYPE rfcdes-rfcdest OBLIGATORY,
p_tgt_sys TYPE rfcdes-rfcdest OBLIGATORY,
p_copy_mode TYPE c DEFAULT '1' AS LISTBOX
VISIBLE LENGTH 15 USER-COMMAND cm.
SELECTION-SCREEN END OF BLOCK b1.
AT
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.