sap-function-group

Automate SAP function group lifecycle via RFC and GUI operations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sap_rfc_lib.ps1, sap_connection_lib.ps1, sap_log_helper.ps1, sap_attach_lib.vbs, and includes references (resource) components.

What problem does it solve?

Managing SAP function groups (FGs) manually is error-prone and time-consuming. This Skill provides an automated, end-to-end lifecycle for SAP FG operations: existence check, create, activate, PROGDIR state verification, and deletion, with mode-aware routing between RFC and GUI paths.

Core Features & Use Cases

  • Check whether a FG exists and report its state via RFC_READ_TABLE TLIBG or equivalent GUI paths.
  • Create and activate FG in one RFC step when possible, with RFC-first approach and GUI fallback when RFC is unavailable.
  • Check FG PROGDIR state to diagnose inactive FG scenarios and trigger re-activation if needed.
  • Delete FG using GUI deletion flow with optional TR resolution, pre-checks, and a post-delete RFC verification to ensure a clean state.

Typical use cases include onboarding a new FG, updating function groups after FM changes, validating activation status before transport-release, and safely removing FG cascades when decommissioning.

Quick Start

Use this skill to manage FG ZFUGR001 by creating or activating with a short description and optional package/transport, using RFC when available or GUI otherwise.

Frequently Asked Questions about sap-function-group

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

FAQPage Schema
How do I automate SAP function group creation and activation?

Automate SAP function group creation and activation by using an RFC-first approach to build and activate the group in one step. The Skill automatically falls back to GUI paths if the RFC connection is unavailable.

What is the best way to check if an SAP function group exists and is active?

Check SAP function group existence and active state by querying the TLIBG table via RFC or GUI paths. The Skill also verifies PROGDIR state to diagnose inactive groups and trigger re-activation if needed.

Do I need SAP NCo and GUI to manage function groups via RFC?

You need SAP NCo 3.1 (32-bit) for RFC operations and an active SAP GUI session for GUI fallback paths. The Skill uses mode-aware routing to switch between these dependencies based on your configuration.

Can I automate SAP function group deletion with transport request resolution?

Automate SAP function group deletion with optional transport request resolution and pre-checks. The Skill executes the GUI deletion flow and performs a post-delete RFC verification to ensure a clean state.

Why does my SAP function group show as inactive after automated creation?

Your SAP function group may show as inactive due to a pending PROGDIR state issue. The Skill checks the PROGDIR state to diagnose inactive scenarios and can trigger re-activation automatically.

What prerequisites are required to run sap-function-group operations end-to-end?

Running end-to-end operations requires foundational scripts like sap_rfc_lib and sap_connection_lib, plus VBScript templates. You also need SAP NCo 3.1 for RFC paths and an active SAP GUI session for fallbacks.