cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Dear Specialists,

I am trying to create a Fiori Elements List Report utilizing the SAP Fiori Tools.

I created an Odata Service providing the data based on two ABAP CDS.

Whatever I try I alway get a generated page structure with a list report -> object page -> object page (where the object page in the middle is redundant, at least for my purpose - see the pagemap screen shot)

As a result the first object page is always empty and there is no navigation to the second level object page.

My question now: Am I making an error is generating the app or is my Odata Service not up for the job?

Here is my main CDS:

@OData.publish: true
@UI.headerInfo: {
    typeName: 'Process Chain Monitor'
    }

define view
ZC_PCMON
as select from
ZI_PCMAIN
association [1..*] to ZI_PCLOG as _log on $projection.Variante = _log.Variante
{
      @UI.lineItem: [{ position: 10 }]
      @UI.selectionField: [{ position: 20 }]
      @UI.identification: [{ position: 20, importance: #HIGH }]
  key ZI_PCMAIN.ChainId,
      @UI.lineItem: [{ position: 20 }]
  key ZI_PCMAIN.Objvers,
      @UI.lineItem: [{ position: 30 }]
  key ZI_PCMAIN.Type,
      @UI.lineItem: [{ position: 40 }]
  key ZI_PCMAIN.Variante,
      @UI.lineItem: [{ position: 50 }]
  key ZI_PCMAIN.Lnr,
      @UI.lineItem: [{ position: 60 }]
      ZI_PCMAIN.EventStart,
      _log // Make association public
}

And the second (detail) CDS:

@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Interface View ProcessChain Log'
define view
ZI_PCLOG
as select from
rspcprocesslog
{
      @UI.identification: [ { position: 110 } ]
  key log_id         as LogId,
  key type           as Type,
  key event_start    as EventStart,
  key eventp_start   as EventpStart,
  key job_count      as JobCount,
  key batchdate      as Batchdate,
  key batchtime      as Batchtime,
      backlink_start as BacklinkStart,

Does any body have a clue, why my object page is not working directly? Any help appreciated.

Best regards

Markus

View Entire Topic
hitesh_parmar
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello cxmm09 ,

To navigate to the second Object Page (ZI_PCLOG), you need to have a table in the first Object Page (ZC_PCMON).

Now to have a table in the first Object Page, you need to define UI.Facet annotation which contains a Reference Facet pointing to UI.LineItem annotation (defined for ZI_PCLOG).

Because of this your first object page is empty.

To achieve this, you can also make use of local annotations. See here: https://sapui5.hana.ondemand.com/#/topic/facfea09018d4376acaceddb7e3f03b6


Best Regards,

Hitesh