RFC Function Module Docs Generator
ABAPNewGenerate ABAP RFC-enabled function module stubs with IMPORTING, EXPORTING, TABLES, EXCEPTIONS, and documentation comments. Ready to paste into SE37.
Parameters
Generated Function Module
*"*"---------------------------------------------------------------------- *"*" Local Interface: *"*" IMPORTING *"*" VALUE(IV_INPUT) TYPE STRING *"*"---------------------------------------------------------------------- FUNCTION Z_MY_RFC_FUNCTION. IMPORTING VALUE(IV_INPUT) TYPE STRING EXPORTING VALUE(EV_RESULT) TYPE STRING TABLES VALUE(ET_DATA) TYPE BAPIRET2 EXCEPTIONS NOT_FOUND = 1 OTHERS = 99 . * =========================================================== * Short Description: My RFC-enabled function module * Function Group : ZMYGROUP * RFC-Enabled : Yes (Remote-enabled module) * =========================================================== * TODO: Implement function module logic here CLEAR EV_RESULT. REFRESH ET_DATA. ENDFUNCTION.
Advertisement
About RFC Function Module Docs Generator
RFC-enabled function modules need a specific structure β IMPORTING/EXPORTING/TABLES/EXCEPTIONS with the RFC checkbox set in SE37 β and writing the interface and documentation comments by hand for every new module adds up. This generator produces a ready-to-paste function module stub with parameters and documentation comments already scaffolded.
How to use this tool
- Name your function module and add IMPORTING, EXPORTING, and TABLES parameters with their types.
- Add EXCEPTIONS your callers should handle.
- The tool generates documentation comments describing each parameter.
- Paste the generated stub into SE37, mark it as RFC-enabled, and fill in the actual logic.
All processing happens locally in your browser. No data is sent to any server. Your SAP code and business data remain private at all times.
Frequently Asked Questions
What makes an ABAP function module RFC-enabled?
A function module is RFC-enabled when its "Remote-enabled module" attribute is set in SE37. RFC-enabled FMs can only use pass-by-value parameters (PASS BY VALUE), cannot use LIKE references to local types, and all parameters must be type-safe for serialization.
What is the RETURN parameter table in BAPIs?
By convention, RFC-enabled function modules and BAPIs use a TABLES parameter named RETURN of type BAPIRET2. It contains a table of messages (type, ID, number, message text) that indicate success or failure. Always check RETURN after calling a BAPI.
How do I test the generated RFC function module?
After creating the function module in SE37, use the Test/Execute button (F8) to call it directly in the SAP system. Alternatively, use transaction SE37 β Utilities β RFC Test to test it as a remote call.
Advertisement