Logotipo de Sap Integration Wiki

Sap Integration Wiki

Comunidad
shrek-abaper
sap-integration-wiki

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, Communication Arrangements, FI-AA, AR/AP, Central Finance (CFIN), FSSC / 财务共享中心 (Kingdee/金蝶, 用友 to SAP). Use whenever asked to connect to SAP, call a SAP API/BAPI/RFC, read or create SAP data from outside (purchase/sales/production orders, inventory, financial documents, AR/AP, assets, material master, business partner), configure JCo destinations, call or expose RFC/BAPI as JSON from Python/Java/Node/Go without SAP libraries, handle IDocs, set up S/4HANA Cloud Communication Arrangements, implement retry/idempotency, or troubleshoot SAP HTTP 400/401/403, "CSRF token validation failed", "IDoc status 51", "/sap/bc/soap/rfc", "/sap/bc/rest2rfc", JCo/RFC destination errors — even when the user never says "SAP" and only describes symptoms.

Descripción general

Editorshrek-abaper
Repositoriosap-engineering-skill
Nombre de la habilidadsap-integration-wiki
Estrellas
46
Forks
18
Archivos incluidos
34
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 34

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por shrek-abaper en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Sap Integration Wiki en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/shrek-abaper/sap-engineering-skill/tree/main/skills/sap-integration-wiki
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shrek-abaper/sap-engineering-skill.git /tmp/sap-engineering-skill
mkdir -p .claude/skills
cp -r /tmp/sap-engineering-skill/skills/sap-integration-wiki .claude/skills/sap-integration-wiki
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Sap Integration Wiki en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Sap Integration Wiki automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Sap Integration Wiki no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

SAP Integration Wiki

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:

Trigger examples

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.

Clarifying questions (ask only what is unknown)

  1. SAP version: ECC 6.0 / S/4HANA On-Premise / S/4HANA Cloud Public Edition / S/4HANA Cloud Private Edition?
  2. Integration direction: External → SAP (write/trigger) / SAP → External (event/push) / Bidirectional / Read-only query?
  3. Latency requirement: Synchronous (real-time response needed) / Asynchronous (fire-and-forget or queue)?
  4. Business object: Purchase Order / Sales Order / Inventory/Stock / Financial Document / Material Master / Business Partner / Production Order / BOM / Other?
  5. Consumer technology: Java/JVM / Python / .NET / Node.js / Low-code (Zapier, Power Automate) / Other?

Routing logic

After clarifying, follow this decision tree to pick the right reference files:

Step 1: Pick the scenario file

Read the relevant file from references/scenarios/ based on the business object:

Business ObjectFile
Purchase Order (create, read, change, approve)references/scenarios/mm-po.md
Inventory / Stock query or reservationreferences/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 paymentreferences/scenarios/fi-ar-ap.md
Fixed Asset (read register, acquisition, retirement, transfer)references/scenarios/fi-asset.md
Financial Shared Service Center (FSSC) — Kingdee↔SAP, CFINreferences/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) / MRPreferences/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.

Step 2: Pick the technology file

Read the relevant file from references/tech/ based on the recommended approach from Step 1:

TechnologyFileUse when
OData REST V2/V4references/tech/odata.mdS/4HANA On-Prem or Cloud, standard scenario, HTTP-native client
RFC / JCo (Java remote function call)references/tech/rfc-jco.mdECC (primary), S/4 when no OData exists, bulk operations, Java-only
SOAP over HTTP RFC (no JCo)references/tech/soap-rfc-http.mdCall 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.mdReuse registered RFC/BAPIs through JSON without per-interface mapping code; custom ABAP deployment is acceptable; no suitable standard OData
IDoc / SAP PI-POreferences/tech/idoc-pi.mdAsync integration, EDI, partner/supplier message exchange
BAPI or RAPreferences/tech/bapi-rap.mdECC BAPIs, S/4HANA RAP OData V4 services, decision on which to use
Authentication (any technology)references/tech/auth.mdAuth failures, first-time setup, OAuth2, SSL/TLS, ICF activation
BTP Integration Suite / iFlow / Cloud Connector / Event Meshreferences/tech/btp-cloud-integration.mdBTP-mediated integration, S/4HANA Cloud + BTP, Event Mesh consumers, Communication Arrangements
Retry / idempotency / security / monitoring / testingreferences/tech/best-practices.mdProduction hardening, error classification, structured logging, connection pooling, CI patterns

Step 3: If there is an error or failure

Read references/troubleshoot/ based on symptom:

SymptomFile
HTTP 4xx / 5xx from OData endpointreferences/troubleshoot/odata-errors.md
Login failures / token issues / CSRF errorsreferences/troubleshoot/auth-errors.md
IDoc stuck / status 51 / port not configuredreferences/troubleshoot/idoc-errors.md
Behavior differs between SAP versionsreferences/troubleshoot/version-diff.md

Quick technology decision matrix

Use this when the user has not specified a technology preference:

SAP VersionScenarioRecommendedFallback
S/4HANA On-Prem 2020+Create/Read POOData V2 API_PURCHASEORDER_PROCESS_SRVJCo + BAPI_PO_CREATE1
S/4HANA On-Prem 2023+Create/Read POOData V4 API_PURCHASEORDER (if released)OData V2
ECC 6.0Create/Read POJCo + BAPI_PO_CREATE1IDoc ORDERS
ECC 6.0 (non-JVM client, JSON preferred)Reuse registered RFC-FM without per-interface wrappersDynamic REST2RFC GatewaySOAP over HTTP; Java JCo microservice
ECC 6.0 (non-JVM client, no custom ABAP)Call any RFC-FM without JCoSOAP over HTTP (/sap/bc/soap/rfc)Java JCo microservice proxy
S/4HANA Cloud PublicAnyOData V4 / RAPNone (RFC unavailable externally)
Any versionStock query (real-time)OData API_MATERIAL_STOCK_SRVBAPI_MATERIAL_STOCK_REQ_LIST
Any versionFI postingJCo + BAPI_ACC_DOCUMENT_POST(no standard OData for posting)
S/4HANA On-Prem 1809+Query AR/AP open itemsOData V2 API_OPLACCTGDOCITEMCUBE_SRVJCo BAPI_AR_ACC_GETOPENITEMS / BAPI_AP_ACC_GETOPENITEMS
ECC 6.0Query AR/AP open itemsJCo BAPI_AR_ACC_GETOPENITEMS / BAPI_AP_ACC_GETOPENITEMS—
S/4HANA On-Prem 1809+Create supplier invoiceOData V2 API_SUPPLIERINVOICE_PROCESS_SRVJCo BAPI_INCOMINGINVOICE_CREATE
Any versionRead fixed asset list/valuesJCo BAPI_FIXEDASSET_GETLIST—
Any versionPost asset acquisition/retirement/transferJCo BAPI_ASSET_ACQUISITION_POST / _RETIREMENT_POST / _TRANSFER_POST (always CHECK first)—
S/4HANA CloudFixed asset operationsOData V4 CE_FIXEDASSET_0001 / OP_FIXEDASSETACQUISITION_0001 (Comm. Arr. SAP_COM_0510)—
S/4HANA CFINPost from non-SAP (Kingdee) to Central FinanceOData V4 API_CFinRpldSupplierInvoice / API_CFinRpldBillingDocument (Comm. Arr. SAP_COM_0453)BTP iFlow + CFIN
Any versionAsync supplier EDIIDoc via PI/POFile-based integration
S/4HANA On-PremRead Material MasterOData V2 API_PRODUCT_SRVJCo + BAPI_MATERIAL_GET_DETAIL
S/4HANA On-PremCreate/Change MaterialJCo + BAPI_MATERIAL_SAVEDATAIDoc MATMAS05
S/4HANA On-Prem 2020+Business Partner (Customer/Vendor)OData V2 API_BUSINESS_PARTNERJCo + BAPI_BUPA_CREATE_FROM_DATA
ECC 6.0Business Partner / Customer / VendorJCo + BAPI_CUSTOMER_CREATEFROMDATA1 / BAPI_VENDOR_CREATEIDoc DEBMAS/CREMAS
S/4HANA On-PremProduction Order (create/change)OData V2 API_PP_ORDERS_SRVJCo + BAPI_PRODORD_CREATE
Any versionGoods Movement (261/101/etc.)JCo + BAPI_GOODSMVT_CREATEOData API_MATERIAL_DOCUMENT_SRV (S/4)
Any versionProduction Order ConfirmationJCo + BAPI_PRODORDCONF_CREATE_TTIDoc LOIPRO
AnyBTP-mediated integration to S/4HANA CloudBTP Integration Suite iFlow + Communication ArrangementN/A
AnyEvent-driven / decoupled asyncSAP Event Mesh (BTP)IDoc via PI/PO

Scripts and assets

Point users to these runnable artifacts when they need working code or templates:

NeedResource
Generate Postman Collection for any OData servicescripts/gen-odata-postman.js
Generate JCo .jcoDestination properties filescripts/gen-jco-config.py
Generate IDoc XML skeleton for any message typescripts/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 exampleassets/payloads/idoc-orders05.xml
OAuth2 config template for S/4HANA On-Premiseassets/configs/oauth-template.json
JCo connection properties template (all properties)assets/configs/jco-props.properties

Response format

When answering an integration question, always structure the response as:

  1. Recommended approach — one sentence naming the technology and why it fits the user's version and scenario
  2. Prerequisites — what must be configured on the SAP side first (user roles, service activation, RFC destination, partner profile, etc.)
  3. Implementation steps — numbered list with working code snippets (curl, Java, Python as appropriate to the user's tech stack)
  4. Common pitfalls — 2–3 things that typically go wrong and exactly how to avoid or fix them
  5. Reference — link to SAP API Business Hub or SAP Help Portal page when available

Important SAP concepts for non-SAP developers

  • CSRF token: SAP OData services require a two-step process for mutating operations (POST/PATCH/DELETE). First GET to fetch the token, then include it in all write calls. Token is tied to a session cookie.
  • BAPI_TRANSACTION_COMMIT: Every write BAPI call in SAP must be followed by an explicit BAPI_TRANSACTION_COMMIT call, or the changes will be rolled back. This is a hard requirement, not optional.
  • OData $batch: SAP OData supports $batch for grouping multiple operations, but has strict ordering and boundary requirements.
  • SAP system number (SYSNR): A two-digit instance number (e.g., 00), not the host port. Do not confuse with port 3300+SYSNR.
  • Client: SAP is multi-tenanted within a single system. Always specify the client (e.g., 100, 800) in every connection.
  • ICF node: SAP Internet Communication Framework. OData services are only reachable if the corresponding ICF node is activated. Transaction: SICF.
  • SOAP over HTTP RFC: SAP exposes all RFC-enabled function modules via a standard SOAP endpoint at /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.
  • Dynamic REST2RFC Gateway: A community pure-ABAP option for exposing registered RFC/BAPIs as JSON through /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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Sap Integration Wiki?

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, Communication Arrangements, FI-AA, AR/AP, Central Finance (CFIN), FSSC / 财务共享中心 (Kingdee/金蝶, 用友 to SAP). Use whenever asked to connect to SAP, call a SAP API/BAPI/RFC, read or create SAP data from outside (purchase/sales/production orders, inventory, financial documents, AR/AP, assets, material master, business partner), confi...

¿Por qué usar Sap Integration Wiki en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Sap Integration Wiki está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Sap Integration Wiki en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/shrek-abaper/sap-engineering-skill/tree/main/skills/sap-integration-wiki. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Sap Integration Wiki?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Sap Integration Wiki?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Sap Integration Wiki con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Sap Integration Wiki?

Sí. shrek-abaper la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇