sap-fix-fm

Fix ABAP CALL FUNCTION parameter issues from sap-check-fm results.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fixes ABAP CALL FUNCTION parameter issues found by sap-check-fm. Reads the sap-check-fm result file, reconnects to SAP to retrieve correct FM parameter definitions, then proposes and applies fixes:

  • UNKNOWN_PARAM: renames wrong parameter names to the correct FM parameter names
  • MISSING_MANDATORY: inserts stub lines for missing mandatory parameters
  • WRONG_SECTION: moves parameter assignments to the correct keyword section Creates a timestamped backup (.bak) before modifying the ABAP source file. Prerequisites: SAP NCo 3.1 (32-bit, .NET 4.0) installed in GAC. Run sap-check-fm first to produce the result file.

Core Features & Use Cases

  • Reads sap-check-fm results to identify fixable issues
  • Reconciles with SAP FM parameter definitions and applies fixes
  • Backs up ABAP sources before applying changes

Quick Start

Run sap-check-fm to produce the result file, then execute sap-fix-fm with your ABAP source file to apply fixes.

Frequently Asked Questions about sap-fix-fm

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

FAQPage Schema
How do I fix missing mandatory parameters in ABAP CALL FUNCTION statements?

To fix missing mandatory parameters in ABAP CALL FUNCTION statements, this tool inserts stub lines for missing mandatory parameters by retrieving up-to-date FM parameter definitions from SAP and applying them to your ABAP source.

What is the easiest way to rename unknown parameters in ABAP CALL FUNCTION code?

Renaming unknown parameters in ABAP CALL FUNCTION code is done by reading a sap-check-fm result file, reconnecting to SAP to retrieve correct FM parameter definitions, and replacing the wrong parameter names in your ABAP source.

Why do my ABAP CALL FUNCTION parameter assignments fail because they are in the wrong section?

ABAP CALL FUNCTION parameter assignments fail when placed under the wrong keyword section. This tool fixes WRONG_SECTION issues by moving parameter assignments to the correct keyword section based on live SAP FM definitions.

Do I need to run sap-check-fm before fixing ABAP CALL FUNCTION parameter issues?

Yes, you must run sap-check-fm first to produce a result file identifying the parameter issues. This tool operates on that result file to generate and apply a deterministic fix plan to your ABAP source.

Can I safely modify ABAP source files without losing the original code during FM parameter fixes?

Yes, you can safely modify ABAP source files because the tool creates a timestamped backup (.bak) before applying any changes. This ensures your original code is preserved in the writable workspace during FM parameter fixes.

What SAP connection prerequisites are needed to correct CALL FUNCTION parameters?

Correcting CALL FUNCTION parameters requires SAP NCo 3.1 (32-bit, .NET 4.0) installed in the GAC, active SAP connection settings, and access to shared sap-dev-core helpers to retrieve live function module definitions.