cancel
Showing results for 
Search instead for 
Did you mean: 

Line Item reference not displayed on Object page

AnmolBhat
Participant
0 Kudos
337

Dear Experts,

In my Fiori app preview I can not see Line item reference on the Object page. 

I have following Business object scenario

Table A has 0 to 1 association to Table B

Table B has 0 to many association to Table C.

I have created RAP object for these 3 table using A as root view.

As A and B has 0 to 1 association, I used field-grouping in the object page to show data from table B.

Table B and C and o to many association hence I showns this in the line_item annotable

Result Fiori App has Object page with data from table A as field groups, data from table B as field groups but the list for the table C is not displayed. 

If I directly open preview of Table B then I can see the data and list for Table C.

Any idea what could be missing.

If I change the Cardanility of A and B to 0 to many then the line item for Table C is displayed.

Is it a limitation from SAP that we can not show line item data for the entity whose parent has 0 to 1 or 1 to 1 cardinality to parent of parent?

Note: I have added redirect to parent and composite child to all views. I have maintained association and ancester association property in the Behaviour definition.

 

AVG
Explorer
0 Kudos

Hi Anmol,

I had similar issue. So please validate targetQualifier for object page and clear the cache.

Also, if you share the metadata extension file it will be help to analyze more.

Try with 

// @ui.facet: [{ type: #IDENTIFICATION_REFERENCE ,purpose: #STANDARD, label: 'C', targetQualifier: 'QualCNav'} ]

View Entire Topic
AVG
Explorer
0 Kudos

Try giving the below Annotation at A Entity

{ id:'C', position: 30, type: #LINEITEM_REFERENCE, targetQualifier: 'QualC' , label: 'Ship Data', targetElement: '_BEntity._CEntity' }

TargetElement will be your deep navigation.

Also, why cant you directly keep child relation from A->C and then use below annotation

{ id:'C', position: 30, type: #LINEITEM_REFERENCE, targetQualifier: 'QualC' , label: 'Ship Data', targetElement: '_CEntity' }

Below consumption A views for your reference

AVG_3-1723147214459.png

Here is output of object page:

AVG_5-1723148191726.png

 

 

 

 

AnmolBhat
Participant

Hi AVG, Thanks for your replies.

The Model design in such a way that we have Root table assigned to B table with 0 to 1 cardinality and then next B to C with 0 to many.

I already tried what you suggested and put the lineitem reference in the metadata file of table A but same as your result, I do not get further navigation posibility on the list C( See your screenshot output, The list does not have navigation ). I had the same issue.

Now it looks like it is not possible to represent it this way, I might take up your suggestion to link A to C directly.

 

Thanks again.

Regards,

Anmol