CreateCDSExtension
Add missing fields to an existing SAP standard CDS view by creating a view extension. Preview with dry-run before applying to SAP.
Instructions
Create a CDS View Extension (extend view entity) to add missing fields to an existing SAP standard view. Use when a successor view is missing fields needed by the Z object. Always dry_run: true by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Fields to add. Each field: { name, source_path, type?, label? } | |
| dry_run | No | If true (default), returns scaffold only without creating in SAP. | |
| maxLines | No | Maximum lines to return (1-100000). Omit to request the rest; the byte cap may return fewer lines. | |
| startLine | No | 1-based line number to start from (default 1). Beyond EOF returns an empty page with hasMore=false. | |
| package_name | No | Target package for the new extension object | |
| sap_view_name | Yes | The SAP standard view to extend (e.g. I_GLACCOUNT) | |
| extension_name | Yes | Z-prefixed name for the new extension object (e.g. ZI_GLACCOUNT_EXT) |