Generate a Fiori elements app inside a CAP project
generate_fiori_app_capCreate a SAP Fiori elements application inside an existing CAP project from a CDS entity, auto-wiring it to the CAP service and resolving associations.
Instructions
Generates a new SAP Fiori elements application inside an existing SAP CAP project (app/ folder), based on an entity of the project's CDS model. Reads the CDS model to resolve the main entity and its to-many associations, and wires the app to the CAP service.
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), 'object-page' (form entry) or 'worklist'. CAP apps are OData V4. | list-report |
| namespace | No | App id namespace (default 'ns' for OData / 'cap.app' for CAP) | |
| description | No | Application description | |
| initialLoad | No | Set initialLoad:true so the List Report table loads without pressing Go (default true for 'worklist') | |
| serviceName | No | CDS service whose entity is exposed (e.g. CatalogService). Auto-detected when omitted. | |
| capProjectPath | Yes | Root of the CAP project (contains package.json with @sap/cds and db/srv folders) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appPath | Yes | ||
| warnings | Yes | ||
| nextSteps | Yes | ||
| serviceUri | No | ||
| createdFiles | Yes | ||
| resolvedService | No | ||
| resolvedEntitySet | No |