• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

sap-fiori-app-development

プラグイン
sap-fiori-mcp-server
引数
fiori elements application creation or modification
ソース
GitHub で見る ↗
説明

SAP Fioriアプリケーション開発のためのガイドライン(設計・実装の指標)。CAPおよびスタンドアロンプロジェクト向け。 次のような場合に使用: SAP Fiori Elements(クイック開発向けUIテンプレート)を使ったアプリケーションを新規作成・修正するとき。

原文を表示

Guidelines for SAP Fiori app development for CAP and standalone projects. Use this skill when creating or modifying SAP Fiori Elements applications.

ユースケース
  • SAP Fiori Elementsでアプリケーション新規作成するとき
  • 既存のSAP Fioriアプリケーションを修正するとき
  • CAPプロジェクトの設計・実装指標が必要なとき
  • スタンドアロンプロジェクトの開発ガイドラインを確認するとき
本文(日本語訳)

SAP Fiori アプリ開発ガイドライン(CAP プロジェクト及びスタンドアロン Fiori プロジェクト)

一般的なガイドライン(CAP および スタンドアロン Fiori プロジェクト両方に適用)

  1. ユーザーに確認してください。実装を進める前に、ユーザーが CAP(クラウドアプリケーションプログラミング、SAP の開発フレームワーク)向けの Fiori アプリを作成したいのか、それとも外部の OData サービス(データ交換の標準形式)に接続されたスタンドアロン Fiori プロジェクトを作成したいのかを確認してください。ただし、ユーザーのリクエストで技術スタックが明確に指定されている場合は除きます。

  2. Fiori MCP ツールを使用して、SAP Fiori Elements(UI 開発用の部品集)を用いて Fiori UI を作成してください。

  3. Fiori MCP サーバーツールの実行が成功したら、ユーザーに完了を報告してください。検証や二重確認は行わず、ツール実行の成功を確認と見なしてください。

  4. データモデルは SAP Fiori Elements に適したものにしてください。最低限、アプリケーションの中心となるメインエンティティ(データの最小単位)が 1 つ必要です。関連エンティティへのナビゲーションプロパティは任意ですが、より豊かな UI パターンが実現できます。

  5. エンティティの各プロパティには、適切なデータ型が必要です。

  6. コードを直接修正する前に、Fiori MCP サーバーが適切な機能やツールを提供しているか、または特化したスキル(例:sap-fiori-analytical-chart)が存在するかを確認してください。

利用可能なアプリケーションテンプレート(CAP およびスタンドアロンプロジェクト両方)

Fiori MCP は、CAP およびスタンドアロンプロジェクトの両方のバックエンド向けに、以下のアプリケーションテンプレートを作成できます:

  1. FE_LROP - リストレポート・オブジェクトページ(最も一般的。OData V2/V4 対応)
  2. FE_ALP - 分析リストページ(OData V2/V4 対応)
  3. FE_OVP - 概要ページ(OData V2/V4 対応)
  4. FE_WORKLIST - 作業一覧(OData V2/V4 対応)
  5. FE_FEOP - フォーム入力オブジェクトページ(OData V4 のみ)
  6. FE_FPM - フレキシブルプログラミングモデル / カスタムページ(OData V4 のみ)
  7. FF_SIMPLE - 基本的な SAPUI5(ユーザーインターフェース開発フレームワーク)フリースタイルテンプレート(データソースなしでも動作可能)

利用可能なページタイプ

Fiori MCP は、既存のアプリケーションに以下のページタイプを追加できます:

  1. ListReport - フィルタリングと検索が可能なテーブル表示
  2. ObjectPage - レコードを表示・編集するための詳細ページ
  3. CustomPage - 独自のビューを持つ完全にカスタムされたページ

アプリケーション構造

  • SAP Fiori Elements アプリの作成を求められた場合、ユーザーの入力が、テーブルデータやフォームを含む 1 つ以上のページで構成されるアプリケーションとして解釈できるかを確認してください。

  • アプリケーションは通常、リストレポートページからテーブル形式でデータを表示して開始しますが、他のテンプレートも利用可能です(上記参照)。

  • 特定のテーブル行の詳細情報は、ベースエンティティに基づいたオブジェクトページに表示されます。

  • オブジェクトページは、そのエンティティ型のナビゲーションプロパティ(1 対 1 関係と 1 対多関係の両方)に基づいたセクションを含むことができます。

  • テーブルセクション行(1 対多関係の場合)の詳細情報は、その関連先エンティティに基づいた別のオブジェクトページに表示されます。

アプリケーションプレビューのガイドライン

  • package.json に記載されたアプリ用の最も具体的なスクリプトを使用してください。

  • CAP の場合:監視スクリプト(例:npm run watch-manage-travel)を使用してください

  • スタンドアロン Fiori プロジェクトの場合:npm start(本番バックエンド)または npm run start-mock(テストデータ)を使用してください

CAP 固有のガイドライン

  1. Fiori アプリは、cds init コマンドで事前に作成された CAP アプリケーションのルートフォルダ直下の app フォルダに作成する必要があります。このルートフォルダは常に作業ディレクトリの直下のサブフォルダです。

  2. CAP アプリケーション概要に基づいて UI アプリケーションを作成する際、ユーザーが明示的に別を要求した場合を除き、プロジェクト構造の説明に記載されている UI アプリケーション名を必ず使用してください。

  3. フルスタック CAP アプリケーションの UI を変更または修正するための後続リクエストについて、サービスで本当に必要でない限り、常に先に Fiori アプリで変更を試みてください。

  4. すべてのエンティティに UUID(一意の識別子)型の主キーを提供してください。

  5. CSV ファイルにサンプルデータを作成する場合、すべての主キーと外部キーは UUID 形式である必要があります(例:550e8400-e29b-41d4-a716-446655440001)。

スタンドアロン Fiori プロジェクト固有のガイドライン

  1. 外部サービスに基づくスタンドアロン Fiori プロジェクトの場合、アプリケーションは Fiori MCP ツールによってルートレベルで作成されます。

  2. 接続先またはSAPシステム名:ユーザーが接続先名やSAPシステム名を提供しない場合、Fiori MCP サーバーを使用して利用可能な接続先またはシステムを取得し、ユーザーに選択肢として提示してください。

  3. OData サービスメタデータの取得(初回アプリケーション作成時のみ):OData サービスメタデータをダウンロードするための手順についてはツールの説明を参照してください。Service Center MCP が利用可能な場合はそれを使用し、そうでない場合は Fiori MCP サーバーを使用してメタデータファイルをダウンロードしてください。既に作成済みアプリのメタデータを更新する場合は、以下のポイント 8 を参照してください。

  4. アノテーション(データの表示方法や挙動を定義する追加情報)は主にバックエンドサービスで保守し、アプリ固有の UI カスタマイズまたはオーバーライドのみをローカル(フロントエンド)アノテーションに配置してください。

  5. フロントエンドアノテーションは、アプリ固有の UI 調整(例:/webapp/annotations/annotation.xml)のみに使用し、manifest.json で一致する uri と localUri 値で参照してください:

    "annotation": {
      "type": "ODataAnnotation",
      "uri": "annotations/annotation.xml",
      "settings": {
        "localUri": "annotations/annotation.xml"
      }
    }
    
  6. スタンドアロン Fiori プロジェクトは、リモート OData V2 または V4 サービス(manifest.json の dataSources で定義)に接続されます。

  7. OData サービスメタデータは読み取り専用:manifest.json で参照されるサービスメタデータファイル(/webapp/localService/mainService/metadata.xml)はローカルで編集してはいけません。エンティティ定義、プロパティ、またはサービス構造の変更はすべてバックエンドソースで行う必要があります:

    "dataSources": {
      "mainService": {
        "uri": "/path/to/odata/service/",
        "type": "OData",
        "settings": {
          "annotations": ["annotation"],
          "localUri": "localService/mainService/metadata.xml",
          "odataVersion": "4.0"
        }
      }
    }
    
  8. サービスメタデータの更新:既存の Fiori アプリのローカル metadata.xml をライブバックエンドから更新するには、download_odata_service_metadata を使用しないでください(このツールはアプリまたはページ作成時の初回メタデータダウンロード用であり、プロジェクトに既に存在するメタデータの更新用ではありません)。代わりに、sap-fiori-create-cli スキルの update service-metadata セクションを実行してください。

原文(English)を表示

SAP Fiori App Development Guidelines (CAP & Standalone Projects)

General Guidelines (Applicable to CAP and Standalone Fiori Projects)

  1. Always ask the user whether they want to create a Fiori app for CAP (Cloud Application Programming) or a standalone Fiori project connected to an external OData service before proceeding with implementation, unless the technology stack is explicitly specified in the user's request.
  2. Use the Fiori MCP tools to create the Fiori UI using SAP Fiori Elements.
  3. After the Fiori MCP Server tools execute successfully, inform the user of completion. Do not verify or double-check - treat successful tool execution as confirmation.
  4. The data model should be suitable for SAP Fiori elements: at minimum one entity type that serves as the main entity for the application. Navigation properties to related entities are optional but enable richer UI patterns.
  5. Each property of an entity must have a proper datatype.
  6. Before modifying the code directly - first check whether Fiori MCP server provides a suitable function or tool, or if a specialized skill exists (e.g.sap-fiori-analytical-chart).

Available Application Templates (Both CAP and Standalone Projects)

The Fiori MCP can create the following application templates for both CAP and standalone project backends:

  1. FE_LROP - List Report Object Page (most common, OData V2/V4)
  2. FE_ALP - Analytical List Page (OData V2/V4)
  3. FE_OVP - Overview Page (OData V2/V4)
  4. FE_WORKLIST - Worklist (OData V2/V4)
  5. FE_FEOP - Form Entry Object Page (OData V4 only)
  6. FE_FPM - Flexible Programming Model / Custom Page (OData V4 only)
  7. FF_SIMPLE - Basic SAPUI5 Freestyle template (can work without a data source)

Available Page Types

The Fiori MCP can add the following page types to existing applications:

  1. ListReport - Table view with filtering and search
  2. ObjectPage - Detail page for viewing/editing records
  3. CustomPage - Fully custom page with your own views

Application Structure

  • When asked to create a SAP Fiori elements app, check whether the user input can be interpreted as an application organized into one or more pages containing table data or forms.
  • Applications typically start with a List Report page showing data in a table, but other templates are available (see above).
  • Details of a specific table row are shown in an Object Page based on the base entity.
  • An Object Page can contain sections based on navigation properties (both to-one (0..1) and to-many associations) of its entity type.
  • Details of a table section row (for to-many associations) can be shown in another Object Page based on the association's target entity.

Application Preview Guidelines

  • Use the most specific script for the app in package.json.
  • For CAP: Use watch scripts (e.g., npm run watch-manage-travel)
  • For standalone Fiori projects: Use npm start (live backend) or npm run start-mock (mock data)

CAP-Specific Guidelines

  1. The fiori app must be created in the app folder under the CAP application root folder created before with cds init operation. This root folder is always a subfolder directly under working directory.
  2. When creating UI applications following a CAP application summary, make sure to use UI application names as described in the project structure of the summary, unless user explicitly requested otherwise.
  3. On any follow-up request to change or modify the UI of the full stack CAP application, always try first to make the change in the fiori app unless really required in service.
  4. Provide primary keys of type UUID for all entities.
  5. When creating sample data in CSV files, all primary keys and foreign keys MUST be in UUID format (e.g., 550e8400-e29b-41d4-a716-446655440001).

Standalone Fiori Project Guidelines

  1. For standalone Fiori projects based on external services, the application is created at the root level by Fiori MCP tools.
  2. Destination or SAP System Name: If the user doesn't provide a destination name or SAP system name, use the Fiori MCP Server to retrieve and present available destinations/systems for user selection.
  3. Fetching OData Service Metadata (for initial app creation only): Refer to the tools instructions for downloading OData service metadata. If Service Center MCP is available use that, otherwise use the Fiori MCP Server to download the metadata file. To refresh metadata in an already-created app, see point 8 below.
  4. Annotations should primarily be maintained in the backend service, and only app-specific UI customizations or overrides should be placed in local (frontend) annotations.
  5. Use frontend annotations only for app-specific UI tweaks (e.g., /webapp/annotations/annotation.xml) referenced in manifest.json with matching uri and localUri values:
    "annotation": {
      "type": "ODataAnnotation",
      "uri": "annotations/annotation.xml",
      "settings": {
        "localUri": "annotations/annotation.xml"
      }
    }
    
  6. Standalone Fiori projects connect to remote OData V2 or V4 services (defined in manifest.json dataSources).
  7. OData Service Metadata is Read-Only: The service metadata file (/webapp/localService/mainService/metadata.xml) referenced in manifest.json must not be edited locally. Any changes to entity definitions, properties, or service structure must be made at the backend source:
    "dataSources": {
      "mainService": {
        "uri": "/path/to/odata/service/",
        "type": "OData",
        "settings": {
          "annotations": ["annotation"],
          "localUri": "localService/mainService/metadata.xml",
          "odataVersion": "4.0"
        }
      }
    }
    
  8. Updating Service Metadata: To refresh the local metadata.xml from the live backend for an existing Fiori app, do not use download_odata_service_metadata (that tool is for initial metadata download during app or page creation, not for refreshing metadata already present in the project). Instead, invoke the sap-fiori-create-cli skill's update service-metadata section.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。