/sap-engineering-skills:sap-integration-wikifrom Watt SAP Engineering Skills
Routes SAP integration questions to the correct reference based on SAP version, direction, and technology. Covers OData, RFC/JCo, SOAP RFC, REST2RFC, IDoc, BAPI, RAP, BTP iFlow, Event Mesh, and troubleshooting common SAP errors.
Ships in Watt SAP Engineering Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Runtime requirement: none. This is a knowledge base — never check for,
install, or require the sap-adt CLI. (references/runtime-compatibility.json
declares not-required; references/setup.md is informational only.)
This skill routes integration questions to the right reference based on your context. Before loading any reference file, ask the following if not already clear from the user's message:
User phrases that should activate this skill (non-exhaustive): "connect to SAP", "get data from SAP", "SAP keeps returning 401", "how do I call BAPI from Java", "how do I call SAP RFC from Python", "call SAP without JCo", "SAP SOAP endpoint", "expose an existing BAPI as JSON", "dynamic REST2RFC", "SAP OData not working".
Object/endpoint names that signal this skill: BAPI_PO_CREATE1,
API_PURCHASEORDER_PROCESS_SRV, BAPI_FIXEDASSET_GETLIST,
BAPI_ASSET_ACQUISITION_POST, CFIN OData V4, API_CFinRpldSupplierInvoice,
JCo connection, RFC destination, BTP iFlow, Cloud Connector,
SAP Event Mesh, Communication Arrangement, /sap/bc/rest2rfc.
After clarifying, follow this decision tree to pick the right reference files:
Read the relevant file from references/scenarios/ based on the business object:
| Business Object | File |
|---|---|
| Purchase Order (create, read, change, approve) | references/scenarios/mm-po.md |
| Inventory / Stock query or reservation | references/scenarios/mm-stock.md |
| Sales Order (create, track, confirm) | references/scenarios/sd-order.md |
| Financial Document (post GL, read FI docs) | references/scenarios/fi-doc.md |
| AR / AP open items, supplier invoice, payment, down payment | references/scenarios/fi-ar-ap.md |
| Fixed Asset (read register, acquisition, retirement, transfer) | references/scenarios/fi-asset.md |
| Financial Shared Service Center (FSSC) — Kingdee↔SAP, CFIN | references/scenarios/fi-fssc.md |
| Material Master / Business Partner / Org Data (cost center, plant) | references/scenarios/master-data.md |
| Production Order / BOM / Goods Movement (261/101) / MRP | references/scenarios/pp-production.md |
Always read the scenario file first before reading any tech file. The scenario file specifies which integration technology to recommend per version.
Read the relevant file from references/tech/ based on the recommended approach from Step 1:
| Technology | File | Use when |
|---|---|---|
| OData REST V2/V4 | references/tech/odata.md | S/4HANA On-Prem or Cloud, standard scenario, HTTP-native client |
| RFC / JCo (Java remote function call) | references/tech/rfc-jco.md | ECC (primary), S/4 when no OData exists, bulk operations, Java-only |
| SOAP over HTTP RFC (no JCo) | references/tech/soap-rfc-http.md | Call any RFC-FM from non-JVM runtime via HTTPS — Python, Node.js, Go, curl; ECC or S/4 On-Prem |
| Dynamic REST2RFC Gateway (JSON, no JCo) | references/tech/rest2rfc-gateway.md | Reuse registered RFC/BAPIs through JSON without per-interface mapping code; custom ABAP deployment is acceptable; no suitable standard OData |
| IDoc / SAP PI-PO | references/tech/idoc-pi.md | Async integration, EDI, partner/supplier message exchange |
| BAPI or RAP | references/tech/bapi-rap.md | ECC BAPIs, S/4HANA RAP OData V4 services, decision on which to use |
| Authentication (any technology) | references/tech/auth.md | Auth failures, first-time setup, OAuth2, SSL/TLS, ICF activation |
| BTP Integration Suite / iFlow / Cloud Connector / Event Mesh | references/tech/btp-cloud-integration.md | BTP-mediated integration, S/4HANA Cloud + BTP, Event Mesh consumers, Communication Arrangements |
| Retry / idempotency / security / monitoring / testing | references/tech/best-practices.md | Production hardening, error classification, structured logging, connection pooling, CI patterns |
Read references/troubleshoot/ based on symptom:
| Symptom | File |
|---|---|
| HTTP 4xx / 5xx from OData endpoint | references/troubleshoot/odata-errors.md |
| Login failures / token issues / CSRF errors | references/troubleshoot/auth-errors.md |
| IDoc stuck / status 51 / port not configured | references/troubleshoot/idoc-errors.md |
| Behavior differs between SAP versions | references/troubleshoot/version-diff.md |
Use this when the user has not specified a technology preference:
| SAP Version | Scenario | Recommended | Fallback |
|---|---|---|---|
| S/4HANA On-Prem 2020+ | Create/Read PO | OData V2 API_PURCHASEORDER_PROCESS_SRV | JCo + BAPI_PO_CREATE1 |
| S/4HANA On-Prem 2023+ | Create/Read PO | OData V4 API_PURCHASEORDER (if released) | OData V2 |
| ECC 6.0 | Create/Read PO | JCo + BAPI_PO_CREATE1 | IDoc ORDERS |
| ECC 6.0 (non-JVM client, JSON preferred) | Reuse registered RFC-FM without per-interface wrappers | Dynamic REST2RFC Gateway | SOAP over HTTP; Java JCo microservice |
| ECC 6.0 (non-JVM client, no custom ABAP) | Call any RFC-FM without JCo | SOAP over HTTP (/sap/bc/soap/rfc) | Java JCo microservice proxy |
| S/4HANA Cloud Public | Any | OData V4 / RAP | None (RFC unavailable externally) |
| Any version | Stock query (real-time) | OData API_MATERIAL_STOCK_SRV | BAPI_MATERIAL_STOCK_REQ_LIST |
| Any version | FI posting | JCo + BAPI_ACC_DOCUMENT_POST | (no standard OData for posting) |
| S/4HANA On-Prem 1809+ | Query AR/AP open items | OData V2 API_OPLACCTGDOCITEMCUBE_SRV | JCo BAPI_AR_ACC_GETOPENITEMS / BAPI_AP_ACC_GETOPENITEMS |
| ECC 6.0 | Query AR/AP open items | JCo BAPI_AR_ACC_GETOPENITEMS / BAPI_AP_ACC_GETOPENITEMS | — |
| S/4HANA On-Prem 1809+ | Create supplier invoice | OData V2 API_SUPPLIERINVOICE_PROCESS_SRV | JCo BAPI_INCOMINGINVOICE_CREATE |
| Any version | Read fixed asset list/values | JCo BAPI_FIXEDASSET_GETLIST | — |
| Any version | Post asset acquisition/retirement/transfer | JCo BAPI_ASSET_ACQUISITION_POST / _RETIREMENT_POST / _TRANSFER_POST (always CHECK first) | — |
| S/4HANA Cloud | Fixed asset operations | OData V4 CE_FIXEDASSET_0001 / OP_FIXEDASSETACQUISITION_0001 (Comm. Arr. SAP_COM_0510) | — |
| S/4HANA CFIN | Post from non-SAP (Kingdee) to Central Finance | OData V4 API_CFinRpldSupplierInvoice / API_CFinRpldBillingDocument (Comm. Arr. SAP_COM_0453) | BTP iFlow + CFIN |
| Any version | Async supplier EDI | IDoc via PI/PO | File-based integration |
| S/4HANA On-Prem | Read Material Master | OData V2 API_PRODUCT_SRV | JCo + BAPI_MATERIAL_GET_DETAIL |
| S/4HANA On-Prem | Create/Change Material | JCo + BAPI_MATERIAL_SAVEDATA | IDoc MATMAS05 |
| S/4HANA On-Prem 2020+ | Business Partner (Customer/Vendor) | OData V2 API_BUSINESS_PARTNER | JCo + BAPI_BUPA_CREATE_FROM_DATA |
| ECC 6.0 | Business Partner / Customer / Vendor | JCo + BAPI_CUSTOMER_CREATEFROMDATA1 / BAPI_VENDOR_CREATE | IDoc DEBMAS/CREMAS |
| S/4HANA On-Prem | Production Order (create/change) | OData V2 API_PP_ORDERS_SRV | JCo + BAPI_PRODORD_CREATE |
| Any version | Goods Movement (261/101/etc.) | JCo + BAPI_GOODSMVT_CREATE | OData API_MATERIAL_DOCUMENT_SRV (S/4) |
| Any version | Production Order Confirmation | JCo + BAPI_PRODORDCONF_CREATE_TT | IDoc LOIPRO |
| Any | BTP-mediated integration to S/4HANA Cloud | BTP Integration Suite iFlow + Communication Arrangement | N/A |
| Any | Event-driven / decoupled async | SAP Event Mesh (BTP) | IDoc via PI/PO |
Point users to these runnable artifacts when they need working code or templates:
| Need | Resource |
|---|---|
| Generate Postman Collection for any OData service | scripts/gen-odata-postman.js |
Generate JCo .jcoDestination properties file | scripts/gen-jco-config.py |
| Generate IDoc XML skeleton for any message type | scripts/gen-idoc-template.py |
| PO creation payload (OData V2 POST body) | assets/payloads/po-create.json |
| PO item quantity update (PATCH body) | assets/payloads/po-update.json |
| IDoc ORDERS05 XML example | assets/payloads/idoc-orders05.xml |
| OAuth2 config template for S/4HANA On-Premise | assets/configs/oauth-template.json |
| JCo connection properties reference (copy the properties block to a .jcoDestination file) | assets/configs/jco-props.md |
When answering an integration question, always structure the response as:
BAPI_TRANSACTION_COMMIT call, or the changes will be rolled back. This is a hard requirement, not optional.$batch for grouping multiple operations, but has strict ordering and boundary requirements.00), not the host port. Do not confuse with port 3300+SYSNR.100, 800) in every connection.SICF./sap/bc/soap/rfc. No SAP-specific client library is required — any HTTP library works. The ICF node for this path must be activated in SICF. Use this when JCo is not practical (non-JVM runtimes, containerised workloads, rapid prototyping). Does not support IDoc, tRFC, or qRFC./sap/bc/rest2rfc. Use it on supported ECC/S/4HANA On-Premise systems when no standard OData fits and configuration-driven exposure is preferable to per-interface wrappers. It requires an initial gateway deployment and is not for S/4HANA Cloud Public Edition. Read references/tech/rest2rfc-gateway.md before giving setup, transaction, or security guidance.CONTRIBUTING.md (opens in a new tab)README.md (opens in a new tab)README.zh-CN.md (opens in a new tab)assets/configs/jco-props.md (opens in a new tab)assets/configs/oauth-template.json (opens in a new tab)assets/payloads/idoc-orders05.xml (opens in a new tab)assets/payloads/po-create.json (opens in a new tab)assets/payloads/po-update.json (opens in a new tab)references/runtime-compatibility.json (opens in a new tab)references/scenarios/fi-ar-ap.md (opens in a new tab)references/scenarios/fi-asset.md (opens in a new tab)references/scenarios/fi-doc.md (opens in a new tab)references/scenarios/fi-fssc.md (opens in a new tab)references/scenarios/master-data.md (opens in a new tab)references/scenarios/mm-po.md (opens in a new tab)references/scenarios/mm-stock.md (opens in a new tab)references/scenarios/pp-production.md (opens in a new tab)references/scenarios/sd-order.md (opens in a new tab)references/setup.md (opens in a new tab)references/tech/auth.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/abap-code-reviewPerforms structured pre-release security and quality review of SAP ABAP programs across 9 dimensions (SEC, AUTH, DATA, PERF, STD, INTERFACE, CHANGE, COMP, FUNC), producing a formal sign-off-ready Markdown assessment report. Trigger when the user asks to review, audit, assess, or check ABAP code before release — phrases include: 'security review', 'risk check', 'release audit', 'code review', 'check before transport', 'safe to release', or 'can this go to production'; also when a program name (e.g. ZMMR0002) appears alongside 'review', 'check', or 'ready for transport'. Do not use for general ABAP syntax questions, runtime debugging, or performance tuning unrelated to a transport release gate./sap-adt-cliRead/write live SAP ABAP source and class parts, review multi-object changes, create DDIC/RAP objects, run Unit regression with JUnit, inspect RAP/OData, execute typed local functions/BAPIs, Reports with selections and ABAP snippets, inspect DDIC and transport requests via Watt (sap-watt) or the compatible sap-adt CLI. Use for repository search, where-used, syntax checks, ABAP Unit failure evidence, test include source, ATC, SQL preview, short dump details and stacks, explicitly authorized debugging, Gateway errors, ADT Feeds, object version history, source differences, transport object diffs and CLI updates. Trigger when asked why ABAP/OData failed or what changed in an object or transport. Writes require profile capability flags and fresh per-operation confirmation; diagnostic and diff queries are read-only. Not for offline-only code reviews or general SAP integration advice.Generated from the plugin's indexed repository (shrek-abaper/sap-watt) — no native marketplace selected
npx claudepluginhub p/shrek-abaper-sap-engineering-skillsOther plugins' skills for the same job