Generate a Fiori elements app for an OData service (non-CAP)
generate_fiori_app_odataCreate SAP Fiori elements apps for OData V2/V4 services with support for list-report, object-page, worklist, analytical-list-page, or overview-page floorplans. Generates manifest.json, Component.js, and other project files.
Instructions
Generates a new SAP Fiori elements application for an OData V2/V4 service, e.g. from RAP. Floorplans: 'list-report' (LR+ObjectPage, V4+V2), 'object-page' (form entry, V4), 'worklist' (V4+V2), 'analytical-list-page' (V2), 'overview-page' (V2). Provide metadataXmlPath (from download_odata_service_metadata) or metadataXml content, or just entitySet. Creates manifest.json, Component.js, index.html, i18n, ui5.yaml and package.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Application title shown in the shell | |
| addFcl | No | Enable Flexible Column Layout (default true for V4) | |
| appName | Yes | App name, used as folder name (e.g. 'travels') | |
| entitySet | No | Main entity set (optional if metadata is provided) | |
| floorplan | No | Floorplan: 'list-report' (LR+ObjectPage, V4+V2), 'object-page' (form entry, V4), 'worklist' (task list, V4+V2), 'analytical-list-page' (V2) or 'overview-page' (V2). Unsupported combos are auto-adjusted with a warning. | list-report |
| namespace | No | App id namespace (default 'ns' for OData / 'cap.app' for CAP) | |
| serviceUrl | No | OData service URL to store in the manifest dataSources | |
| systemName | No | Configured SAP system name; with servicePath it supplies serviceUrl | |
| description | No | Application description | |
| destination | No | BTP destination the service belongs to; with servicePath it supplies serviceUrl, so the same arguments that downloaded the metadata also generate the app | |
| initialLoad | No | Set initialLoad:true so the List Report table loads without pressing Go (default true for 'worklist') | |
| servicePath | No | Service path relative to the destination/system URL, e.g. /sap/opu/odata4/sap/zsb_x/srvd/sap/zsd_x/0001 | |
| odataVersion | No | Force OData version (auto-detected from metadata) | |
| workspacePath | No | Target workspace root; app is created as <workspace>/<appName>/ | |
| metadataXmlPath | No | Path to a local metadata.xml |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appPath | Yes | ||
| warnings | Yes | ||
| nextSteps | Yes | ||
| serviceUri | No | ||
| createdFiles | Yes | ||
| resolvedService | No | ||
| resolvedEntitySet | No |