← ClaudeAtlas

btp-master-data-integrationlisted

SAP Master Data Integration (MDI) — BP/Material replication, distribution models, CPI iFlow integration
williamcorrea23/sap-router-skill · ★ 0 · Data & Documents · score 69
Install: claude install-skill williamcorrea23/sap-router-skill
# SAP Master Data Integration (MDI) Central hub for master data harmonization — Business Partner, Material, Cost Center, etc. ## 1. Enable MDI ```bash # Create service instance cf create-service master-data-integration standard mdi-instance cf create-service-key mdi-instance mdi-key cf service-key mdi-instance mdi-key # → Save the `url` and `clientid`/`clientsecret` ``` ## 2. Define Distribution Model ```json { "sourceSystem": "S4H_100", "entityType": "BusinessPartner", "targetSystems": ["SFSF_worker", "COM_Cloud_customer"] } ``` Entities: `BusinessPartner`, `Material`, `CostCenter`, `ProfitCenter`, `CompanyCode`. ## 3. Push Master Data via API ```bash # Get OAuth token TOKEN=$(curl -s -X POST "$AUTH_URL/oauth/token" \ -d "grant_type=client_credentials&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET" \ | jq -r '.access_token') # Send Business Partner curl -X POST "$MDI_URL/api/v1/BusinessPartner" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"BusinessPartner":"1000001","BusinessPartnerName":"ACME Corp"}' ``` ## 4. CPI iFlow Integration ``` S/4HANA → CPI iFlow (BAPI_MATERIAL_GETLIST → MDI API map) → MDI Service → Targets ``` Key CPI patterns: idempotency check (avoid duplicate BP), field mapping (S/4 field → MDI field), error logging to Cloud Logging. ## 5. Monitoring MDI dashboard → Distribution run status, record-level errors, queue depth, processing time per entity. ## Pitfalls - **7-day message retention*