cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VS Code Fiori Elements List Report - empty object page

cxmm09
Member
3,513

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Hello cxmm09 ,

I was able to find a solution for this.

Please find below solution in case this is still relevant for you.

@UI.facet: [{ id : 'id_name',

type: #LINEITEM_REFERENCE,

label: 'Test line item',

targetElement: 'your_navigation_entity' }]

Best regards,

Navjot

stefan_schreck
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Markus,
You mentioned that the first or intermediate object page would be obsolete.
In general you can run a list report without object page, normally this is named a worklist and you could choose this as template during the generation.
You can also use the ListReport-ObjectPage template and delete the generated object page afterwards (in the page map), then you could add a custom object page instead.
But in any case you have to correctly maintain the right kind of navigation to your second page then.
There are many options for this, thus the question is what or you want to achieve - which target entity you want to reach.
You can look at the "Configuring Navigation" section of Fiori Elements at help.sap.com to find more information on this.

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