sap-rfc-wrapper-class

Generate ABAP function module wrappers exposing class methods via RFC.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Non-RFC-callable ABAP class methods cannot be invoked by external SAP clients, so this Skill generates RFC-wrapped entry points to enable external integration while preserving encapsulation.

Core Features & Use Cases

  • Generates a deployable ABAP function module wrapper that mirrors the class method’s parameter interface (IMPORTING, EXPORTING, CHANGING, RECEIVING) and internally calls the class method.
  • Deploys the wrapper via SAP SE37 and supports both instance and static methods, with TR-based deployment.
  • Use Case: A .NET or Java SAP client can call internal ABAP logic through RFC without exposing the underlying class details.

Quick Start

Generate an RFC wrapper for a given ABAP class method and deploy it via sap-se37.

Frequently Asked Questions about sap-rfc-wrapper-class

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

FAQPage Schema
How do I expose an ABAP class method as an RFC callable function module?

Exposing an ABAP class method as an RFC callable function module requires generating a wrapper function module that mirrors the method's interface and internally dispatches the call to the class. This allows external SAP clients to invoke the logic via RFC.

Can I call both static and instance ABAP class methods externally via RFC?

Yes, you can call both static and instance ABAP class methods externally via RFC. The generated wrapper function module handles the interface mapping and internal dispatching, supporting both method types for external integration without exposing underlying class details.

How does the wrapper handle IMPORTING, EXPORTING, and CHANGING parameters for ABAP methods?

The wrapper handles IMPORTING, EXPORTING, and CHANGING parameters by reading the class method interface from SEOCOMPODF and SEOSUBCODF tables. It generates an ABAP function module that accurately maps these parameters alongside TABLES and EXCEPTIONS to ensure proper RFC integration.

Do I need SAP login and RFC connectivity to generate RFC wrappers for class methods?

Yes, you need SAP login and active RFC connectivity to generate RFC wrappers for class methods. These prerequisites allow the system to read class interfaces via RFC_READ_TABLE and deploy the generated function module to SE37 using TR deployment rules.

What is the best way to integrate external .NET or Java clients with internal ABAP class logic?

The best way to integrate external .NET or Java clients with internal ABAP class logic is using a generated RFC wrapper. This approach deploys a function module that acts as an entry point, invoking the encapsulated ABAP class method through RFC without exposing the class itself.

How are source-based ABAP classes handled when generating an RFC wrapper?

Source-based ABAP classes are handled using an RTTI-based fallback when generating an RFC wrapper. This ensures the function module accurately captures and maps the method interface even when standard table reads via SEOCOMPODF are insufficient.