{"slug":"sap-integration-wiki","title":"sap-integration-wiki","summary":"Use when integrating external systems (Java, Python, .NET, Node.js, low-code) with SAP (ECC 6.0, S/4HANA On-Prem/Cloud): OData V2/V4, RFC/JCo, SOAP RFC, dynamic REST2RFC/JSON without JCo, IDoc/PI-PO, BAPI, RAP, BTP Integration Suite/iFlow, Event Mesh, Cloud Connector, Communicati","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:41:47.747255Z","repo":{"url":"https://github.com/shrek-abaper/sap-watt","stars":51,"forks":19,"license":"MIT","updatedAt":"2026-11-28T12:48:44Z"},"bodyHtml":"<h1>SAP Integration Wiki</h1>\n\n\n<p>This skill needs <strong>no CLI</strong> — it works fully offline. Compatible legacy CLI range: <code>&gt;=1.5.0,&lt;2.0.0</code>.\nPreferred new entry: <strong>Watt</strong> (<code>sap-watt</code>), range <code>&gt;=1.6.7,&lt;2.0.0</code>. Existing <code>sap-adt</code> examples remain valid; use the installed entry consistently.\nInstall/readiness guide: <a href=\"references/setup.md\"><code>references/setup.md</code></a>.</p>\n\n<blockquote>\n<p>A skill that turns any AI assistant into a SAP integration specialist.\nBuilt for developers who need to connect external systems to SAP — without reading 10,000 pages of SAP documentation.</p>\n</blockquote>\n<p><a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"></a>\n<a href=\"CONTRIBUTING.md\"><img src=\"https://img.shields.io/badge/contributions-welcome-brightgreen.svg\" alt=\"Contributions Welcome\"></a>\n<a href=\"references/troubleshoot/version-diff.md\"><img src=\"https://img.shields.io/badge/SAP-ECC%20%7C%20S%2F4HANA%20%7C%20Cloud-blue.svg\" alt=\"SAP Versions\"></a></p>\n<p><a href=\"README.md\">English</a> | <a href=\"README.zh-CN.md\">中文</a></p>\n<div>\n<p>Important</p>\n<p><strong>This repository has been archived and is no longer updated.</strong> <code>sap-integration-wiki</code> is now maintained exclusively in the <a href=\"https://github.com/shrek-abaper/sap-watt\">sap-watt</a> monorepo at <a href=\"https://github.com/shrek-abaper/sap-watt/tree/main/skills/sap-integration-wiki\"><code>skills/sap-integration-wiki</code></a>. Please go there for the latest version, issues, and improvements.</p>\n</div>\n<hr>\n<h2>What Is This?</h2>\n<p><code>sap-integration-wiki</code> is a <strong>composable skill</strong> — a structured knowledge base following the standard skill specification (<code>SKILL.md</code>). Once installed into your AI agent framework, any AI assistant can load the right reference documents and provide precise, actionable answers backed by real SAP API documentation.</p>\n<p><strong>Without this skill</strong>, an AI assistant gives generic, often-wrong answers about SAP:</p>\n<blockquote>\n<p>\"You can use the SAP RFC API to create a purchase order.\"</p>\n</blockquote>\n<p><strong>With this skill</strong>, the AI gives production-ready guidance:</p>\n<blockquote>\n<p>\"For S/4HANA On-Premise, use OData V2 <code>API_PURCHASEORDER_PROCESS_SRV</code> with a deep insert POST to create the PO header + items in one request. Here's the exact payload structure with account assignment, and here's the CSRF token flow you need to implement first...\"</p>\n</blockquote>\n<hr>\n<h2>Covered Scenarios</h2>\n<h3>Business Scenarios</h3>\n<table>\n<thead>\n<tr>\n<th>Domain</th>\n<th>Scenarios</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>MM — Purchasing</strong></td>\n<td>Create PO, read PO status, update quantity/price, supplier EDI acknowledgement</td>\n</tr>\n<tr>\n<td><strong>MM — Inventory</strong></td>\n<td>Query stock by plant/storage location, post goods issue/receipt, create reservation</td>\n</tr>\n<tr>\n<td><strong>SD — Sales</strong></td>\n<td>Create sales order, track delivery status, read billing documents</td>\n</tr>\n<tr>\n<td><strong>FI — Finance</strong></td>\n<td>Post GL document, read FI documents, account determination</td>\n</tr>\n<tr>\n<td><strong>FI — AR / AP</strong></td>\n<td>Query open items, payment terms, supplier invoice create, AP/AR posting, down payments, document parking</td>\n</tr>\n<tr>\n<td><strong>FI — Asset Accounting</strong></td>\n<td>Read asset register, post acquisition / retirement / write-off / transfer, OData V4 for S/4HANA Cloud</td>\n</tr>\n<tr>\n<td><strong>FI — FSSC</strong></td>\n<td>Financial Shared Service Center: Kingdee↔SAP patterns (Direct API / BTP-mediated / CFIN), API catalog, master data mapping</td>\n</tr>\n<tr>\n<td><strong>Master Data</strong></td>\n<td>Material master read/create, Business Partner (Customer/Vendor), Cost Center</td>\n</tr>\n<tr>\n<td><strong>PP — Production</strong></td>\n<td>Production orders, BOM read, goods movements (261/101), order confirmation, MRP</td>\n</tr>\n</tbody>\n</table>\n<h3>Integration Technologies</h3>\n<table>\n<thead>\n<tr>\n<th>Technology</th>\n<th>Coverage</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>OData V2 / V4</strong></td>\n<td>CSRF flow, <code>$expand</code>/<code>$filter</code>/<code>$batch</code>, deep insert, error parsing</td>\n</tr>\n<tr>\n<td><strong>RFC / SAP JCo</strong></td>\n<td>Connection pool, BAPI call pattern, RETURN table parsing, load balancing</td>\n</tr>\n<tr>\n<td><strong>SOAP over HTTP RFC</strong></td>\n<td>Call any RFC-FM via HTTPS without JCo — Python/Node/curl examples, CSRF flow, response parsing</td>\n</tr>\n<tr>\n<td><strong>Dynamic REST2RFC Gateway</strong></td>\n<td>Expose registered RFC/BAPIs as JSON through a pure-ABAP gateway — configuration-driven routing, transaction boundaries, security and limitations (<a href=\"https://github.com/shrek-abaper/sap-rest2rfc-gateway\">public project</a>)</td>\n</tr>\n<tr>\n<td><strong>IDoc / PI-PO</strong></td>\n<td>Control record, key segments, status lifecycle, monitoring transactions</td>\n</tr>\n<tr>\n<td><strong>BAPI &amp; RAP</strong></td>\n<td>When to use which, key BAPIs by domain, RAP OData V4 services</td>\n</tr>\n<tr>\n<td><strong>Authentication</strong></td>\n<td>Basic Auth, OAuth2 (on-premise SOAUTH2 + Cloud), SSL/TLS, ICF activation</td>\n</tr>\n<tr>\n<td><strong>BTP Integration Suite</strong></td>\n<td>iFlow, Cloud Connector, API Management, Event Mesh, Communication Arrangements</td>\n</tr>\n<tr>\n<td><strong>Best Practices</strong></td>\n<td>Idempotency, retry logic, connection management, security hardening, monitoring</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<h2>Installation</h2>\n<p>This skill follows the standard skill specification with <code>SKILL.md</code> metadata. Installation steps vary by your AI agent framework:</p>\n<h3>Example: Claude Code</h3>\n<pre><code># Symlink into Claude Code skills directory\nln -s /path/to/sap-integration-wiki ~/.agents/skills/sap-integration-wiki\n</code></pre>\n<h3>Example: OpenAI Custom Instructions / System Prompt</h3>\n<p>Add this to your agent context:</p>\n<pre><code>When answering SAP integration questions, load the knowledge base from:\n- /path/to/sap-integration-wiki/SKILL.md (routing logic)\n- /path/to/sap-integration-wiki/references/scenarios/*.md (business scenarios)\n- /path/to/sap-integration-wiki/references/tech/*.md (technical guides)\n- /path/to/sap-integration-wiki/references/troubleshoot/*.md (error solutions)\n</code></pre>\n<h3>Example: LangChain / RAG Integration</h3>\n<pre><code>from langchain.document_loaders import DirectoryLoader, UnstructuredMarkdownLoader\n\nloader = DirectoryLoader(\n    '/path/to/sap-integration-wiki',\n    glob='**/*.md',\n    loader_cls=UnstructuredMarkdownLoader,\n    loader_kwargs={'mode': 'elements'}\n)\n\ndocuments = loader.load()\n# Then build your vector store or retrieval chain\n</code></pre>\n<h3>Verification</h3>\n<p>The skill should load automatically via <code>SKILL.md</code> metadata. Update your agent's skill scan paths to include this directory.</p>\n<hr>\n<h2>Quick Start</h2>\n<p>Once installed, ask your AI assistant about SAP integration:</p>\n<p><strong>Example prompts (language-agnostic):</strong></p>\n<pre><code>How do I create a purchase order in SAP S/4HANA from Python?\n</code></pre>\n<pre><code>I'm getting HTTP 403 CSRF token validation failed from SAP OData. What's wrong?\n</code></pre>\n<pre><code>What's the difference between using BAPI_PO_CREATE1 and the OData API for ECC?\n</code></pre>\n<pre><code>How do I read stock levels from SAP in real time?\n</code></pre>\n<p>The skill automatically:</p>\n<ol>\n<li>Identifies your SAP version and integration scenario</li>\n<li>Loads the relevant reference documents from <code>references/</code></li>\n<li>Provides working code examples in your language (Java, Python, curl, etc.)</li>\n<li>Flags common pitfalls specific to your situation</li>\n</ol>\n<p><strong>Unusual requirement</strong>: \"The skill loads automatically for all AI assistants — just asking works.\"</p>\n<hr>\n<h2>Directory Structure</h2>\n<pre><code>sap-integration-wiki/\n├── SKILL.md                          ← AI routing logic and decision tree\n├── README.md                         ← This file (English)\n├── README.zh-CN.md                   ← Chinese version\n├── CONTRIBUTING.md                   ← Contribution guide\n│\n├── references/\n│   ├── scenarios/                    ← What to do (business-oriented)\n│   │   ├── mm-po.md                  Purchase Order integration\n│   │   ├── mm-stock.md               Inventory/Stock integration\n│   │   ├── sd-order.md               Sales Order integration\n│   │   ├── fi-doc.md                 Financial Document integration (GL posting)\n│   │   ├── fi-ar-ap.md               AR/AP open items, invoices, payments\n│   │   ├── fi-asset.md               Fixed Asset accounting (acquisition, retirement, transfer)\n│   │   ├── fi-fssc.md                Financial Shared Service Center (Kingdee↔SAP, CFIN)\n│   │   ├── master-data.md            Material Master, Business Partner\n│   │   └── pp-production.md          Production Orders, BOM, Goods Movements, MRP\n│   │\n│   ├── tech/                         ← How to do it (technology-oriented)\n│   │   ├── odata.md                  OData V2/V4 protocol guide\n│   │   ├── rfc-jco.md                RFC/JCo connection and BAPI guide\n│   │   ├── soap-rfc-http.md          SOAP over HTTP RFC — no JCo required\n│   │   ├── rest2rfc-gateway.md       Dynamic RFC/BAPI to HTTP/JSON gateway\n│   │   ├── idoc-pi.md                IDoc and SAP PI/PO guide\n│   │   ├── bapi-rap.md               BAPI vs RAP decision guide\n│   │   ├── auth.md                   Authentication setup guide\n│   │   ├── btp-cloud-integration.md  BTP Integration Suite guide\n│   │   └── best-practices.md         Security, retry, monitoring, testing\n│   │\n│   ├── setup.md                      ← Generated CLI guide (informational; this skill needs no CLI)\n│   ├── runtime-compatibility.json    ← Generated compatibility snapshot (no CLI required)\n│   └── troubleshoot/                 ← Fix it\n│       ├── odata-errors.md           HTTP 4xx/5xx error solutions\n│       ├── auth-errors.md            Auth and CSRF error solutions\n│       ├── idoc-errors.md            IDoc stuck / status 51 solutions\n│       └── version-diff.md           ECC vs S/4HANA behavior differences\n│\n├── LICENSE                           ← MIT License\n├── scripts/                          ← Runnable tools\n│   ├── gen-odata-postman.js          Generate Postman collection for any OData service\n│   ├── gen-jco-config.py             Generate JCo .jcoDestination config file\n│   └── gen-idoc-template.py          Generate IDoc XML skeleton\n│\n└── assets/                           ← Example payloads and config templates\n    ├── payloads/\n    │   ├── po-create.json            OData V2 PO deep-insert POST body\n    │   ├── po-update.json            OData V2 PO item PATCH body\n    │   └── idoc-orders05.xml         ORDERS05 IDoc XML example\n    └── configs/\n        ├── oauth-template.json       OAuth2 config for S/4HANA On-Premise\n        └── jco-props.md                JCo properties reference; copy the code block to .jcoDestination\n</code></pre>\n<hr>\n<h2>Using the Scripts</h2>\n<h3>Generate Postman Collection</h3>\n<p>Creates a ready-to-import Postman collection for any SAP OData V2 service:</p>\n<pre><code>cd scripts\nnode gen-odata-postman.js \\\n  --service API_PURCHASEORDER_PROCESS_SRV \\\n  --host s4hana.example.com \\\n  --client 100 \\\n  --output po-collection.json\n</code></pre>\n<h3>Generate JCo Config</h3>\n<p>Creates a <code>.jcoDestination</code> properties file with all options documented:</p>\n<pre><code>python3 gen-jco-config.py \\\n  --name SAP_PRD \\\n  --host s4hana.example.com \\\n  --sysnr 00 \\\n  --client 100 \\\n  --user RFC_USER \\\n  --output SAP_PRD.jcoDestination\n</code></pre>\n<h3>Generate IDoc XML Skeleton</h3>\n<p>Creates a skeleton IDoc XML for a given message type:</p>\n<pre><code>python3 gen-idoc-template.py \\\n  --msgtype ORDERS \\\n  --idoctype ORDERS05 \\\n  --sender-partner SAP_PROD \\\n  --receiver-partner EXT_SUPPLIER_001 \\\n  --output orders05-skeleton.xml\n</code></pre>\n<hr>\n<h2>SAP Versions Supported</h2>\n<table>\n<thead>\n<tr>\n<th>SAP Version</th>\n<th>OData</th>\n<th>RFC/BAPI</th>\n<th>IDoc</th>\n<th>BTP</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ECC 6.0</td>\n<td>Custom only</td>\n<td>Full</td>\n<td>Full</td>\n<td>Via Cloud Connector</td>\n</tr>\n<tr>\n<td>S/4HANA On-Prem 1909–2022</td>\n<td>OData V2 (standard APIs)</td>\n<td>Full</td>\n<td>Full</td>\n<td>Via Cloud Connector</td>\n</tr>\n<tr>\n<td>S/4HANA On-Prem 2023+</td>\n<td>OData V2 + V4 (partial)</td>\n<td>Full</td>\n<td>Full</td>\n<td>Via Cloud Connector</td>\n</tr>\n<tr>\n<td>S/4HANA Cloud Public Edition</td>\n<td>OData V4 primary</td>\n<td>Not available externally</td>\n<td>Limited</td>\n<td>Native</td>\n</tr>\n<tr>\n<td>S/4HANA Cloud Private Edition</td>\n<td>OData V2/V4</td>\n<td>Via RFC but restricted</td>\n<td>Via BTP</td>\n<td>Native</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<h2>Contributing</h2>\n<p>We welcome contributions from SAP integration professionals worldwide. There are many ways to help:</p>\n<ul>\n<li><strong>Add a new scenario</strong> — missing HR, WM/EWM, PM, QM, or other modules</li>\n<li><strong>Improve existing content</strong> — fix errors, add examples, clarify explanations</li>\n<li><strong>Add code snippets</strong> — examples in .NET, Go, JavaScript, Ruby, etc.</li>\n<li><strong>Report issues</strong> — wrong API names, outdated information, broken examples</li>\n<li><strong>Translate content</strong> — we currently have English and Chinese; other languages welcome</li>\n</ul>\n<p>See <a href=\"CONTRIBUTING.md\">CONTRIBUTING.md</a> for detailed guidelines.</p>\n<hr>\n<h2>License</h2>\n<p>MIT License — see <a href=\"https://github.com/shrek-abaper/sap-watt/blob/main/LICENSE\">LICENSE</a> for details.</p>\n<hr>\n<h2>Acknowledgements</h2>\n<p>Content is based on publicly available SAP documentation from:</p>\n<ul>\n<li><a href=\"https://api.sap.com\">SAP Business Accelerator Hub</a></li>\n<li><a href=\"https://help.sap.com\">SAP Help Portal</a></li>\n<li><a href=\"https://community.sap.com\">SAP Community</a></li>\n<li>Real-world SAP integration project experience</li>\n</ul>\n<hr>\n<h2>Disclaimer</h2>\n<p>This is a community project and is not affiliated with, endorsed by, or officially supported by SAP SE. SAP, S/4HANA, ECC, BTP, and related product names are trademarks of SAP SE. Always verify API behavior against the official SAP documentation for your specific release and system configuration.</p>\n","files":[{"path":"assets/configs/jco-props.md","sizeBytes":11279,"isText":true},{"path":"assets/configs/oauth-template.json","sizeBytes":5633,"isText":true},{"path":"assets/payloads/idoc-orders05.xml","sizeBytes":10787,"isText":false},{"path":"assets/payloads/po-create.json","sizeBytes":2022,"isText":true},{"path":"assets/payloads/po-update.json","sizeBytes":2057,"isText":true},{"path":"CONTRIBUTING.md","sizeBytes":13053,"isText":true},{"path":"README.md","sizeBytes":12988,"isText":true},{"path":"README.zh-CN.md","sizeBytes":11691,"isText":true},{"path":"references/runtime-compatibility.json","sizeBytes":1177,"isText":true},{"path":"references/scenarios/fi-ar-ap.md","sizeBytes":54616,"isText":true},{"path":"references/scenarios/fi-asset.md","sizeBytes":32506,"isText":true},{"path":"references/scenarios/fi-doc.md","sizeBytes":11656,"isText":true},{"path":"references/scenarios/fi-fssc.md","sizeBytes":46729,"isText":true},{"path":"references/scenarios/master-data.md","sizeBytes":15189,"isText":true},{"path":"references/scenarios/mm-po.md","sizeBytes":16034,"isText":true},{"path":"references/scenarios/mm-stock.md","sizeBytes":9743,"isText":true},{"path":"references/scenarios/pp-production.md","sizeBytes":16162,"isText":true},{"path":"references/scenarios/sd-order.md","sizeBytes":11390,"isText":true},{"path":"references/setup.md","sizeBytes":18388,"isText":true},{"path":"references/tech/auth.md","sizeBytes":13872,"isText":true},{"path":"references/tech/bapi-rap.md","sizeBytes":12499,"isText":true},{"path":"references/tech/best-practices.md","sizeBytes":20576,"isText":true},{"path":"references/tech/btp-cloud-integration.md","sizeBytes":15175,"isText":true},{"path":"references/tech/idoc-pi.md","sizeBytes":14558,"isText":true},{"path":"references/tech/odata.md","sizeBytes":16099,"isText":true},{"path":"references/tech/rest2rfc-gateway.md","sizeBytes":11191,"isText":true},{"path":"references/tech/rfc-jco.md","sizeBytes":20542,"isText":true},{"path":"references/tech/soap-rfc-http.md","sizeBytes":19486,"isText":true},{"path":"references/troubleshoot/auth-errors.md","sizeBytes":11290,"isText":true},{"path":"references/troubleshoot/idoc-errors.md","sizeBytes":10154,"isText":true},{"path":"references/troubleshoot/odata-errors.md","sizeBytes":12911,"isText":true},{"path":"references/troubleshoot/version-diff.md","sizeBytes":10240,"isText":true},{"path":"scripts/gen-idoc-template.py","sizeBytes":22156,"isText":true},{"path":"scripts/gen-jco-config.py","sizeBytes":16406,"isText":true},{"path":"scripts/gen-odata-postman.js","sizeBytes":18955,"isText":true},{"path":"SKILL.md","sizeBytes":12757,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:41:53.012093Z","sha256":"6C1D2823EB12E947641C91ED8FE84E2A33938BBFF14ACE26ECE905E054627FD2","sizeBytes":197477},"review":null,"source":{"repositoryUrl":"https://github.com/shrek-abaper/sap-watt","path":"skills/sap-integration-wiki","license":"MIT","commit":"d5ccd306a1f5462c6c6e3d1e2d7ee8b16464a556","subtreeSha":"CA77A459C6D6D132D4DD67E92DA8D0BBC026E9A76DCFB2EDE6AE3BEF2493F023","lastSyncedAt":"2026-11-29T00:41:47.351849Z"},"reviewedAt":"2026-11-29T00:41:55.827789Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/shrek-abaper/sap-watt/tree/main/skills/sap-integration-wiki"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install shrek-abaper-sap-watt@llmmart"},{"target":"git","command":"git clone https://github.com/shrek-abaper/sap-watt.git"}]}