sap-rfc-wrapper-fm

Invoke non-RFC-enabled SAP function modules via Z_GENERIC_RFC_WRAPPER_TBL.

7|1|Updated May 11, 2026
One-click install
npx skills add https://github.com/sapdev-ai/sap-dev --skill sap-rfc-wrapper-fm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sap-rfc-wrapper-fm
Source: https://github.com/sapdev-ai/sap-dev/tree/main/plugins/sap-dev-core/skills/sap-rfc-wrapper-fm
Command: npx skills add https://github.com/sapdev-ai/sap-dev --skill sap-rfc-wrapper-fm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill lets you invoke non-RFC-enabled SAP function modules by routing calls through a generic wrapper (Z_GENERIC_RFC_WRAPPER_TBL). It reads the target FM interface with RPY_FUNCTIONMODULE_READ_NEW, validates user-supplied parameters, and serializes inputs and outputs as XML for remote execution.

Core Features & Use Cases

  • Read target FM interface using RPY_FUNCTIONMODULE_READ_NEW and validate IMPORTING/EXPORTING/CHANGING/TABLE parameters.
  • Build asXML payloads and invoke Z_GENERIC_RFC_WRAPPER_TBL via direct RFC.
  • Deserialize the wrapper-generated output parameters and return them to the caller.
  • Use Case: Remotely invoke any locally-callable FM without needing a per-FM wrapper.

Quick Start

Call a non-RFC-enabled SAP function module by routing the request through Z_GENERIC_RFC_WRAPPER_TBL, specifying the target FM and its parameters.

Frequently Asked Questions about sap-rfc-wrapper-fm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call a non-RFC-enabled SAP function module remotely?

You can invoke a non-RFC-enabled SAP function module remotely by routing the call through a generic wrapper, which reads the target interface, validates parameters, and serializes inputs as XML for execution via SAP NCo.

Do I need SAP NCo to invoke SAP function modules through a wrapper?

Yes, SAP NCo 3.1 is required. You also need a saved SAP profile and the Z_GENERIC_RFC_WRAPPER_TBL function module deployed in your SAP system to handle the remote execution and XML serialization.

How does the generic RFC wrapper handle function module parameters?

The wrapper uses RPY_FUNCTIONMODULE_READ_NEW to read the target interface, validates your IMPORTING, EXPORTING, CHANGING, and TABLE parameters, and builds asXML payloads to execute the call and deserialize results.

What is the best way to execute locally-callable ABAP function modules remotely without creating per-FM wrappers?

Using a dynamic RFC wrapper allows you to execute any locally-callable ABAP function module remotely without creating per-FM wrappers, handling parameter validation and asXML serialization automatically.

Are there limitations when invoking SAP function modules through a dynamic wrapper?

This approach requires the Z_GENERIC_RFC_WRAPPER_TBL deployed in the target SAP system and depends on accurate parameter validation, meaning interface changes in the target function module may require updated parameter inputs.