Skip to Content

CDS Metadata Extension file not showing in Annotation Selection section

Hi Experts,

I created a CDS View and Metadata Extension for the CDS view. I am trying to create a fiori application using template option with the above CDS view and annotation file.

Category: SAP Fiori Elements

List report application

I selected the destination and the gateway service and click next. When I go to the annotation section I am not able to see the annotation file.

Please help.

CDS View: ZTEST_C_FLIGHT

@AbapCatalog.sqlViewName: 'ZFLIGHTMEAL'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Flight meal application'
@OData.publish:true
@Metadata.allowExtensions:true
define view ZTEST_C_FLIGHT as select from ztest_flight
association [1] to scarr as _Airline
    on $projection.carrid = _Airline.carrid
association[1] to sflight as _FlightInfo 
    on $projection.carrid = _FlightInfo.carrid
   and $projection.connid = _FlightInfo.connid
association [1] to smeal as _Meals
      on $projection.carrid = _Meals.carrid and
         $projection.meal = _Meals.mealnumber{
key meal_id,
    carrid,
    connid,
    meal,
    total_seats,
    status,
    _Airline,
    _FlightInfo,
    _Meals
} 

Metadata Extension: ZTEST_MDE_FLIGHT

@Metadata.layer: #PARTNER
annotate view ZTEST_C_FLIGHT
    with 
{
    @UI.hidden:true
    meal_id;
    @UI: { selectionField: [{ position:10 }],
           lineItem : [{ position: 10 }],
           identification: [{ position: 10 }],
           identification: [{label:'Airline Company'}]
    }
    carrid;
    @UI: { selectionField: [{ position:20 }],
           lineItem : [{ position: 20 }],
           identification: [{ position: 20 }],
           identification: [{label:'Connection No'}]
    }
    connid;
    @UI: { lineItem : [{ position: 30 }],
           identification: [{ position: 30 }],
           identification: [{label:'Meal Number'}]
    }
    meal;
    @UI: { lineItem : [{ position: 40 }],
           identification: [{ position: 40 }],
           identification: [{label:'Seats'}]
    }
    total_seats;
    @UI: { lineItem : [{ position: 50 }],
           identification: [{ position: 50 }],
           identification: [{label:'Satus'}]
    }
    status;
}
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer